Click here to Skip to main content
15,905,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
toxcct6-Mar-08 23:30
toxcct6-Mar-08 23:30 
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
s.m.shah6-Mar-08 23:41
s.m.shah6-Mar-08 23:41 
GeneralRe: Problem accessing C++ Win32 Dll from Managed C++/C# application Pin
toxcct6-Mar-08 23:56
toxcct6-Mar-08 23:56 
GeneralData in Memory Pin
Anu_Bala6-Mar-08 22:37
Anu_Bala6-Mar-08 22:37 
GeneralRe: Data in Memory Pin
CPallini7-Mar-08 0:29
mveCPallini7-Mar-08 0:29 
GeneralRe: Data in Memory Pin
Koder7-Mar-08 9:17
Koder7-Mar-08 9:17 
Questionabout return values.. Pin
savitri6-Mar-08 22:29
savitri6-Mar-08 22:29 
GeneralRe: about return values.. Pin
toxcct6-Mar-08 22:33
toxcct6-Mar-08 22:33 
GeneralRe: about return values.. Pin
Rajkumar R6-Mar-08 22:53
Rajkumar R6-Mar-08 22:53 
GeneralRe: about return values.. Pin
Maxwell Chen6-Mar-08 23:08
Maxwell Chen6-Mar-08 23:08 
QuestionRe: about return values.. Pin
Rajesh R Subramanian6-Mar-08 23:15
professionalRajesh R Subramanian6-Mar-08 23:15 
GeneralRe: about return values.. Pin
Maxwell Chen6-Mar-08 23:17
Maxwell Chen6-Mar-08 23:17 
GeneralRe: about return values.. Pin
Rajkumar R6-Mar-08 23:56
Rajkumar R6-Mar-08 23:56 
GeneralRe: about return values.. Pin
toxcct6-Mar-08 23:58
toxcct6-Mar-08 23:58 
QuestionRe: about return values.. Pin
savitri6-Mar-08 23:25
savitri6-Mar-08 23:25 

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.