Dynamic dll loading and PInvoke

  • Thread starter Thread starter Andrea Palmieri
  • Start date Start date
A

Andrea Palmieri

hello everybody,
I have to invoke a function defined in a c dll from a c# program, but I
don't know the dll name at compile time.
How do I declare and invoke this function using LoadLibrary and
GetProcAddress (GetProcAddress returns a function pointer!) ?

Any idea ? Any code example ?
Thanks

Andrea
 
Back
Top