Thread: stdcall or cdecl

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    70

    stdcall or cdecl

    Hello

    I was wondering if there is a way to find out which calling convention is my function using

    stdcall or cdecl?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    You function is probably using cdecl unless you explicitly defined it as stdcall.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    70
    oh cdecl is the default then?

    stdcal stands for standard call, correct?

    what does cdecl mean?

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    A couple links:

    http://en.wikipedia.org/wiki/Calling_convention

    http://en.wikipedia.org/wiki/Name_mangling


    Quote Originally Posted by studentc
    oh cdecl is the default then?
    From the later of the above links:
    _cdecl is the default for C functions, if no calling convention is stated explicitly.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    70
    thanks for the link. i had visited the first one ,and it demystified decle and stdcal a bit.

    i was wondering why the name cdecl?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pushing arguments in stdcall convention
    By m37h0d in forum C++ Programming
    Replies: 2
    Last Post: 06-23-2009, 06:21 AM
  2. calling convention stdcalll and cdecl call
    By George2 in forum Windows Programming
    Replies: 1
    Last Post: 07-17-2008, 03:26 AM
  3. cdecl program for VC++?
    By zopiro in forum C++ Programming
    Replies: 1
    Last Post: 05-31-2007, 12:43 AM
  4. Help about CDECL
    By Antigloss in forum Windows Programming
    Replies: 1
    Last Post: 03-09-2006, 05:57 AM
  5. Please point out the obvious
    By deoren in forum Windows Programming
    Replies: 10
    Last Post: 03-15-2003, 03:59 PM