Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to get record count by SQL from a table of MS access? Pin
CPallini3-Jun-09 20:13
mveCPallini3-Jun-09 20:13 
AnswerRe: how to get record count by SQL from a table of MS access? Pin
Stuart Dootson3-Jun-09 22:04
professionalStuart Dootson3-Jun-09 22:04 
QuestionMessage Removed Pin
3-Jun-09 19:59
lek2583-Jun-09 19:59 
AnswerRe: i wanto make my own program creating UDF file system Image file.. Pin
Stuart Dootson3-Jun-09 21:46
professionalStuart Dootson3-Jun-09 21:46 
QuestionHow to stretch a bitmap to fit the size of picture control? Pin
tagopi3-Jun-09 18:57
tagopi3-Jun-09 18:57 
AnswerRe: How to stretch a bitmap to fit the size of picture control? Pin
CPallini3-Jun-09 19:10
mveCPallini3-Jun-09 19:10 
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 

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.