Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get char[] from CEdit control Pin
masnu4-May-06 10:51
masnu4-May-06 10:51 
I'm trying to get information from a dialog box and writie it to a binary file. I can use the following code:

m_txtAirplane.GetWindowText(s);<br />
 strcpy(airplane[15], (LPCTSTR)s);


This works fine when I'm using non-Unicode character set, but I loose the "look and feel" of Windows XP on my dialogs.

Is there a way of getting the CString, from a CEdit box, into a char array when I'm using a Unicode character set so that I can preserve the look of Windows XP?

Thanks.
AnswerRe: How to get char[] from CEdit control Pin
led mike4-May-06 11:23
led mike4-May-06 11:23 
AnswerRe: How to get char[] from CEdit control Pin
RChin4-May-06 11:26
RChin4-May-06 11:26 
AnswerRe: How to get char[] from CEdit control Pin
Amar Sutar4-May-06 18:53
Amar Sutar4-May-06 18:53 
QuestionCTreeCtrl derived class problem Pin
Neagoe Gabriel4-May-06 9:48
Neagoe Gabriel4-May-06 9:48 
QuestionOS in C++ Pin
BorolePrashant4-May-06 9:35
BorolePrashant4-May-06 9:35 
GeneralRe: OS in C++ Pin
Maxwell Chen4-May-06 19:22
Maxwell Chen4-May-06 19:22 
QuestionHow to implement a WM_COPY handler for a CEdit derived control Pin
madmax00014-May-06 9:10
madmax00014-May-06 9:10 
AnswerRe: How to implement a WM_COPY handler for a CEdit derived control Pin
David Crow4-May-06 9:12
David Crow4-May-06 9:12 
GeneralRe: How to implement a WM_COPY handler for a CEdit derived control Pin
madmax00014-May-06 9:34
madmax00014-May-06 9:34 
GeneralRe: How to implement a WM_COPY handler for a CEdit derived control Pin
David Crow4-May-06 10:37
David Crow4-May-06 10:37 
GeneralRe: How to implement a WM_COPY handler for a CEdit derived control Pin
madmax00014-May-06 11:12
madmax00014-May-06 11:12 
Questionstd::string to float Pin
rahultaing4-May-06 7:43
rahultaing4-May-06 7:43 
AnswerRe: std::string to float Pin
Cedric Moonen4-May-06 7:49
Cedric Moonen4-May-06 7:49 
GeneralRe: std::string to float Pin
jiangalong4-May-06 20:35
jiangalong4-May-06 20:35 
GeneralRe: std::string to float Pin
Cedric Moonen4-May-06 20:45
Cedric Moonen4-May-06 20:45 
AnswerRe: std::string to float Pin
Michael Dunn4-May-06 8:38
sitebuilderMichael Dunn4-May-06 8:38 
NewsRe: std::string to float Pin
Roland Pibinger4-May-06 10:41
Roland Pibinger4-May-06 10:41 
GeneralRe: std::string to float Pin
Michael Dunn4-May-06 10:53
sitebuilderMichael Dunn4-May-06 10:53 
QuestionRe: std::string to float Pin
led mike4-May-06 11:56
led mike4-May-06 11:56 
JokeRe: std::string to float Pin
David Crow5-May-06 2:24
David Crow5-May-06 2:24 
GeneralRe: std::string to float Pin
Rob Caldecott4-May-06 13:18
Rob Caldecott4-May-06 13:18 
GeneralRe: std::string to float Pin
Stephen Hewitt4-May-06 15:06
Stephen Hewitt4-May-06 15:06 
QuestionTray icon notifier when usb plugging Pin
asancho4-May-06 6:32
asancho4-May-06 6:32 
AnswerRe: Tray icon notifier when usb plugging Pin
toxcct4-May-06 6:44
toxcct4-May-06 6:44 

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.