Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you get the default email client on 95/98/98se/me/xp/nt/2000 Pin
Peter Molnar21-Nov-03 9:28
Peter Molnar21-Nov-03 9:28 
GeneralFunction decorators Pin
Abin20-Nov-03 13:38
Abin20-Nov-03 13:38 
GeneralRe: Function decorators Pin
Terry O'Nolley20-Nov-03 13:50
Terry O'Nolley20-Nov-03 13:50 
GeneralRe: Function decorators Pin
Jörgen Sigvardsson20-Nov-03 14:14
Jörgen Sigvardsson20-Nov-03 14:14 
GeneralRe: Function decorators Pin
Terry O'Nolley20-Nov-03 16:14
Terry O'Nolley20-Nov-03 16:14 
GeneralRe: Function decorators Pin
Michael Dunn20-Nov-03 14:31
sitebuilderMichael Dunn20-Nov-03 14:31 
GeneralThanks to all of you Pin
Abin20-Nov-03 15:51
Abin20-Nov-03 15:51 
GeneralRe: Thanks to all of you Pin
bni77720-Nov-03 17:47
bni77720-Nov-03 17:47 
They do important in Win32. First and foremost __cdecl and __stdcall identify a calling convention of a function.

Calling convention includes 2 major things:
- argument passing order in the stack
- stack cleaning responsibility.

A code of a function and a code of a call to that function must agree and support the same calling convention. Because these codes can be located in differnt compilation units (files), the information about calling convention must be known by linker, alltogether with the function name. This information is passed to linker in the form of a decorated function name. Decoration schemes for __cdecl and __stdcall types of call are different.
That means that if we have, for example, __cdecl function defined in one file and declaration of this funcion as __stdcall in another file (say, by mistake), we will not be able to call this function from another file. The linker will complain about unresolved external symbol.

Note that C++ uses other than C decoration schemes both for __cdecl and __stdcall.


bni777
GeneralWord Automation Pin
Member 54540420-Nov-03 13:27
Member 54540420-Nov-03 13:27 
GeneralRe: Word Automation Pin
l a u r e n20-Nov-03 13:29
l a u r e n20-Nov-03 13:29 
Generalvisual layering Pin
halblonious20-Nov-03 13:01
halblonious20-Nov-03 13:01 
GeneralRe: visual layering Pin
l a u r e n20-Nov-03 13:28
l a u r e n20-Nov-03 13:28 
GeneralRe: visual layering Pin
halblonious20-Nov-03 21:01
halblonious20-Nov-03 21:01 
Generalto confinning users for del,rename & format Pin
Mahmoud Komeily20-Nov-03 10:30
Mahmoud Komeily20-Nov-03 10:30 
GeneralRe: to confinning users for del,rename & format Pin
John R. Shaw20-Nov-03 12:33
John R. Shaw20-Nov-03 12:33 
GeneralRe: to confinning users for del,rename & format Pin
Peter Molnar20-Nov-03 13:29
Peter Molnar20-Nov-03 13:29 
QuestionQuestion of scope? Pin
dave@home20-Nov-03 9:50
dave@home20-Nov-03 9:50 
AnswerRe: Question of scope? Pin
dave@home20-Nov-03 9:56
dave@home20-Nov-03 9:56 
Generalneed help with fread Pin
ns20-Nov-03 9:47
ns20-Nov-03 9:47 
Generalcheck for tab Pin
Vancouver20-Nov-03 9:53
Vancouver20-Nov-03 9:53 
GeneralRe: check for tab Pin
ns20-Nov-03 10:02
ns20-Nov-03 10:02 
GeneralRe: need help with fread Pin
Antti Keskinen20-Nov-03 10:44
Antti Keskinen20-Nov-03 10:44 
GeneralRe: need help with fread Pin
nss20-Nov-03 10:59
nss20-Nov-03 10:59 
GeneralRe: need help with fread Pin
John R. Shaw20-Nov-03 12:17
John R. Shaw20-Nov-03 12:17 
GeneralCreateDC failure in Citrix 2003 Pin
Fred Eckertson20-Nov-03 9:24
Fred Eckertson20-Nov-03 9:24 

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.