Click to See Complete Forum and Search --> : VC5.0/VC6.0 and shellextention Problem


Juergen Wolf
May 21st, 1999, 02:24 AM
Hi,

I have a shell-extention dll which was written with VC5. Under Vc5 everything goes well. Now I had to upgrade to Vc6 with service pack 2. There seems to be a bug in Vc6 because I can't compile the old source code.


BEGIN_COM_MAP(CFileDragDrop)
COM_INTERFACE_ENTRY(IFileDragDrop)
COM_INTERFACE_ENTRY_IMPL(IShellExtInit)
COM_INTERFACE_ENTRY_IMPL(IContextMenu)
COM_INTERFACE_ENTRY_IMPL(IShellPropSheetExt)
COM_INTERFACE_ENTRY_IMPL(IPersistFile)
COM_INTERFACE_ENTRY_IMPL(IDropTarget)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()




During compilation the following errors occure for nearly all explorer interfaces.

error C2787: 'IShellExtInit' : no GUID has been associated with this object
error C2440: 'initializing' : cannot convert from 'unsigned long' to 'const struct _GUID *'
.
.
.

Does anyone knows a workaround??

Thanx
Jürgen

leolin@
May 21st, 1999, 04:28 AM
Hi,
Will you like to give a copy about your sample
code? i will like to check it out

Leo lin

seniorlin@hotmail.com