Hello, I'm not able to figure out how to call a method from IRichEditOle interface. I posted in C board instead of Windows board because I think that's a C synthax problem, but feel free to move it if necessary.
I'm totaly lost and confused, that's the case: the IRichEditOle interface is defined as follows
In some code samples I've found over the net, they say that's possible to access to every interface methods as it was a struct member. In that case I get a handle to the IRichEditOle of a richedit control with:
#define INTERFACE IRichEditOle
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
STDMETHOD(GetClientSite)(THIS_ LPOLECLIENTSITE*) PURE;
STDMETHOD(GetObject)(THIS_ LONG, REOBJECT*,DWORD) PURE;
STDMETHOD(InsertObject)(THIS_ REOBJECT*) PURE;
STDMETHOD(ConvertObject)(THIS_ LONG,REFCLSID,LPCSTR) PURE;
STDMETHOD(ActivateAs)(THIS_ REFCLSID,REFCLSID) PURE;
STDMETHOD(SetHostNames)(THIS_ LPCSTR,LPCSTR) PURE;
STDMETHOD(SetLinkAvailable)(THIS_ LONG,BOOL) PURE;
STDMETHOD(SetDvaspect)(THIS_ LONG,DWORD) PURE;
STDMETHOD(HandsOffStorage)(THIS_ LONG) PURE;
STDMETHOD(SaveCompleted)(THIS_ LONG,LPSTORAGE) PURE;
STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE;
STDMETHOD(GetClipboardData)(THIS_ CHARRANGE*,DWORD,LPDATAOBJECT*) PURE;
STDMETHOD(ImportDataObject)(THIS_ LPDATAOBJECT,CLIPFORMAT,HGLOBAL) PURE;
typedef IRichEditOle *LPRICHEDITOLE;
At this point I should be able to call whatever method using:
But the compiler ends with the next error:
//to realease the interface handle I should use Release(), so:
I have linked all the libraries for the header files used in it, but I suspect that the problem is in the call synthax. How should I do that?
structure has no member named 'Release'
I'm using DevCpp with MingW, and the code is C compiled as C.
Thank's in advance