Re: CComPtr strange behaviour
Alexander Lamaison wrote:
However, I think my crashed were caused by calling methods and an
IExtractIconW and that one's fetch methods looks like this:
CComPtr<IExtractIconW> CHostFolder::extract_icon_w(
HWND /*hwnd*/, PCUITEMID_CHILD /*pidl*/)
{
TRACE("Request: IExtractIconW");
return this;
}
class ATL_NO_VTABLE CHostFolder : // Implements context_menu(),
// extract_icon_w() etc.
public IExtractIcon,
public swish::shell_folder::folder::CSwishFolder
{
public:
BEGIN_COM_MAP(CHostFolder)
COM_INTERFACE_ENTRY(IExtractIcon)
COM_INTERFACE_ENTRY_CHAIN(CSwishFolder)
END_COM_MAP()
Do you by any chance compile some files with Unicode on, and others off,
so that IExtractIcon is IExtractIconA in some translation units and
IExtractIconW in others? Check your project settings.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925