Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalconverting code from vc6 to vc2005 Pin
neha.agarwal277-Mar-08 1:21
neha.agarwal277-Mar-08 1:21 
GeneralRe: converting code from vc6 to vc2005 Pin
Cedric Moonen7-Mar-08 1:29
Cedric Moonen7-Mar-08 1:29 
GeneralRe: converting code from vc6 to vc2005 Pin
CPallini7-Mar-08 2:12
mveCPallini7-Mar-08 2:12 
GeneralRe: converting code from vc6 to vc2005 Pin
toxcct7-Mar-08 2:26
toxcct7-Mar-08 2:26 
GeneralNope. Pin
CPallini7-Mar-08 2:33
mveCPallini7-Mar-08 2:33 
GeneralRe: converting code from vc6 to vc2005 Pin
neha.agarwal277-Mar-08 18:16
neha.agarwal277-Mar-08 18:16 
GeneralRe: converting code from vc6 to vc2005 Pin
CPallini8-Mar-08 0:47
mveCPallini8-Mar-08 0:47 
Questionanyone can help me to explain code below? Pin
gentleguy7-Mar-08 0:41
gentleguy7-Mar-08 0:41 
AnswerRe: anyone can help me to explain code below? Pin
toxcct7-Mar-08 0:47
toxcct7-Mar-08 0:47 
GeneralRe: anyone can help me to explain code below? Pin
Cedric Moonen7-Mar-08 0:50
Cedric Moonen7-Mar-08 0:50 
GeneralRe: anyone can help me to explain code below? Pin
toxcct7-Mar-08 0:53
toxcct7-Mar-08 0:53 
GeneralRe: anyone can help me to explain code below? Pin
Cedric Moonen7-Mar-08 0:57
Cedric Moonen7-Mar-08 0:57 
GeneralRe: anyone can help me to explain code below? Pin
toxcct7-Mar-08 1:01
toxcct7-Mar-08 1:01 
AnswerRe: anyone can help me to explain code below? Pin
CPallini7-Mar-08 2:31
mveCPallini7-Mar-08 2:31 
AnswerRe: anyone can help me to explain code below? Pin
Hamid_RT9-Mar-08 1:00
Hamid_RT9-Mar-08 1:00 
QuestionVisual Studio Browser Pin
Henri7-Mar-08 0:34
Henri7-Mar-08 0:34 
GeneralRe: Visual Studio Browser Pin
kanduripavan11-Mar-08 16:54
kanduripavan11-Mar-08 16:54 
General[RESOLVED]: Compile Error during project conversion from VC++6.0 to VC++ 2005 [modified] Pin
Priya_Sundar6-Mar-08 23:33
Priya_Sundar6-Mar-08 23:33 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
toxcct6-Mar-08 23:58
toxcct6-Mar-08 23:58 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Priya_Sundar7-Mar-08 0:38
Priya_Sundar7-Mar-08 0:38 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Nathan Holt at EMOM7-Mar-08 5:58
Nathan Holt at EMOM7-Mar-08 5:58 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
prasad_som7-Mar-08 4:01
prasad_som7-Mar-08 4:01 
GeneralRe: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Mike Dimmick7-Mar-08 13:56
Mike Dimmick7-Mar-08 13:56 
There are two overloads of CString::Replace: one takes two LPCTSTR parameters while the other takes two TCHAR parameters.

When converting to Visual C++ 2005 you normally run into two issues:

1. The default character type is now Unicode;
2. The new compiler is more conformant to the C++ standard

Here you have an additional complication that CString has changed significantly (it's now a template, for example).

The MFC 6.0 version would have called the CString constructor that takes a TCHAR ch and an integer nRepeat, which was defaulted to 1. This version of the constructor generated a string of nRepeat copies of ch. This still exists in MFC 8.0 but has been marked explicit, which means that the types must match exactly.

However, calling a CString constructor is unnecessary - you should instead use a string literal.
str.Replace( "\r\n", "\xb6" );
Because of the change to Unicode, you may find you need to put _T() around both string literals.


DoEvents: Generating unexpected recursion since 1991

General[RESOLVED]: Compile Error during project conversion from VC++6.0 to VC++ 2005 Pin
Priya_Sundar9-Mar-08 18:38
Priya_Sundar9-Mar-08 18:38 
GeneralProblem accessing C++ Win32 Dll from Managed C++/C# application Pin
s.m.shah6-Mar-08 23:19
s.m.shah6-Mar-08 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.