CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    8

    Migrating from VC++ 6 to VC++ 2005

    Hello ,

    I am trying to migrate to VC++ 2005 from VC++ 6 and got this error while compiling my code.


    error C2766: explicit specialization; 'UINT HashKey<CString>(CString)' has already been defined

    I was not the original author of the code and starting working with VC++ 2005. Can you please help . Here is what my code looks like.


    template<>
    inline UINT AFXAPI HashKey(CString key)
    {
    return HashKey((LPCTSTR)key);
    }

  2. #2
    Join Date
    Mar 2009
    Posts
    8

    Re: Migrating from VC++ 6 to VC++ 2005

    I got this problem solved. You can mail me if you would like to get out if this.
    My e-mail raghu[dot]equinox[@]gmail[dot]com

  3. #3
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Migrating from VC++ 6 to VC++ 2005

    Quote Originally Posted by raghud View Post
    I got this problem solved. You can mail me if you would like to get out if this.
    My e-mail raghu[dot]equinox[@]gmail[dot]com
    You posted the problem on a public forum, so post the solution on the forum.

    Regards,

    Paul McKenzie

  4. #4
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241

    Re: Migrating from VC++ 6 to VC++ 2005

    I feel your pain. I've been working for a while upgrading a BIG (50,000 lines of code or something of that order) project from VC++ 6 to VC++ .NET 2005. It's been a long and painful experience (that isn't quite over with yet).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured