Dynamic dll loading and PInvoke

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top