ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ in Labview 5.1 examples....

Hi all,

I'm after straight forward examples and code showing how to include C++
code in labview 5.1

I have access to MS Dev Studio 6 Pro, and am familliar with C++ but not DLL
creation.

The supplied "Hostname" example will not compile in a (C++) DLL workspace,
I've fixed some basic problems with variable types and linking to the
"LabVIEW\CINTOOLS\extcode.h" header but now I get:

LVDLL.cpp
Linking...
Creating library Debug/LVDLL.lib and object Debug/LVDLL.exp
LVDLL.obj : error LNK2001: unresolved external symbol _DSSetHandleSize
Debug/LVDLL.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

LVDLL.dll - 2 error(s), 0 warning(s)


Any ideas?
commenting-out the offending line means the DLL will
compile, but it looks
kind of important!

Thanks in advance,

Peter Reeves-Hall
0 Kudos
Message 1 of 2
(2,921 Views)
There is a document in the National Intruments knowledge base at
http://www.ni.com that describes the particulars of this problem

Search for doc# 1QL9MVJ6


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
0 Kudos
Message 2 of 2
(2,921 Views)