Originally posted by: Farhan
Hi,
I can't seem to get this to compile....I am missing IDisplayHelp, apparently, but I can't figure out why. I tried removing these lines and get even more errors...
I am running Win2k sp2 and visual studio sp4. I also just downloaded the Platform SDK today (so its pretty recent). What should I include?
Thanks for your help,
- Farhan
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(171) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simpleitem.h(14) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simpleitem.h(39) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simpnode.h(8) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simpnode.h(119) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\msgviewnode1.h(13) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\msgviewnode1.h(77) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\activexnode.h(13) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simple.h(12) : see reference to class template instantiation 'CBaseNodeItem' being compiled
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simple.h(130) : error C2143: syntax error : missing ';' before '*'
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simple.h(130) : error C2501: 'IDisplayHelp' : missing storage-class or type specifiers
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simple.h(130) : error C2501: 'm_ipDisplayHelp' : missing storage-class or type specifiers
c:\temp\fshamsi\vs6projects\mmc\samples\mmcsnap2\mmcsnap\simple.h(141) : error C2504: 'ISnapinHelp2' : base class undefined
Originally posted by: Babar
Can any one tell me how to dynamically load an extension snapin or a dual
mode snapin as a child node of a stand alone (Extensible) Snapin? Also which
event will I use to load the extension snapins. I need this urgently please
help, I will be highly obliged.
Thankx in Advance
ReplyOriginally posted by: Rinat Sadikov
What do I need to do in order to prevent the MMC promting about saving changes in my *.msc file.
I declare four following macros in IComponentImpl and IComponentDataImpl co classes:
COM_INTERFACE_ENTRY_FUNC(IID_IPersist, 0,PersistNoInterface)
COM_INTERFACE_ENTRY_FUNC(IID_IPersistStream, 0, PersistNoInterface)
COM_INTERFACE_ENTRY_FUNC(IID_IPersistStorage, 0, PersistNoInterface)
COM_INTERFACE_ENTRY_FUNC(IID_IPersistStreamInit, 0, PersistNoInterface)
and the PersistNoInterface(...) method has the folowing implemation:
static HRESULT WINAPI PersistInterface (void* pv, REFIID riid, LPVOID* ppv, DWORD dw)
{
*ppv = NULL;
return S_FALSE;
}
but it seems to me that the MMC creates it's own IPersistant interfaces when snap-in don't support persisting.
Thanks in advance.
Originally posted by: Nasir Munir
How do you change a parent's icon based on a condition in a child node? Thanks, nasir
ReplyOriginally posted by: John Bugden
The tutorial looks great, and I'm probably missing the obvious, but I can't get the example to compile. IDisplayHelp appears to be defined nowhere in the project and is also absent from my VC++ files.
I have VC6SP5 on W2K.
StdAfx.cpp
d:\wip\mmc\mmcsnapintutorial\mmcsnap\basenode.h(157) : error C2061: syntax error : identifier 'IDisplayHelp'
d:\wip\mmc\mmcsnapintutorial\mmcsnap\basenode.h(171) : see reference to class template instantiation 'CBaseNodeItem<T>' being compiled
Any ideas?
James
ReplyOriginally posted by: Rinat Sadikov
Thank you,
And I take an opportunity to ask you question.
How can I create MMC standard “Properties” modal
(pay attention MODAL and not modal less) dialog
by using standard MMC interfaces?
Thank you in advance.
Reply
Originally posted by: Jeff Briggs
C:\Temp\mmcdemo\MMCSnap\MsgViewNode1.h(81) : error C2664: 'T2OLE' : cannot convert parameter 1 from 'char [29]' to 'unsigned short *'
MMCSnap.dll - 3 error(s), 0 warning(s)
Note: My environment is Win2k Server (sp1), Vstudio 6.0 (sp5) w/ latest Platform SDK
When I try to compile this project I get the following output:
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Temp\mmcdemo\MMCSnap\StdAfx.cpp(8) : error C2856: #pragma hdrstop cannot be inside an #if block
C:\Temp\mmcdemo\MMCSnap\StdAfx.cpp(9) : error C2856: #pragma hdrstop cannot be inside an #if block
Error executing cl.exe.