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

C / C++ / MFC

 
GeneralRe: dll Pin
Ni@m11-Jun-04 23:51
Ni@m11-Jun-04 23:51 
Generalmfc class wizard Pin
mark18211-Jun-04 1:57
mark18211-Jun-04 1:57 
GeneralRe: mfc class wizard Pin
David Crow11-Jun-04 2:40
David Crow11-Jun-04 2:40 
GeneralRe: mfc class wizard Pin
palbano11-Jun-04 5:00
palbano11-Jun-04 5:00 
GeneralRe: mfc class wizard Pin
BlackDice11-Jun-04 4:11
BlackDice11-Jun-04 4:11 
GeneralC question Pin
saurabh190511-Jun-04 1:17
saurabh190511-Jun-04 1:17 
GeneralRe: C question Pin
jerry1211a11-Jun-04 1:25
jerry1211a11-Jun-04 1:25 
GeneralRe: C question Pin
jmkhael11-Jun-04 2:15
jmkhael11-Jun-04 2:15 
MSDN:
"The printf function formats and prints a series of characters and values to the standard output stream, stdout. If arguments follow the format string, the format string must contain specifications that determine the output format for the arguments."

Your format string is "%d" but no arguments follows that format string. so basically the printf function (knowing that it is a variable arguments function using a __cdecl calling convention) will take from the stack the parameters it needs (based on the format string "%d" you said i give you an int) and construct the string and send it as output

So the value -1 is a value the printf function is taking it from the stack.

Hope i kind of answered your question

Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
GeneralRe: C question Pin
Antony M Kancidrowski11-Jun-04 2:34
Antony M Kancidrowski11-Jun-04 2:34 
GeneralRe: C question Pin
kyleiscool200411-Jun-04 6:45
kyleiscool200411-Jun-04 6:45 
QuestionMain Window Title - How Can Title be Changed? Pin
jerry1211a11-Jun-04 1:16
jerry1211a11-Jun-04 1:16 
AnswerRe: Main Window Title - How Can Title be Changed? Pin
jmkhael11-Jun-04 2:22
jmkhael11-Jun-04 2:22 
AnswerRe: Main Window Title - How Can Title be Changed? Pin
David Crow11-Jun-04 2:36
David Crow11-Jun-04 2:36 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
Mikey_E6-Jul-04 19:48
professionalMikey_E6-Jul-04 19:48 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
David Crow7-Jul-04 2:22
David Crow7-Jul-04 2:22 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
Mikey_E7-Jul-04 7:14
professionalMikey_E7-Jul-04 7:14 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
David Crow7-Jul-04 8:51
David Crow7-Jul-04 8:51 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
Mikey_E7-Jul-04 12:47
professionalMikey_E7-Jul-04 12:47 
GeneralRe: Main Window Title - How Can Title be Changed? Pin
David Crow8-Jul-04 2:15
David Crow8-Jul-04 2:15 
GeneralSet button style Pin
marcomars11-Jun-04 0:45
marcomars11-Jun-04 0:45 
GeneralRe: Set button style Pin
Johan Rosengren11-Jun-04 1:51
Johan Rosengren11-Jun-04 1:51 
GeneralRe: Set button style Pin
V.11-Jun-04 2:08
professionalV.11-Jun-04 2:08 
GeneralRe: Set button style Pin
David Crow11-Jun-04 2:34
David Crow11-Jun-04 2:34 
GeneralTab Order on Property Sheets Pin
tr111-Jun-04 0:42
tr111-Jun-04 0:42 
GeneralRe: Tab Order on Property Sheets Pin
Mike Dimmick11-Jun-04 2:34
Mike Dimmick11-Jun-04 2:34 

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.