int WINAPI or PASCAL?

This is a discussion on int WINAPI or PASCAL? within the Windows Programming forums, part of the Platform Specific Boards category; What's the difference between int PASCAL WinMain and int WINAPI WinMain ?...

  1. #1
    Registered User WebSnozz's Avatar
    Join Date
    Oct 2001
    Posts
    102

    Question int WINAPI or PASCAL?

    What's the difference between

    int PASCAL WinMain

    and

    int WINAPI WinMain

    ?
    WebSnozz-
    Cats have no butt cheeks.
    If one farted, then it would make a flute noise.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    They are just ways to send the parameters in order. Both, I believe, do the same. Not quite sure on that, but you can use them interchangably.

    --Garfield
    1978 Silver Anniversary Corvette

  3. #3
    31173 h4x0r gnu-ehacks's Avatar
    Join Date
    Nov 2001
    Posts
    556
    I've always been taught to use WINAPI. Although, I've seen PASCAL code, and it's the same thing.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  4. #4
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    >> I've always been taught to use WINAPI <<

    Me, too.

    --Garfield
    1978 Silver Anniversary Corvette

  5. #5
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    use WINAPI, PASCAL is obsolete. It's only allowed for backwards compatibilty

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    I think the PASCAL thing was a remnant of the Windows 3.11 days......form 95 its WINAPI

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-23-2007, 11:05 PM
  2. Debug Error Really Quick Question
    By GCNDoug in forum C Programming
    Replies: 1
    Last Post: 04-23-2007, 12:05 PM
  3. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM
  4. Quack! It doesn't work! >.<
    By *Michelle* in forum C++ Programming
    Replies: 8
    Last Post: 03-01-2003, 11:26 PM
  5. How do you search & sort an array?
    By sketchit in forum C Programming
    Replies: 30
    Last Post: 11-03-2001, 04:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21