a bug with atldlgs.h?undeclared identifier IID_IShellLink when I use<initguid.h>
"xfpl" <xfpl-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
my project is OK before I #include < Initguid.h> in "stdafx.h", after I include initguid.h, I got the following compiler error:
1>d:\mywtl80\include\atldlgs.h(820) : error C2065: ¡°IID_IShellLink¡±: δÉùÃ÷µÄ±êʶ·û undeclared identifier
1> d:\mywtl80\include\atldlgs.h(737): ±àÒëÀà Ä£°å ³ÉÔ±º¯Êý¡°void WTL::CMultiFileDialogImpl<T>::OnSelChange(LPOFNOTIFY)¡±Ê±
1> with
1> [
1> T=WTL::CMultiFileDialog
1> ]
1> d:\mywtl80\include\atldlgs.h(866): ²Î¼û¶ÔÕýÔÚ±àÒëµÄÀà Ä£°å ʵÀý»¯¡°WTL::CMultiFileDialogImpl<T>¡±µÄÒýÓÃ
1> with
1> [
1> T=WTL::CMultiFileDialog
1> ]
following is the code,
// Bind to its IShellLink interface.
ATL::CComPtr<IShellLink> pLink;
if (SUCCEEDED(pFolder->BindToObject(pidl, NULL, IID_IShellLink, (void**)&pLink)))
but without <initguid.h>, nothing is wrong, I wonder if there is some #define #ifndef etc bug or error in Atldlgs.h???
any one else have ever got this problem?
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/