LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a Windows SDK Function with the Same Name as a CVI Function

Hi,

There was a FAQ on this topic but unfortunately the NI notes doesn't exist anymore. The problem is with ReadFile() or WriteFile() functions. Using a #undef solved the compiler error for the prototype because of <windows.h> include.
There is no link error but a run-time error because I guess linker has been using the wrong library. I tried to add kernel32.dll into the project files but without success. Windows SDK is used for handling files with HANDLE type pointers.

How to indicate library link order at buid time with LabWindowsCVI 7.1 ?
 I use either XP or 2000.

Regards
Gerard
Message 1 of 3
(3,115 Views)

Hi gerard,

The link still exists, have a look on the following link:

http://digital.ni.com/public.nsf/websearch/69C82671913CAA4986256E9400676E17?OpenDocument

Hope this help, let me know if the document don't match.

Regards.

Omar S. NI

Message 2 of 3
(3,075 Views)
Thanks for your help. I use the wrapper way. However undef way is also working but wrapper is a better practice 😉
 
Regards
Gerard
Message 3 of 3
(3,013 Views)