I'm attempting to load a dll for use in Labview using the Call Library Function Node. Attached is the very simple code I've tried to use. I'm aware it lacks the extern "C" clause, but I've configured my compiler (MS Visual Studio 2005 Pro) to compile as C code (and not C++). I've verified that there is no name decoration and the function is exported correctly with this utility. After setting up the configuration window of the CLF Node, I'm prompted with an error that "the application configuration is incorrect." I've looked at this thread, so I understand there may be issues with using Visual Studio. I'm using LabView 7.1. Any suggestions? Thanks.
Thanks for the help. Attached are a simplified test code and a screenshot of its configuration screen along with the success of the aforementioned dll checker. Labview pops up an error message as soon as I click Okay on the configuration window, resulting in a broken run arrow.
I can't see a problem in your C code, either. And I never got that error message in LabVIEW 7 when dealing with DLLs (but I never used one created with VS2005...).
Maybe, you'd like to post the DLL for further investigation?