Einzelnen Beitrag anzeigen

Benutzerbild von Desmulator
Desmulator

Registriert seit: 3. Mai 2007
Ort: Bonn
169 Beiträge
 
#5

Re: Delphi's Interfaces in C++

  Alt 1. Jun 2009, 10:22
Code:
# define STDMETHODCALLTYPE   __stdcall
#  define STDMETHOD(m)   virtual HRESULT STDMETHODCALLTYPE m
..
#  if defined(__GNUC__) && __GNUC__ < 3 && !defined(NOCOMATTRIBUTE)
#   define DECLARE_INTERFACE(i) interface __attribute__((com_interface)) i
#   define DECLARE_INTERFACE_(i,b) interface __attribute__((com_interface)) i : public b
#  else
#   define DECLARE_INTERFACE(i) interface i
#   define DECLARE_INTERFACE_(i,b) interface i : public b
#  endif
Das erhalte ich zumindest, wenn ich mit gedrückter Strg-Taste drauf klicke.
Lars
There are 10 kinds of people in the world:
those who get binary, and those who don’t.
  Mit Zitat antworten Zitat