Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Studio
  4. Migration from VC++ 6 to Visual studio 2005

Migration from VC++ 6 to Visual studio 2005

Scheduled Pinned Locked Moved Visual Studio
c++helpcsharpvisual-studioquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nandopo
    wrote on last edited by
    #1

    I am trying to migrate a VC++ 6 project to visual studio 2005. I have a static library migrated and compiled in visual studio 2005. When I try to compile my application I get the follow link error: error LNK2001: unresolved external symbol "public: virtual int __thiscall CUGCtrl::OnHint(int,long,int,class ATL::CStringT > > *)" (?OnHint@CUGCtrl@@UAEHHJHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) The function declaration is: virtual int OnHint(int col,long row,int section,CString *string); The problem is related to the third parameter (CString *string). Thanks for the advice. Nandopo.

    J 1 Reply Last reply
    0
    • N nandopo

      I am trying to migrate a VC++ 6 project to visual studio 2005. I have a static library migrated and compiled in visual studio 2005. When I try to compile my application I get the follow link error: error LNK2001: unresolved external symbol "public: virtual int __thiscall CUGCtrl::OnHint(int,long,int,class ATL::CStringT > > *)" (?OnHint@CUGCtrl@@UAEHHJHPAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) The function declaration is: virtual int OnHint(int col,long row,int section,CString *string); The problem is related to the third parameter (CString *string). Thanks for the advice. Nandopo.

      J Offline
      J Offline
      Jose M Castellanos
      wrote on last edited by
      #2

      Hello, You can take a look to http://support.microsoft.com/default.aspx?scid=KB;EN-US;309801 There you can find some instructions for using CStrings. There is a change on the CString definition, so you have to place someting like this on your stdafx.h file: #if defined(_AFXDLL) && (_MFC_VER >= 0x0700) #pragma message ("Enablig CString from .net") #include template class __declspec(dllimport) CStringT > >; template class __declspec(dllimport) CSimpleStringT; #endif I hope this helps

      N 1 Reply Last reply
      0
      • J Jose M Castellanos

        Hello, You can take a look to http://support.microsoft.com/default.aspx?scid=KB;EN-US;309801 There you can find some instructions for using CStrings. There is a change on the CString definition, so you have to place someting like this on your stdafx.h file: #if defined(_AFXDLL) && (_MFC_VER >= 0x0700) #pragma message ("Enablig CString from .net") #include template class __declspec(dllimport) CStringT > >; template class __declspec(dllimport) CSimpleStringT; #endif I hope this helps

        N Offline
        N Offline
        nandopo
        wrote on last edited by
        #3

        Thanks I'll try

        K 1 Reply Last reply
        0
        • N nandopo

          Thanks I'll try

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #4

          You may also find this useful for any other problems encountered in your migration. Breaking Changes in Visual C++[^]

          Kevin

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups