From: <dan...@ya...> - 2003-07-24 21:09:24
|
--- Sam Steingold <sd...@gn...> wrote: > the following piece of code works with mingw gcc and with msvc, but not > with g++, where it gives the following errors: > > w32shell.c: In function `BOOL resolve_shell_shortcut(const CHAR*, CHAR*)': > w32shell.c:51: could not convert `&CLSID_ShellLink' to `const CLSID&' > /usr/include/w32api/objbase.h:121: in passing argument 1 of `HRESULT > CoCreateInstance(const CLSID&, IUnknown*, long unsigned int, const IID&, > void**)' > w32shell.c:54: `struct IShellLinkA' has no member named `lpVtbl' > w32shell.c:60: `struct IPersistFile' has no member named `lpVtbl' > w32shell.c:63: `struct IShellLinkA' has no member named `lpVtbl' > w32shell.c:70: `struct IShellLinkA' has no member named `lpVtbl' > w32shell.c:75: `struct IPersistFile' has no member named `lpVtbl' > w32shell.c:78: `struct IShellLinkA' has no member named `lpVtbl' > Add -DCINTERFACE to command line. Danny http://personals.yahoo.com.au - Yahoo! Personals - New people, new possibilities! Try Yahoo! Personals, FREE for a limited period! |