LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

try to use the sdk function PrintDlg and recieve link error

When I try to use the windows sdk function PrintDlg(LPPRINTDLG lppd),
I recieve a link error "Undefined Symbol PrintDlgA referenced in printdialog.c".
The Library comdlg32.lib is correct added to the projekt and the header file commdlg.h
exists in the CVI\SDK\include directory.
0 Kudos
Message 1 of 4
(3,038 Views)
It worked for me here. Maybe you don't have the full SDK installed. CVI installs some base SDK files even if you do not install the full SDK. If you installed the full SDK, you should see over 300 header files in the cvi\sdk\include directory. If you don't see this, you should reinstall CVI and check Windows SDK to install. If you do have it installed, I'm not sure what could be causing the problem.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,038 Views)
Hallo Chris,

thankyou for your help. The problem is the compiler compatibility mode. My setting is on borland compatibility. When I change the mode to Visual C/C++, it works. I included the commdlg.h and comdlg32.lib from the original Microsoft SDK. I could not find the comdlg32.lib neither in ...CVI\SDK\lib nor on Measurement CD. How can I get SDK librarys (comdlg32.lib) which are borland compatible because I prefer to programing my application in borland C/C++ compatibility mode.

With best regards

B.S.
0 Kudos
Message 3 of 4
(3,038 Views)
Measurement Studio Full Development System (or CVI FDS) comes with the full Windows SDK. It installs with CVI and should install in whatever compatibility mode you choose. It will install the files in cvi\sdk. If you have the Full Development System (not the Standard) version, reinstall CVI as a custom install and you will be able to install the Windows SDK files and help into CVI in Borland compatibility.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 4 of 4
(3,038 Views)