Click here to Skip to main content
16,004,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Date receiver Pin
Maximilien26-Aug-05 4:13
Maximilien26-Aug-05 4:13 
Questioncaling conventions Pin
Member 222581226-Aug-05 1:29
Member 222581226-Aug-05 1:29 
AnswerRe: caling conventions Pin
Cedric Moonen26-Aug-05 1:55
Cedric Moonen26-Aug-05 1:55 
GeneralRe: caling conventions Pin
toxcct26-Aug-05 2:26
toxcct26-Aug-05 2:26 
GeneralRe: caling conventions Pin
Cedric Moonen26-Aug-05 2:36
Cedric Moonen26-Aug-05 2:36 
GeneralRe: caling conventions Pin
Member 222581226-Aug-05 3:00
Member 222581226-Aug-05 3:00 
GeneralRe: caling conventions Pin
MailtoGops26-Aug-05 3:19
MailtoGops26-Aug-05 3:19 
GeneralRe: caling conventions Pin
David Crow26-Aug-05 3:22
David Crow26-Aug-05 3:22 
j.dinjens wrote:
If I read all the articles about calling conventions, they learn me that the main difference is in cleaning up the stack. If I read the documentation on this topic in the ms visual c++ help documentation, they only talk about __cdecl __stdcall and __fastcall. But according to this doccumentation, the cleaning-up of the stack is the same for all 3 conventions.

I'm a little confused :confusedmaybe not due to this problem) right now.


A __stdcall function’s arguments are pushed onto the stack from right to left, and the called function pops these arguments from the stack before it returns. It cannot be used with a variable-argument function. A __cdecl function’s arguments are pushed onto the stack from right to left, and the stack is cleaned up by the caller.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


QuestionHow to get HWND of my application window ? Pin
Amarelia26-Aug-05 1:08
Amarelia26-Aug-05 1:08 
AnswerRe: How to get HWND of my application window ? Pin
Jack Puppy26-Aug-05 1:41
Jack Puppy26-Aug-05 1:41 
AnswerRe: How to get HWND of my application window ? Pin
MailtoGops26-Aug-05 3:28
MailtoGops26-Aug-05 3:28 
QuestionCmdUpdateUI Pin
Joel Holdsworth26-Aug-05 1:05
Joel Holdsworth26-Aug-05 1:05 
AnswerRe: CmdUpdateUI Pin
Roger Allen26-Aug-05 2:45
Roger Allen26-Aug-05 2:45 
AnswerRe: CmdUpdateUI Pin
David Crow26-Aug-05 3:13
David Crow26-Aug-05 3:13 
GeneralRe: CmdUpdateUI Pin
Joel Holdsworth26-Aug-05 4:39
Joel Holdsworth26-Aug-05 4:39 
GeneralRe: CmdUpdateUI Pin
David Crow26-Aug-05 4:48
David Crow26-Aug-05 4:48 
GeneralRe: CmdUpdateUI Pin
Joel Holdsworth29-Aug-05 22:20
Joel Holdsworth29-Aug-05 22:20 
GeneralRe: CmdUpdateUI Pin
Joel Holdsworth29-Aug-05 23:22
Joel Holdsworth29-Aug-05 23:22 
QuestionDynamically allocated strings Pin
Anonymous26-Aug-05 0:40
Anonymous26-Aug-05 0:40 
AnswerRe: Dynamically allocated strings Pin
Bob Ciora26-Aug-05 1:08
Bob Ciora26-Aug-05 1:08 
GeneralRe: Dynamically allocated strings Pin
Cedric Moonen26-Aug-05 1:13
Cedric Moonen26-Aug-05 1:13 
GeneralRe: Dynamically allocated strings Pin
sunit526-Aug-05 1:09
sunit526-Aug-05 1:09 
AnswerRe: Dynamically allocated strings Pin
oleg6326-Aug-05 4:38
professionaloleg6326-Aug-05 4:38 
QuestionCStatic Pin
Nishad S26-Aug-05 0:35
Nishad S26-Aug-05 0:35 
AnswerRe: CStatic Pin
Jack Puppy26-Aug-05 1:55
Jack Puppy26-Aug-05 1: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.