LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i add .dll file in cvi6.0 without .h or .lib file?

dear sir:
this day i meet a question with dll,i must add a dll file to my program,this dll is support by the manufacture,only .dll and .sys file, so i use loadlibrary and GetProcAddress function,but when i debug it there is a error:Missing prototype,and then i copy .sys file to \\windows\system,the error is still have,and now what can i do,please see my pragram at attachments.
Download All
0 Kudos
Message 1 of 3
(3,113 Views)
if you know the function name and parameters,you can use Loadlibray();GetProcAddress();they are all APIs,you can refer to SDK !
good luck!
0 Kudos
Message 2 of 3
(3,113 Views)
The missing prototype was for the loadlibrary function. You need to include windows.h as the first include ( on the very top) in your test.c file. LoadLibrary and GetProcAddress are SDK functions and to be able to use any SDK functions in CVI, you almost always need the windows.h header

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,113 Views)