Thread: int WINAPI or PASCAL?

  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
    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,263
    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,793
    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-02-2003, 12:26 AM
  5. How do you search & sort an array?
    By sketchit in forum C Programming
    Replies: 30
    Last Post: 11-03-2001, 05:26 PM