Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCompiler - Error Pin
.::RockNix::.23-Jan-01 21:56
.::RockNix::.23-Jan-01 21:56 
GeneralRe: Compiler - Error Pin
Michael Dunn24-Jan-01 6:50
sitebuilderMichael Dunn24-Jan-01 6:50 
GeneralRe: Compiler - Error Pin
AlexMarbus24-Jan-01 7:06
AlexMarbus24-Jan-01 7:06 
QuestionDHTML article?? Pin
Amit Dey23-Jan-01 20:51
Amit Dey23-Jan-01 20:51 
Generalfree e-books about VISUAL C++ Pin
23-Jan-01 20:37
suss23-Jan-01 20:37 
GeneralRe: free e-books about VISUAL C++ Pin
Ahmad23-Jan-01 20:40
Ahmad23-Jan-01 20:40 
Generalquestio about winmain Pin
Ahmad23-Jan-01 20:34
Ahmad23-Jan-01 20:34 
GeneralRe: questio about winmain Pin
Ghazi H. Wadi24-Jan-01 7:35
Ghazi H. Wadi24-Jan-01 7:35 
hi,
PASCAL is used in all exported function declarations,
indicating to the compiler that Pascal rather than C ordering is used for all
arguments (values) pushed onto the stack.
While C commonly uses inverted order, placing the least-significant bytes first on the stack
, Windows uses Pascal ordering that, like Unix, places the most-significant bytes first.
There is another small but crucial difference.
Exported functions are functions that will be called from outside the class or
in the case of a DLL
from other applications outside the unit (library).
In a Windows application where subroutines are called from Windows itself or where a
member function in one class is called from outside the class, even if both belong to the same application,
the Pascal calling order is necessary.
On the other hand, all internal function declarations (functions and subprocedures
called directly from other procedures within the application)
will expect arguments to appear in standard C order and should not be declared using the PASCAL specification.
As far as how argument lists are declared in the procedure definitions, it makes absolutely no difference whether
the Pascal or C calling conventions are used.
These conventions affect only how the arguments are handled internally
that is, on the stack
and do not in any way affect how the programmer constructs the argument lists.


However
APIENTRY will end up defined as WINAPI when you include windows.h
in version 6 , WINDOWS.H now supports the WINAPI macro, which translates to the appropriate calling convention for the target. Use WINAPI where you previously used PASCAL or __far __pascal.

for the actual definitions see windef.h -- Basic Windows Type Definitions


cheers


GeneralNeed more help on the file listing Pin
23-Jan-01 13:28
suss23-Jan-01 13:28 
GeneralRe: Need more help on the file listing Pin
Michael Dunn23-Jan-01 16:42
sitebuilderMichael Dunn23-Jan-01 16:42 
GeneralRe: Need more help on the file listing Pin
24-Jan-01 7:12
suss24-Jan-01 7:12 
GeneralRe: Need more help on the file listing Pin
Michael Dunn24-Jan-01 16:00
sitebuilderMichael Dunn24-Jan-01 16:00 
GeneralEin Dialog drei Listboxes Pin
23-Jan-01 10:20
suss23-Jan-01 10:20 
GeneralRe: Ein Dialog drei Listboxes Pin
Christian Graus23-Jan-01 10:39
protectorChristian Graus23-Jan-01 10:39 
GeneralRe: Ein Dialog drei Listboxes Pin
Matt.W.23-Jan-01 19:40
Matt.W.23-Jan-01 19:40 
GeneralRe: Ein Dialog drei Listboxes Pin
MrLonely23-Jan-01 12:07
MrLonely23-Jan-01 12:07 
GeneralRe: Ein Dialog drei Listboxes Pin
Christian Graus23-Jan-01 13:28
protectorChristian Graus23-Jan-01 13:28 
GeneralRe: Ein Dialog drei Listboxes Pin
MrLonely24-Jan-01 6:59
MrLonely24-Jan-01 6:59 
GeneralFocus Changing With Multiple Top Level Pin
23-Jan-01 10:18
suss23-Jan-01 10:18 
QuestionHow modify contextmenu of IE? Pin
Tom K23-Jan-01 6:13
Tom K23-Jan-01 6:13 
GeneralWindows Media Encoder/Format SDKs Pin
Roger23-Jan-01 2:54
Roger23-Jan-01 2:54 
GeneralWindows Media Encoder/Format SDKs Pin
Roger23-Jan-01 2:53
Roger23-Jan-01 2:53 
QuestionHow to draw a bitmap (more than once) without flicker Pin
23-Jan-01 1:50
suss23-Jan-01 1:50 
AnswerRe: How to draw a bitmap (more than once) without flicker Pin
Chris Losinger23-Jan-01 7:18
professionalChris Losinger23-Jan-01 7:18 
AnswerRe: How to draw a bitmap (more than once) without flicker Pin
Christian Graus23-Jan-01 10:53
protectorChristian Graus23-Jan-01 10:53 

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.