Click here to Skip to main content
15,898,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIn Place Server Pin
Anthony988711-Dec-02 9:00
Anthony988711-Dec-02 9:00 
GeneralCatching OnSysCommand in own class Pin
BtL2711-Dec-02 8:44
BtL2711-Dec-02 8:44 
GeneralRe: Catching OnSysCommand in own class Pin
Alvaro Mendez11-Dec-02 9:04
Alvaro Mendez11-Dec-02 9:04 
GeneralType Libraries and MFC Question Pin
Nick Parker11-Dec-02 8:40
protectorNick Parker11-Dec-02 8:40 
GeneralCopying CString to char* Pin
Like2Byte11-Dec-02 8:32
Like2Byte11-Dec-02 8:32 
GeneralRe: Copying CString to char* Pin
User 665811-Dec-02 8:43
User 665811-Dec-02 8:43 
GeneralRe: Copying CString to char* Pin
Like2Byte11-Dec-02 8:49
Like2Byte11-Dec-02 8:49 
GeneralRe: Copying CString to char* Pin
Michael Dunn11-Dec-02 8:49
sitebuilderMichael Dunn11-Dec-02 8:49 
Any time you use a string object (CString or any other string wrapper class) with the printf family of functions, you need to cast the object to a pointer type, so that only the pointer is put on the stack.
sprintf( SomeCharArray + strlen(SomeCharArray), "%s", (LPCTSTR) m_sAccount);
But as Gregor said, the real bug in your code is how you construct the string in the first place. Just use one sprintf() call.

--Mike--
Friday's GoogleFight results: Britney Spears 2,190,000 - Erica Weichers 23 Frown | :(

1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm

GeneralRe: Copying CString to char* Pin
Like2Byte11-Dec-02 8:51
Like2Byte11-Dec-02 8:51 
GeneralRe: Copying CString to char* Pin
Alvaro Mendez11-Dec-02 8:56
Alvaro Mendez11-Dec-02 8:56 
GeneralRe: Copying CString to char* Pin
carrie11-Dec-02 10:39
carrie11-Dec-02 10:39 
GeneralRe: Copying CString to char* Pin
Gary R. Wheeler11-Dec-02 14:55
Gary R. Wheeler11-Dec-02 14:55 
GeneralRe: Copying CString to char* Pin
Shay Harel11-Dec-02 17:36
Shay Harel11-Dec-02 17:36 
GeneralRe: Copying CString to char* Pin
Like2Byte12-Dec-02 3:04
Like2Byte12-Dec-02 3:04 
GeneralHandling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 7:13
DRHuff11-Dec-02 7:13 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
Joan M11-Dec-02 7:38
professionalJoan M11-Dec-02 7:38 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 7:52
DRHuff11-Dec-02 7:52 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
Alvaro Mendez11-Dec-02 8:28
Alvaro Mendez11-Dec-02 8:28 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 9:34
DRHuff11-Dec-02 9:34 
Generalchange color or Url in RichEdit control Pin
romelq11-Dec-02 6:53
romelq11-Dec-02 6:53 
GeneralVisual studio question Pin
Shay Harel11-Dec-02 5:45
Shay Harel11-Dec-02 5:45 
GeneralRe: Visual studio question Pin
User 665811-Dec-02 7:11
User 665811-Dec-02 7:11 
GeneralRe: Visual studio question Pin
Shay Harel11-Dec-02 7:19
Shay Harel11-Dec-02 7:19 
GeneralRe: Visual studio question Pin
-=jarl=-11-Dec-02 7:18
-=jarl=-11-Dec-02 7:18 
GeneralRe: Visual studio question Pin
Shay Harel11-Dec-02 8:07
Shay Harel11-Dec-02 8:07 

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.