LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI UIR file and VC 6.0

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"
0 Kudos
Message 1 of 9
(4,042 Views)
Hello

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.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 9
(4,042 Views)
Thanks for your help, your comments fixed the problem, but now I have other error.

testDLLDlg.obj : error LNK2001: unresolved external symbol "void __cdecl OpenPanel(void)" (?OpenPanel@@YAXXZ)

Do you know what this mean ??
could you help me ?
0 Kudos
Message 3 of 9
(4,042 Views)
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
Bilal Durrani
NI
0 Kudos
Message 4 of 9
(4,042 Views)
Thanks a lot for your help, Right now everythig is fine.
0 Kudos
Message 5 of 9
(4,042 Views)
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.

Thanks.
0 Kudos
Message 6 of 9
(4,042 Views)
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.

Bilal
Bilal Durrani
NI
0 Kudos
Message 7 of 9
(4,042 Views)
Thanks for you support Bilal.

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

What Can I do ??

Thanks in advance for y
our patience.
0 Kudos
Message 8 of 9
(4,042 Views)
You need to have TestStand installed to be able to run that. The CVI operator interface is a way to control TestStand using CVI.

Bilal
Bilal Durrani
NI
0 Kudos
Message 9 of 9
(4,042 Views)