Calling DLL atruntime

  • Thread starter Thread starter Michael Hesse
  • Start date Start date
M

Michael Hesse

Hi,

I need to call a DLL. During development, I have had no problems using
"Declare" statements, but in production, I don't want to hard-code the path.

I would like to read the path fron an ini file and then load the DLL. Is
there a VB.NET equivalent of LoadLibrary?

Thanks,
 
Michael said:
Hi,

I need to call a DLL. During development, I have had no problems using
"Declare" statements, but in production, I don't want to hard-code the path.

I would like to read the path fron an ini file and then load the DLL. Is
there a VB.NET equivalent of LoadLibrary?

Thanks,

You don't need a path in the declare statement... You just need the
dll in the search path - and that will include the application
directory or the system directory.
 
Hi Randy,

It's a bit more complicated than I would hope, but certainly doable. You
would think there would be a simpler way.

But I will give it a shot.

Thanks for the help.

Michael
 

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

Back
Top