I found a xample in the website named "Creating a CVI DLL that Contains a UIR file and Using the DLL in Visual C++" but I have a error when tried to run the project.
The Error is: LINK : fatal error LNK1104: cannot open file "..\..\..\..\..\..\Program Files\National Instruments\MeasurementStudio\CVI\extlib\cvisupp.lib"
Verify that you have a file on that name in the mentioned path. You can go to the VC file View, remove the reference to the cvisupp.lib, and then re-add it from where it is actaully located on your machine.
Open up testCVIDll.h and change the declaration to
extern "C" void OpenPanel(void);
The C++ compiler is expecting a mangled name so by specifying extern "C", you're telling the C++ compiler that this is exported as a C function, so no need to look for a managled name.
Bilal, just one more question, when I had the firs problem :
LINK : fatal error LNK1104: cannot open file "..\..\..\..\..\..\..\..\MeasurementStudio\cvi\extlib\cvisupp.lib"
where I can find this definition to change it with a new paht, because the way I solve the issue was create a new folders and copy the file in the folder.
since this file was added to the project, its probably in the project file( its a text file, you can open it up using notepad) . If you go to the file view, remove the lib and re-add it, it should update the project with the new path. This way, the project will point to the file where it should actaully be, and not some folder you had to create.
I just to download a new xample "Building a Simple CVI Operator Interface with VC++"
But in software requierements say "Aplication Software: TestStand" this mean I need have installed in my PC TestStand ??
When I tryed to compile I have errors :
C:\Documents and Settings\kuw\My Documents\My Code\C ++\National Instruments\Simple Interface\simple.c(2) : fatal error C1083: Cannot open include file: 'tsapicvi.h': No such file or directory
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\kuw\My Documents\My Code\C ++\Api\Cvi\tsapicvi.c': No such file or directory
but I don't have the tsapicvi.c'file in my computer