Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

migrate VC++6.0 project to C++.NET 2003

I have an application created with VC++6.0 and Measurement Studio for Visual C++ 6.0.
I tried to open the project from Visual Studio C++.NET 2003. Project converted OK and compiled OK too.
But I have linker errors with CNi type classes:
WorkspaceManager.obj : error LNK2001: unresolved external symbol "public: __thiscall NI::CNiString::CNiString(class ATL::CStringT > > const &)" (??0CNiString@NI@@QAE@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
TestRunPageRunCont.obj : error LNK2001: unresolved external symbol "public: __thiscall NI::CNiString::CNiString(class ATL::CStringT > > const &)" (??0CNiString@NI@@QAE@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
TestRunPageRunCycles.obj : error LNK2019: unresolved external symbol "public: __thiscall NI::CNiString::CNiString(class ATL::CStringT > > const &)" (??0CNiString@NI@@QAE@ABV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "public: virtual class NI::CNiComplexT __thiscall NI::CNiComplexT::Pow(int)const " (?Pow@?$CNiComplexT@H@NI@@UBE?AV12@H@Z)

I reviewed projects settings and library path are correctly included (same as original Vc++ project). So, What could be the cause of this? Should it be possible this migration?
0 Kudos
Message 1 of 4
(4,125 Views)
You must have at least Measurement Studio version 7.1 to build projects that include Measurement Studio data types in Visual C++ .NET 2003. The Measurement Studio libraries are static libraries that extend MFC. The Measurement Studio 6.0 libraries linked to MFC 4.2 Visual C++ .NET 2003 introduced a new version of MFC - MFC 7.1. You cannot link to two versions of MFC in the same application. You therefore need Measurement Studio libraries that link to MFC 7.1. These libraries shipped initiallly with Measurement Studio 7.0 and were updated again in Measurement Studio 7.0.
0 Kudos
Message 2 of 4
(4,120 Views)
Migration from Measurement studio 6.0 to 7.0 or 7.1 would imply to change code inside my project or only substitute dlls and ocx by new ones?
0 Kudos
Message 3 of 4
(4,111 Views)
Migration from Measurement Studio 6.0 to Measurement Studio 7.1 implies new static libraries and .ocx's. The Measurement Studio Visual Studio 2003 Add-in handles any project setting changes that are necessary.

You most likely will not have to change code in your project to migrate from 6.0 to 7.1. The Measurement Studio 7.1 Readme file lists the known issues in Measurement Studio 7.1. The issues that I see that could cause you to change code are related to IVI, console applications, and setting Windowless to true in the Measurement Studio user interface controls. The changes required to deal with these issues seem to me to be very straightforward.

I attached the Readme so that you can look it over yourself (see section "Visual C++ Class Libraries").
0 Kudos
Message 4 of 4
(4,105 Views)