LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading external DLL

Hi

I try to load an external dll  (libquickmail-0.dll) that is located in the project directory.

I have tried two different ways  :

 

1 : LoadLibrary("e:\\CVI\\SourceFiles\\Test\\libquickmail-0.dll");

     Returns  The program can't start because liccurl-4 is missing....

 

2 :  LoadExternalModule("e:\\CVI\\SourceFiles\\Test\\libquickmail-0.dll");

      Returns -7    Unknown file extension

 

Thanx in advance

Regards Per

0 Kudos
Message 1 of 3
(4,313 Views)

@fluidtronic wrote:

 

1 : LoadLibrary("e:\\CVI\\SourceFiles\\Test\\libquickmail-0.dll");

     Returns  The program can't start because liccurl-4 is missing....

 



I guess that libquickmail depends on/uses  libcurl and you need to put libcurl also into a directory , which is in the library search path of your system . You may check the dependency with dependencywalker and you may read about the library search path on MSDN

0 Kudos
Message 2 of 3
(4,296 Views)

Hi

Yes you are right. I ran the dependecywalker and there are several dll's missing. See atchment.

I found libcurl-4.dll but not libssl.dll. I hesitate to install the others until I've got all of them.

 

What I realy want to do is to attach file(s) to email. 

I use ShellExecute(NULL,NULL,MailAdr,NULL,NULL,0); to open a new message (not sending)

I need to automatically attach files but not send. The user has to type in the body and also attach other files.

I'm not sure if the dll libquickmail-0.dll can do it but it's worth a try. Do you know of any other way ?

Regards Per

 

0 Kudos
Message 3 of 3
(4,280 Views)