Skip to main content
gamedev.net
🔒 Locked

WinMain

Started by rohde Jun 3, 2002 at 11:26 AM 1 replies 200+ views
Original Post
rohde
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.
"We confess our little faults to persuade people that we have no large ones." -Francois de La Rochefoucauld (1613 - 1680). | My blog
Fruny
Fruny
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]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Cyberdrek
Cyberdrek
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
[Cyberdrek | ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.