Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can load dll in project? Pin
Le@rner7-Apr-09 20:56
Le@rner7-Apr-09 20:56 
GeneralRe: How can load dll in project? Pin
«_Superman_»7-Apr-09 22:08
professional«_Superman_»7-Apr-09 22:08 
AnswerRe: How can load dll in project? Pin
Rajesh R Subramanian8-Apr-09 0:11
professionalRajesh R Subramanian8-Apr-09 0:11 
GeneralRe: How can load dll in project? Pin
Le@rner8-Apr-09 0:50
Le@rner8-Apr-09 0:50 
GeneralRe: How can load dll in project? Pin
Rajesh R Subramanian8-Apr-09 2:06
professionalRajesh R Subramanian8-Apr-09 2:06 
QuestionMy xp application can't support vista Pin
tyr20007-Apr-09 16:53
tyr20007-Apr-09 16:53 
AnswerRe: My xp application can't support vista Pin
Stuart Dootson7-Apr-09 21:41
professionalStuart Dootson7-Apr-09 21:41 
QuestionMFC Conversion to Unicode in VS2008 Pin
Selumbei7-Apr-09 16:32
Selumbei7-Apr-09 16:32 
Hi
I'm converting an existing C++ MFC project in VS2008 to Unicode. The project had previously been upgraded to VS2008 from VS2005 and is running successfully as MBCS built by VS2008. I have also successfully tested a small (new) MFC Unicode app in C++.

I set the Project Properties to "Use Unicode ..." instead of MBCS and did a rebuild. UNICODE and _UNICODE are defined in the Preprocessor directives due to 'Use Unicode ...' in the project properties. When I build I get a lot of errors related to the definition of szFaceName in CHARFORMAT2. The errors are related to the definition of CHARFORMAT szFaceName as 'char' rather than WCHAR. Looking at the definition of CHARFORMAT2 in Richedit.h it has:

#ifdef UNICODE
#define CHARFORMAT2 CHARFORMAT2W
#else
#define CHARFORMAT2 CHARFORMAT2A
#endif

and the CHARFORMAT2A line is the one highlighted - effectively saying that UNICODE is NOT defined.

I am at a loss to understand why UNICODE is undefined in Richedit.h and how to fix it. I have tried defining UNICODE and _UNICODE in stdafx.h without any success.

I'd be grateful for any help with this - its driving me crackers.

Thanks in anticipation Smile | :)
AnswerRe: MFC Conversion to Unicode in VS2008 Pin
Stuart Dootson7-Apr-09 21:44
professionalStuart Dootson7-Apr-09 21:44 
GeneralRe: MFC Conversion to Unicode in VS2008 Pin
Selumbei8-Apr-09 13:12
Selumbei8-Apr-09 13:12 
QuestionHow do I launch a process as user "Administrator"? Pin
PeniWize7-Apr-09 16:32
PeniWize7-Apr-09 16:32 
AnswerRe: How do I launch a process as user "Administrator"? Pin
«_Superman_»7-Apr-09 18:01
professional«_Superman_»7-Apr-09 18:01 
GeneralRe: How do I launch a process as user "Administrator"? Pin
PeniWize8-Apr-09 9:00
PeniWize8-Apr-09 9:00 
QuestionHELP PLEASE!! Character strings.. PROBLEMS!! using pointers Pin
JasonSprosty7-Apr-09 15:12
JasonSprosty7-Apr-09 15:12 
AnswerRe: HELP PLEASE!! Character strings.. PROBLEMS!! using pointers Pin
«_Superman_»7-Apr-09 18:03
professional«_Superman_»7-Apr-09 18:03 
QuestionCan't intall latest SDK for V6.0 Pin
Member 11885607-Apr-09 10:58
Member 11885607-Apr-09 10:58 
QuestionCView Window ? Pin
sabdalla807-Apr-09 9:49
sabdalla807-Apr-09 9:49 
QuestionRe: CView Window ? Pin
CPallini7-Apr-09 9:56
mveCPallini7-Apr-09 9:56 
AnswerRe: CView Window ? Pin
sabdalla807-Apr-09 10:34
sabdalla807-Apr-09 10:34 
QuestionHighlighting HTML text Pin
rp_suman7-Apr-09 7:32
rp_suman7-Apr-09 7:32 
AnswerRe: Highlighting HTML text Pin
«_Superman_»7-Apr-09 18:11
professional«_Superman_»7-Apr-09 18:11 
QuestionMembers Named using Template Parameters Pin
Skippums7-Apr-09 5:59
Skippums7-Apr-09 5:59 
AnswerRe: Members Named using Template Parameters Pin
Roger Stoltz7-Apr-09 6:27
Roger Stoltz7-Apr-09 6:27 
GeneralRe: Members Named using Template Parameters Pin
Skippums7-Apr-09 7:19
Skippums7-Apr-09 7:19 
AnswerRe: Members Named using Template Parameters Pin
Stuart Dootson7-Apr-09 8:04
professionalStuart Dootson7-Apr-09 8:04 

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.