I've been trying to compile an OLE app (vim-5.6) for some time now. I
got the new win32api v 0.3, which corrected some errors in oaidl.h
about VT_... things being undefined (I had to make oaidl.h include
wtypes.h) and some parse errors.
However, I still got parse errors such as 'syntax error before *' in things
such as IUnknown **apUnknown;.
Also, 'parse error before (' for
#define INTERFACE IDispatch
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
STDMETHOD(GetTypeInfoCount)(THIS_ UINT*) PURE;
STDMETHOD(GetTypeInfo)(THIS_ UINT,LCID,LPTYPEINFO*) PURE;
STDMETHOD(GetIDsOfNames)(THIS_ REFIID,LPOLESTR*,UINT,LCID,DISPID*) PURE;
STDMETHOD(Invoke)(THIS_ DISPID,REFIID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*,UINT*) PURE;
and errors like (in places like the last code segment):
oaidl.h:433: virtual outside class declaration
oaidl.h:433: function `ULONG Release()' is initialized like a variable
oaidl.h:434: virtual outside class declaration
oaidl.h:434: function `HRESULT GetTypeInfoCount(UINT *)' is
initialized like a variable
The file must be compiled with g++, it uses prototypes and I give g++ the
What else might I need to make it compile? I'm near desperation.
Any suggestions appreciated.