Forum: Programmieren allgemein
by Desmulator,
1. Jun 2009
Okay.
class IBaseInterface: public IUnknown
{
virtual __stdcall void* GetHandle() = 0;
};
extern "C" {
...
IBaseInterface BaseCreateFileInfo(char* FileName, bool Extended);
Forum: Programmieren allgemein
by Desmulator,
1. Jun 2009
# 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
# ...