the difference _cdecl from _thiscall...?

L

LinusLee

I know _cdecl is often used by the static function that has variable args num...
In _cdecl func... after returnning function, pop args...
In _stdcall func... before retunning function, pop args...

but.. how is _thiscall?

I found it that member function's convention is _thiscall in Visual C++.
Is ANSI C++ same?

My english is poor... sorry...
thanks... :)
 
M

Mike Wahler

LinusLee said:
I know _cdecl is often used by the static function that has variable args num...
In _cdecl func... after returnning function, pop args...
In _stdcall func... before retunning function, pop args...

but.. how is _thiscall?

I found it that member function's convention is _thiscall in Visual C++.
Is ANSI C++ same?

No. Standard C++ has no such keywords as '_cdecl',
'_stdcall', or '_thiscall'. Those are implementation
(MSVC++) -specific keywords. See your Visual C++
documentation and/or visit www.msdn.microsoft.com
to learn their meanings, and how and when to use them.
Note that their use will render your code nonstandard
and nonportable.

-Mike
 
P

Prateek R Karandikar

I know _cdecl is often used by the static function that has variable args num...
In _cdecl func... after returnning function, pop args...
In _stdcall func... before retunning function, pop args...

but.. how is _thiscall?

I found it that member function's convention is _thiscall in Visual C++.
Is ANSI C++ same?

My english is poor... sorry...
thanks... :)

There are no such things as _cdecl, _stdcall, or _thiscall is Standard C++.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To iterate is human, to recurse divine.
-L. Peter Deutsch
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top