From: SourceForge.net <no...@so...> - 2004-11-25 15:14:37
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2868620 By: infidel I looked up a random interface from shlobj.h (IShellFolder) and it seems that MSDN lists the methods in alphabetical order, not vtable order, which is unhelpful. Since IAutoComplete only has 2 real methods, I'm guessing that if you swap the order it will work. However, I don't know how the w32api headers were originally written to be in the correct order... Also, I don't know why you have the #ifndef IAutoComplete lines. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2004-11-25 16:34:42
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2868734 By: ir0nh34d I tried swapping the order and it didn't seem to help. Is there a way to query the vtable order? As for why I have the #ifndef IAutoComplete I added it in hope that one day it will be officially be supported by the w32api. I guess I really don't need it tough. 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 |
From: SourceForge.net <no...@so...> - 2004-11-26 00:57:06
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2869167 By: ir0nh34d To infidel's point, is there any one around that knows how the existing interfaces defined shlobj.h were figured out in the first place? I'd really like to get this figured out.... ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2004-11-26 01:45:48
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2869207 By: infidel So you tried it like this, right?: #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; }; #endif This link suggests that this order should work: http://www.winehq.org/hypermail/wine-patches/2004/04/0284.html ______________________________________________________________________ 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 |
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 |
From: SourceForge.net <no...@so...> - 2004-11-26 19:37:22
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2870247 By: ir0nh34d I've got it to work.... man do I feel stupid. It was due to the fact that I was calling init before pac was initialized completely. If anyone is interested, I can send what I've got (based on MSDN and WINE). According to MSDN is should be in a file called shldisp.h (which doesn't currently exist in the w32api). Let me know and I'll provide what I've got. Cheers! ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2004-11-29 15:24:10
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2872963 By: earnie Use https://sourceforge.net/tracker/?group_id=2435&atid=302435 to submit your patch. ______________________________________________________________________ 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 |
From: SourceForge.net <no...@so...> - 2004-12-06 23:50:28
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2884578 By: ir0nh34d Is there a particular format I should use for the patches? According to MSDN the IAutoComplete interface is defined in shldisp.h, which is not currently part of the win32api, so I'm assuming I should just include it as a file. As for the required CLSIDs I guess I should add them to shlobj.h and provide a diff? ______________________________________________________________________ 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 |