Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do i find last created file in a specified directory? Pin
yogish29326-Apr-11 23:34
yogish29326-Apr-11 23:34 
QuestionFindWindowex in MFC Application Pin
irudayam26-Apr-11 21:14
irudayam26-Apr-11 21:14 
AnswerRe: FindWindowex in MFC Application Pin
Richard MacCutchan26-Apr-11 22:25
mveRichard MacCutchan26-Apr-11 22:25 
AnswerRe: FindWindowex in MFC Application Pin
Hans Dietrich27-Apr-11 5:56
mentorHans Dietrich27-Apr-11 5:56 
GeneralRe: FindWindowex in MFC Application Pin
irudayam27-Apr-11 19:18
irudayam27-Apr-11 19:18 
Questionconversion from CString to char Pin
VCProgrammer26-Apr-11 20:58
VCProgrammer26-Apr-11 20:58 
AnswerRe: conversion from CString to char Pin
వేంకటనారాయణ(venkatmakam)26-Apr-11 21:16
వేంకటనారాయణ(venkatmakam)26-Apr-11 21:16 
AnswerRe: conversion from CString to char Pin
«_Superman_»26-Apr-11 22:36
professional«_Superman_»26-Apr-11 22:36 
CString can be compiled in UNICODE or NON-UNICODE mode.
In NON-UNICODE mode, the underlying data type is a char.
But in UNICODE mode, the underlying data type is a wchar_t.

So in UNICODE mode, you may not be able to directly assign a single character to a char variable using the GetAt function or []operator.

Here is something you can do so that it works in both UNICODE and NON-UNICODE builds -
CString str("Hello World");
CStringA stra(str);
char C = stra[6];     // Will contain 'W'.

«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C

AnswerRe: conversion from CString to char Pin
varunpandeyengg27-Apr-11 0:38
varunpandeyengg27-Apr-11 0:38 
Questionhow to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
mathivanaan26-Apr-11 19:13
mathivanaan26-Apr-11 19:13 
AnswerRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
vishal_kapoor26-Apr-11 20:33
vishal_kapoor26-Apr-11 20:33 
AnswerRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
markkuk26-Apr-11 23:03
markkuk26-Apr-11 23:03 
QuestionRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
Niklas L27-Apr-11 7:46
Niklas L27-Apr-11 7:46 
QuestionHow to save changes made to VC tool box Pin
Cold_Fearing_Bird25-Apr-11 22:13
Cold_Fearing_Bird25-Apr-11 22:13 
AnswerRe: How to save changes made to VC tool box Pin
«_Superman_»25-Apr-11 22:35
professional«_Superman_»25-Apr-11 22:35 
GeneralRe: How to save changes made to VC tool box Pin
Cold_Fearing_Bird25-Apr-11 23:10
Cold_Fearing_Bird25-Apr-11 23:10 
QuestionPlease help me for EnableWindow of main dialog. Pin
Le@rner25-Apr-11 19:37
Le@rner25-Apr-11 19:37 
AnswerRe: Please help me for EnableWindow of main dialog. Pin
«_Superman_»25-Apr-11 19:50
professional«_Superman_»25-Apr-11 19:50 
AnswerRe: Please help me for EnableWindow of main dialog. Pin
Richard MacCutchan25-Apr-11 22:04
mveRichard MacCutchan25-Apr-11 22:04 
AnswerRe: Please help me for EnableWindow of main dialog. Pin
Cold_Fearing_Bird25-Apr-11 22:15
Cold_Fearing_Bird25-Apr-11 22:15 
QuestionMFC calculator with huge real.... Pin
hmaz462925-Apr-11 3:21
hmaz462925-Apr-11 3:21 
AnswerRe: MFC calculator with huge real.... Pin
Hans Dietrich25-Apr-11 3:51
mentorHans Dietrich25-Apr-11 3:51 
GeneralRe: MFC calculator with huge real.... Pin
Albert Holguin25-Apr-11 5:38
professionalAlbert Holguin25-Apr-11 5:38 
GeneralRe: MFC calculator with huge real.... Pin
hmaz462926-Apr-11 16:04
hmaz462926-Apr-11 16:04 
GeneralRe: MFC calculator with huge real.... Pin
Cedric Moonen26-Apr-11 20:31
Cedric Moonen26-Apr-11 20:31 

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.