From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-31-2016 06:07 PM
Solved! Go to Solution.
04-01-2016 01:33 AM
04-01-2016 02:53 AM
What Mike said. Give us a bit more details!.
That sample should be possible to build in just about any Visual Studio version since the 6.0 version the sample was created with. But Visual Studio is a complex system and needs to be configured correctly for your actual system in order for it to find the correct header files and link libraries.
And an extra complication might arise if you are planning to use LabVIEW 64 Bit. Then the Visual Studio project version converter won't automatically create a 64 bit target in the project since the VC 6.0 only could create 32 bit targets and the project converter doesn't invent new targets out of his own.
Have you added the <LabVIEW>\cintools directory to the include and library paths in the project settings? This is obviously a path that is dependent on your system installation and in older versions of Visual Studio this was in fact not even possible to configure per project but had to be configured in the global Visual Studio Settings, so couldn't even be part of a project configuration. Sort of logical since such things are not easily and seemlessly moveable to different computers.
04-04-2016 04:13 PM
Thank you very much mikeporter and rolfk.
- At first only specify the path <LabVIEW>\cintools
Visual Stuido: LNK1104: cannot open file "labview.lib"
- But then, as I said rolfk, add the path in <Additional Include Directories> and <Additions #using Directoris> in the project settings
Visual Studio (multiple errors): error MIDL2096: duplicate:[helpstring] [Interface 'ILVArray']
- Then were exclude from project: "ILVDataInterface.idl" and "ILVTypeInterface.idl" files
Visual Stuido: error C1853: '\Debug\LVUserEvent.pch precompiled header file in from previous version of the compiler, or the precompiled header is C++ and you are using in from C (or vice versa)
- Change the option <Precompiled Header> "Yu" for "Yc" in the project settings
Visual Stuido: error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file ILVTypeInterface_i.c
It is costing me complicate. Thank you very much for your help.
04-06-2016 12:52 PM