Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
|
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2009, 09:06 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Quote:
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 it looks like.

Code:
template<>
inline UINT AFXAPI HashKey(CString key)
{
	return HashKey((LPCTSTR)key);
}
--thanks
 
Old November 4th, 2009, 06:13 AM
Authorized User
 
Join Date: Mar 2008
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Redefinition?
__________________
fight now,date in future.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move the mouse in VC++ 2005 marcelo39 Visual C++ 0 April 25th, 2008 09:36 AM
Learning ActiveX controls in VC++ 2005 kuznickic Visual C++ 2005 0 September 14th, 2007 06:21 AM
my problem with vc++2005 Anahita Visual C++ 2005 0 March 27th, 2007 09:22 AM
Please, need help with VC 2005 express IDE! pghTech Visual C++ 2005 0 June 27th, 2006 06:40 PM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.