Discussion:
LoadLibrary error from dll
(too old to reply)
test_man
2008-08-06 17:40:13 UTC
Permalink
I have created a dll in Labwindows CVI. In this dll I dynamically call another dll using LoadLibrary function. This dll works fine when I call in labwindows cvi but using labview I can't load dll using LoadLibrary function. Any idea why?
 
for example;
 
I have created mydll.dll in cvi.
In mydll.dll I have code like this
 
    dll_handle = LoadLibrary ("LIB2.dll");    if(dll_handle == NULL)    {     MessagePopup ("ERROR", "LIB2.DLL Load Error");     return -49;    }
using labwindows I can call mydll.dll and it successfully loads LIB2.dll.
 
When I cann mydll.dll in labview my dll_handle is null.
 
 
smercurio_fc
2008-08-06 18:10:10 UTC
Permalink
Is Lib2.dll in the same folder as mydll.dll?
test_man
2008-08-06 18:40:06 UTC
Permalink
yes, all dlls, cvi project and labview project are in same dir.Message Edited by test_man on 08-06-2008 02:18 PMMessage Edited by test_man on 08-06-2008 02:19 PM
Loading...