Archived

This topic is now archived and is closed to further replies.

WinMain

This topic is 5674 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

YO...there''s something that I''be been wondering about. In my DX programs my winmain''s definition is as follows:
  
int PASCAL WinMain( HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow )
  
What does that PASCAL-thingie means? Cherioooooooooo ******************* A year spent in artificial intelligence is enough to make one believe in God.

Share this post


Link to post
Share on other sites
It's a calling convention. It means that the function arguments are passed from right to left on the stack and the called function does the stack cleanup.

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]


[edited by - Fruny on June 3, 2002 12:32:25 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by rohde
YO...there''s something that I''be been wondering about. In my DX programs my winmain''s definition is as follows:



    
int PASCAL WinMain( HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow )



What does that PASCAL-thingie means?

Cherioooooooooo
*******************



A year spent in artificial intelligence is enough to make one believe in God.

Although that keyword isn''t part of the standards anymore. It''s still valid but was replaced to avoid confusion...



"DaHjajmajQa''jajHeghmeH!"

Cyberdrek
danielc@iquebec.com
Founder
Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

Share this post


Link to post
Share on other sites