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

Code:
#define INTERFACE IRichEditOle
DECLARE_INTERFACE_(IRichEditOle, IUnknown)
{
	STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
	STDMETHOD_(ULONG,AddRef)(THIS) PURE;
	STDMETHOD_(ULONG,Release)(THIS) PURE;
	STDMETHOD(GetClientSite)(THIS_ LPOLECLIENTSITE*) PURE;
	STDMETHOD_(LONG,GetObjectCount)(THIS) PURE;
	STDMETHOD_(LONG,GetLinkCount)(THIS) 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(InPlaceDeactivate)(THIS) PURE;
	STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE;
	STDMETHOD(GetClipboardData)(THIS_ CHARRANGE*,DWORD,LPDATAOBJECT*) PURE;
	STDMETHOD(ImportDataObject)(THIS_ LPDATAOBJECT,CLIPFORMAT,HGLOBAL) PURE;
};
typedef IRichEditOle *LPRICHEDITOLE;
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:

Code:
LPRICHEDITOLE lp_richedit;
SendMessage(rich_edit_handle,EM_GETOLEINTERFACE,0,(LPARAM)&lp_richedit)
At this point I should be able to call whatever method using:

Code:
lp_richedit->method(arguments);
//to realease the interface handle I should use Release(), so:
lp_richedit->Release();
But the compiler ends with the next error:
Code:
structure has no member named 'Release'
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?

I'm using DevCpp with MingW, and the code is C compiled as C.

Thank's in advance
Niara