LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I have an data translation data acq card (dt322). When i include its lib and run the programm in cvi5 it gives me the error. but tis is not the case with cvi7.1

dear friends.
i want to run the functions of dt322 in cvi5 .
0 Kudos
Message 1 of 8
(4,356 Views)
Hello Electronics,

In particular, what error is returned when you run your project in CVI 5.5? What OS are you running on?


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 8
(4,347 Views)
Dear Windy
thanks for ur response.
errors are
Bad header encountered while reading external module 'Graph32.dll'
Aborted load of member 'Graph32.dll'
Aborted load of library which i inbcluded from data translation sdk.
this problem occur only in cvi5.0.1
i m using win2k
0 Kudos
Message 3 of 8
(4,335 Views)
Hello Electronics,

CVI 5.0.1 was not compatible with the Microsoft Visual C++ 6.0 import library format. Support was added starting with CVI 5.5, which is why you do not receive the error in CVI 7.1. As a workaround for CVI 5.0.1, you need to specify the VC++ 6.0 link option /LINK50COMPAT to generate an import library compatible with Visual C++ 5.0. To change the link options in MSVC++ 6.0, navigate to Project >> Settings >> Link Tab. In the link options box type "/LINK50COMPAT" (Make sure you are have selected an actual project NOT a project file to have access to this tab).

As an alternative, starting with a header file that prototypes all of the functions exported from the DLL, select CVI's Options->Generate DLL Import Library to generate a *.lib you can successfully link in your project. You can also load the DLL in your CVI project and access the functions yourself with the WinSDK functions: LoadLibrary and GetProcAddress.

Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 8
(4,320 Views)
i have tried but it did nt work
becaz i did nt fount the dll import lib in cvi5.0.1
kindly give me some remedy for this. thanks
SIA
0 Kudos
Message 5 of 8
(4,316 Views)
Hello Electronics,

If you do not have an import library for a DLL, you can create one. Open a source window for an include (.h) file containing the declarations of all of the functions and variables you want to access from the DLL. Then use the Generate DLL Import Library command from the Options menu. The key is to have the header file opened, then go to the Options menu on that window.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 6 of 8
(4,307 Views)
I am using LabWindows/CVI 8.0 evaluation version, I do not find "Generate import library" under "Optioms". I want to use some functions in User32.dll, do I need to import the library? I went through the sample program Beep, which uses the Beep function from Kernel32.dll, but I did not see any imported dll. Does Labwindows import some system dlls automatically?
0 Kudos
Message 7 of 8
(4,098 Views)

A small group of the windows SDK functions are included in the basic CVI installation.  If you get the "Full" version of CVI you can install a version of the windows SDK from the installation disk.  To access windows SDK functions, you include windows.h in your source file.  More information can be found here

http://digital.ni.com/public.nsf/allkb/4D03093F2079ABDD86256969006E9ECC

Good Luck

0 Kudos
Message 8 of 8
(4,079 Views)