From: SourceForge.net <no...@so...> - 2004-11-26 19:11:44
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2870225 By: ir0nh34d I've now got the following in the header: // {00BB2763-6A77-11D0-A535-00C04FD7D062} #ifndef CLSID_AutoComplete DEFINE_GUID(CLSID_AutoComplete, 0x00bb2763, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62); #endif // {00bb2762-6a77-11d0-a535-00c04fd7d062} #ifndef IID_IAutoComplete DEFINE_GUID(IID_IAutoComplete, 0x00bb2762, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62); #endif // {03C036F1-A186-11D0-824A-00AA005B4383} #ifndef CLSID_ACListISF DEFINE_GUID(CLSID_ACListISF, 0x03c036f1, 0xa186, 0x11D0, 0x82, 0x4a, 0x00, 0xaa, 0x00, 0x5b, 0x43, 0x83); #endif // {77A130B0-94FD-11D0-A544-00C04FD7d062} #ifndef IID_IACList DEFINE_GUID(IID_IACList, 0x77a130b0, 0x94fd, 0x11D0, 0xa5, 0x44, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62); #endif #undef INTERFACE #define INTERFACE IAutoComplete DECLARE_INTERFACE_(IAutoComplete, IUnknown) { STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE; STDMETHOD_(ULONG,AddRef)(THIS) PURE; STDMETHOD_(ULONG,Release)(THIS) PURE; STDMETHOD(Init)(THIS_ HWND,IUnknown*,LPCOLESTR,LPCOLESTR) PURE; STDMETHOD(Enable)(THIS_ BOOL) PURE; }; And in the source file: IAutoComplete *pac; IUnknown *fileSource; if(FAILED(CoCreateInstance(CLSID_AutoComplete, NULL, CLSCTX_INPROC_SERVER, IID_IAutoComplete, (LPVOID*)&pac))) return false; if(FAILED(CoCreateInstance(CLSID_ACListISF, NULL, CLSCTX_INPROC_SERVER, IID_IACList, (LPVOID*)&fileSource))) return false; pac->Init(hText, fileSource, NULL, NULL); and I'm still getting an access violation. I'm initializing COM, so thats not it. According to GDB and Dr. MinGW, it's failing at the pac->Init(...); line. I'm at a loss, as from what I've been able to find on the web, both MSDN, the WINE source, etc., it should work. Anybody out there have any ideas? Thanx! ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286641 |