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

C / C++ / MFC

 
GeneralCString to char array[40] Pin
Johnny Starr8-Feb-01 8:18
Johnny Starr8-Feb-01 8:18 
GeneralRe: CString to char array[40] Pin
Anders Molin8-Feb-01 8:46
professionalAnders Molin8-Feb-01 8:46 
GeneralRe: CString to char array[40] Pin
Michael Dunn8-Feb-01 9:13
sitebuilderMichael Dunn8-Feb-01 9:13 
GeneralRe: CString to char array[40] Pin
Erik Funkenbusch12-Feb-01 13:26
Erik Funkenbusch12-Feb-01 13:26 
GeneralCString to char array[40] Pin
Johnny Starr8-Feb-01 8:16
Johnny Starr8-Feb-01 8:16 
GeneralCString to char array[40] Pin
Johnny Starr8-Feb-01 8:15
Johnny Starr8-Feb-01 8:15 
GeneralCString to char array[40] Pin
Johnny Starr8-Feb-01 8:15
Johnny Starr8-Feb-01 8:15 
GeneralRe: CString to char array[40] Pin
Paul Selormey8-Feb-01 8:49
Paul Selormey8-Feb-01 8:49 
Simply copy, ie assuming your CString object is cstringObject...

ASSERT(cstringObject.GetLength() < 40);
if (cstringObject.GetLength() < 40)
lstrcpy(array, cstringObject);

Regards,
Paul.


Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for day job or programming contract anywhere!
GeneralCStatusBar Text in MFC Application Pin
8-Feb-01 5:25
suss8-Feb-01 5:25 
GeneralRe: CStatusBar Text in MFC Application Pin
8-Feb-01 7:57
suss8-Feb-01 7:57 
GeneralProblem with CList, Carray,.... Pin
leonwoo8-Feb-01 2:32
leonwoo8-Feb-01 2:32 
GeneralRe: Problem with CList, Carray,.... Pin
Daniel Ferguson8-Feb-01 3:48
Daniel Ferguson8-Feb-01 3:48 
GeneralRe: Problem with CList, Carray,.... Pin
leonwoo8-Feb-01 10:55
leonwoo8-Feb-01 10:55 
GeneralRe: Problem with CList, Carray,.... Pin
leonwoo9-Feb-01 13:50
leonwoo9-Feb-01 13:50 
QuestionMusic in a Dialog?? Pin
8-Feb-01 2:06
suss8-Feb-01 2:06 
AnswerRe: Music in a Dialog?? Pin
.::RockNix::.8-Feb-01 3:47
.::RockNix::.8-Feb-01 3:47 
GeneralRe: Music in a Dialog?? Pin
8-Feb-01 8:17
suss8-Feb-01 8:17 
GeneralRe: Music in a Dialog?? Pin
.::RockNix::.8-Feb-01 20:55
.::RockNix::.8-Feb-01 20:55 
GeneralRe: Music in a Dialog?? Pin
9-Feb-01 4:40
suss9-Feb-01 4:40 
GeneralRe: Music in a Dialog?? Pin
.::RockNix::.11-Feb-01 20:52
.::RockNix::.11-Feb-01 20:52 
GeneralRe: Music in a Dialog?? Pin
.::RockNix::.11-Feb-01 20:55
.::RockNix::.11-Feb-01 20:55 
QuestionHow to write DOS-Programs with VC++6 Pin
8-Feb-01 1:51
suss8-Feb-01 1:51 
AnswerRe: How to write DOS-Programs with VC++6 Pin
Daniel Ferguson8-Feb-01 3:19
Daniel Ferguson8-Feb-01 3:19 
GeneralRe: How to write DOS-Programs with VC++6 Pin
Deian8-Feb-01 3:25
Deian8-Feb-01 3:25 
GeneralRe: How to write DOS-Programs with VC++6 Pin
8-Feb-01 4:00
suss8-Feb-01 4:00 

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.