Hello wkt,
When you use a function within the NI-VISA library, LabWindows/CVI automatically links in the necessary import library from cvi\bin. My initial thought about the way you should proceed is to programmatically move the visa.fp and visa.lib files out of the cvi\bin directory, then #include your custom header file at the top of your source code and your lib file in the project. Then you should be able to link to your definition of the VISA functions.
Let me know how that goes. Thanks.
Wendy L
LabWindows/CVI Developer Newsletter