Hi,
I'm trying to convert a C++ code into a LabVIEW CIN. I went through all the steps that are listed in "How to build a CIN code resorce (.lsb file)" in external code manual, but I still get the following errors:
--------------------Configuration: NDPLabVIEW - Win32 Debug--------------------
Linking...
Creating library Debug/NDPLabVIEW.lib and object Debug/NDPLabVIEW.exp
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK200
1: unresolved external symbol __mbctype
Debug/NDPLabVIEW.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
NDPLabVIEW.dll - 6 error(s), 0 warning(s)
-----------------------------------------------------
The compiler doesn't give any errors, it compiles successfully.
I'm using VC++ 6.0 and all the required adjustments are done for workspace configuration according to the external code manual.
One more thing: The manual says "extcode.h" must be the first #include followed by "hosttype.h". However, the code I'm working on includes "stdafx.h", and when I #include "extcode.h" and "hosttype.h" first, the code doesn't even compile.
Attached is the source code.
Thanks,
Sacit M. Cetiner
Breazeale Nuclear Reactor