Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to stretch a bitmap to fit the size of picture control? Pin
tagopi3-Jun-09 19:53
tagopi3-Jun-09 19:53 
AnswerRe: How to stretch a bitmap to fit the size of picture control? Pin
«_Superman_»3-Jun-09 19:22
professional«_Superman_»3-Jun-09 19:22 
AnswerRe: How to stretch a bitmap to fit the size of picture control? Pin
GCFMAT23-Feb-10 17:52
GCFMAT23-Feb-10 17:52 
Questioncreate a process from a process and have it not in the same security context Pin
aolinc383-Jun-09 15:33
aolinc383-Jun-09 15:33 
AnswerRe: create a process from a process and have it not in the same security context Pin
norish3-Jun-09 15:57
norish3-Jun-09 15:57 
AnswerRe: create a process from a process and have it not in the same security context Pin
cefarix3-Jun-09 17:53
cefarix3-Jun-09 17:53 
QuestionHow the output? Pin
Gjm3-Jun-09 12:41
Gjm3-Jun-09 12:41 
AnswerRe: How the output? Pin
Stuart Dootson3-Jun-09 12:48
professionalStuart Dootson3-Jun-09 12:48 
In the scanf call, scanf will take n to be a char* value, so will store the string read in at the address given by n. You're just 'lucky' that n's value is equivalent to a writeable address.

The printf call? Well, as printf is a variadic funtion, it'll look up the stack from the pushed format string, looking for argument values. The next value on the stack above the format string is (you guessed it!) n, so printf will see n, interpret it as a char* value and print the string at that address.

The joys of a type-unsafe system programming language Smile | :)

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionMFC Socket Pin
reddy073-Jun-09 10:16
reddy073-Jun-09 10:16 
QuestionRe: MFC Socket Pin
David Crow3-Jun-09 11:01
David Crow3-Jun-09 11:01 
AnswerRe: MFC Socket Pin
reddy073-Jun-09 12:06
reddy073-Jun-09 12:06 
QuestionHuge memory leak C++ C Program. [modified] Pin
jobin0070073-Jun-09 9:50
jobin0070073-Jun-09 9:50 
AnswerRe: Huge memory leak C++ C Program. Pin
Luc Pattyn3-Jun-09 10:53
sitebuilderLuc Pattyn3-Jun-09 10:53 
GeneralRe: Huge memory leak C++ C Program. Pin
jobin0070073-Jun-09 12:07
jobin0070073-Jun-09 12:07 
GeneralRe: Huge memory leak C++ C Program. Pin
norish3-Jun-09 15:32
norish3-Jun-09 15:32 
AnswerSolved: Huge memory leak C++ C Program. Pin
jobin0070073-Jun-09 16:11
jobin0070073-Jun-09 16:11 
Questionthe Prompt save message Pin
susanne13-Jun-09 4:56
susanne13-Jun-09 4:56 
QuestionRe: the Prompt save message Pin
David Crow3-Jun-09 4:58
David Crow3-Jun-09 4:58 
AnswerRe: the Prompt save message Pin
susanne14-Jun-09 0:55
susanne14-Jun-09 0:55 
GeneralRe: the Prompt save message Pin
susanne14-Jun-09 1:00
susanne14-Jun-09 1:00 
GeneralRe: the Prompt save message Pin
David Crow4-Jun-09 5:47
David Crow4-Jun-09 5:47 
QuestionRestart Manager Using VS2005 MFC Pin
Member 41040373-Jun-09 4:44
Member 41040373-Jun-09 4:44 
AnswerRe: Restart Manager Using VS2005 MFC Pin
Stuart Dootson3-Jun-09 9:08
professionalStuart Dootson3-Jun-09 9:08 
QuestionDEBUG to RELEASE Pin
eli150219793-Jun-09 4:35
eli150219793-Jun-09 4:35 
QuestionRe: DEBUG to RELEASE Pin
David Crow3-Jun-09 5:00
David Crow3-Jun-09 5: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.