Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: begginner with MFC Pin
Drake Elsari11-Jun-01 3:20
Drake Elsari11-Jun-01 3:20 
GeneralRe: begginner with MFC Pin
Christian Graus11-Jun-01 11:03
protectorChristian Graus11-Jun-01 11:03 
Questionwhy the scrollbar doesn't work for a dialog window? Pin
10-Jun-01 15:22
suss10-Jun-01 15:22 
AnswerRe: why the scrollbar doesn't work for a dialog window? Pin
Stan Shannon10-Jun-01 15:56
Stan Shannon10-Jun-01 15:56 
GeneralSwitching to a particular record in a database Pin
mArkcpp10-Jun-01 12:25
mArkcpp10-Jun-01 12:25 
GeneralRe: Switching to a particular record in a database Pin
Tim Deveaux10-Jun-01 14:42
Tim Deveaux10-Jun-01 14:42 
GeneralRe: Switching to a particular record in a database Pin
Masaaki Onishi10-Jun-01 14:54
Masaaki Onishi10-Jun-01 14:54 
GeneralRe: Switching to a particular record in a database Pin
mArkcpp11-Jun-01 14:23
mArkcpp11-Jun-01 14:23 
GeneralWM_PAINT in View Pin
BryanBHU10-Jun-01 9:00
BryanBHU10-Jun-01 9:00 
GeneralRe: WM_PAINT in View Pin
Michael Dunn10-Jun-01 9:56
sitebuilderMichael Dunn10-Jun-01 9:56 
GeneralRe: WM_PAINT in View Pin
BryanBHU10-Jun-01 10:21
BryanBHU10-Jun-01 10:21 
GeneralRe: WM_PAINT in View Pin
Christian Graus10-Jun-01 12:44
protectorChristian Graus10-Jun-01 12:44 
GeneralRe: WM_PAINT in View Pin
BryanBHU10-Jun-01 13:59
BryanBHU10-Jun-01 13:59 
GeneralRe: WM_PAINT in View Pin
Jonathon Lockett10-Jun-01 16:39
Jonathon Lockett10-Jun-01 16:39 
GeneralRe: WM_PAINT in View Pin
BryanBHU10-Jun-01 16:48
BryanBHU10-Jun-01 16:48 
GeneralRe: WM_PAINT in View Pin
Christian Graus11-Jun-01 0:33
protectorChristian Graus11-Jun-01 0:33 
GeneralRe: WM_PAINT in View Pin
Tomasz Sowinski11-Jun-01 3:01
Tomasz Sowinski11-Jun-01 3:01 
GeneralRe: WM_PAINT in View Pin
BryanBHU11-Jun-01 8:11
BryanBHU11-Jun-01 8:11 
GeneralRe: WM_PAINT in View Pin
Tomasz Sowinski11-Jun-01 0:22
Tomasz Sowinski11-Jun-01 0:22 
Generalmfc dll Pin
Nitish Kumar10-Jun-01 7:23
Nitish Kumar10-Jun-01 7:23 
GeneralRe: mfc dll Pin
Tim Deveaux10-Jun-01 12:46
Tim Deveaux10-Jun-01 12:46 
Generalchar* return problem Pin
10-Jun-01 4:01
suss10-Jun-01 4:01 
GeneralRe: char* return problem Pin
Stan Shannon10-Jun-01 4:12
Stan Shannon10-Jun-01 4:12 
You are not allocating memory on the heap for the object. The memory you are trying to use is in the local stack defined for the block you are in for that function call. Either dynamically allocate memory for the array, or better, define your char array on the call side, and pass it in to the formatForPrinting call. BTW, why aren't you using CString - it handles all that for you?

GeneralRe: char* return problem Pin
10-Jun-01 4:29
suss10-Jun-01 4:29 
GeneralRe: char* return problem Pin
Stan Shannon10-Jun-01 5:11
Stan Shannon10-Jun-01 5:11 

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.