What does "STDMETHODIMP" means in VC++??
Posted Date Unknown Mable 1 Comment

I had found such type function declaration(Commonly in ATL project) in C++, for example "STDMETHODIMP CSimpleShlExt::Initialize(/......../).

What does "STDMETHODIMP" means or what is the return type?. will somebody please help me.

See All Responses Below...
Message Rating
Posted on: 12/06/2012
I what it means form ObjBase.h 

//#define interface               struct FAR
#define interface struct
#define STDMETHOD(method)       virtual HRESULT STDMETHODCALLTYPE method
#define STDMETHOD_(type,method) virtual type STDMETHODCALLTYPE method

and see what STDMETHODCALLTYPE means from winnt.h 

#define STDMETHODCALLTYPE       __stdcall

so STDMETHOD is nothing but virtual HRESULT __stdcall

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

Academic Projects