Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

updated!!

Another error about "error when compiling my API Programm thant i want to generate DLL for use in Labview!" "after i change "int" to "DWORD compNameLength = MAX_COMPUTERNAME_LENGTH+1", i try to generate dll. And there comes another error as following.Why!after i change "int" to "DWORD compNameLength = MAX_COMPUTERNAME_LENGTH+1", i try to generate dll. And there comes another error as following.Why!

--------------------Configuration: machinename - Win32 Debug--------------------
Linking...
Creating library Debug/machinename.lib and object Debug/machinename.exp
machinename.obj : error LNK2001: unresolved external symbol _DSSetHandleSize
Debug/machinename.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe."
0 Kudos
Message 1 of 3
(2,963 Views)
Another error about "error when compiling my API Programm thant i want to generate DLL for use in Labview!" "after i change "int" to "DWORD compNameLength = MAX_COMPUTERNAME_LENGTH+1", i try to generate dll. And there comes another error as following.Why!You need to add labview.lib to the project module list. Go to Project settings >> link and add labview.lib ( with full path )to the object/library module list.

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,963 Views)
Another error about "error when compiling my API Programm thant i want to generate DLL for use in Labview!" "after i change "int" to "DWORD compNameLength = MAX_COMPUTERNAME_LENGTH+1", i try to generate dll. And there comes another error as following.Why!This is the message that you get when you are using LabVIEW manager functions and have not included labview.lib in your project. Check your project settings and make sure that either labview.lib is in the list of libraries your project is using and that the path to it (the "cintools" directory under your LabVIEW installation) is in the additional libraries directory for your project or in your library search path. You may also add the .lib file directly to your project in the workspace window (Solution Explorer for VS .NET).

I hope that helps. Let me know if that doesn't work.

TonyH
Measurement Studio
0 Kudos
Message 3 of 3
(2,963 Views)