Originally posted by: John
I'm new to the whole property page thing so maybe there's an obvious answer to this question, How can I return data (e.g. a text box entry) to my snap-in's data object.
I'm using ATL 3.0, I've seen how microsoft do it in their property page sample mmc snapin but that's without using the atl and is quite complex.
As far as I can see the only places where I deal with property pages are in the CreatePropertyPages() and QueryPagesFor() methods. Can anybody help me?
Cheers,
John
Originally posted by: Chris
Hi Leon,
Great article! I enjoyed it very much. I am writing a snap-in for the Administration of my product. Still very new at this. My MMC needs to display if my NT Service is running and to change configurations of the service. How do I do this? What is the standard? Should I just use sockets?
Thanks,
Chris
ReplyOriginally posted by: Volodymyr Vinnitsky
It's good page for me and very good sample. thx. but what about .Net? when i try to do MMC object in .Net ATL project i can't find MMC Snapin Wizard. may be Microsoft was changed name for this wizard? i use .Net Beta 2
ReplyOriginally posted by: he
A stand-alone Snap-in ,two type Object items, A type Object open Propertypage through double click in result pane through SetDefaultVerb(MMC_VERB_PROPERTY) response to double click event,,B type no this setting,But that,B type Object can not response to double Click to expand Items in result pane.
thanks!!
Originally posted by: Andrey Kubyshev
I found small bug in ATL implementation in ATLSNAP in. AddMenuItems doesnt work correctly with NT 4. It added no menus at all. Probem was in differences of GetMenuItemInfo realization in w98, w2k and nt4.
Who has this problem too , drop me a email , I will explain how to fix it.
Another small thing I noticed with this application is that
in debug mode, when I quit console i get an error:
ATL: SnapInDataObjectImpl::GetDataHere
ATL: IComponentDataImpl::Destroy
First-chance exception in mmc.exe (MMCSNAP.DLL): 0xC0000005: Access Violation.
I looked into IComponentDataImpl::Destroy but exception happens after returning from it.
Reply
Originally posted by: Andrey Kubyshev
Nice article, but i dont know why author handles MMCN_DBLCLICK. This is quite confising becouse DefaultVerb doesn't work anymore.
I think this case should be commented out from BaseNodeItem::Notify
Reply
Originally posted by: Data
Anyone got drag and drop working with ATL?
I have:
* enabled standard verbs (Copy, Delete, Paste)
* written code to handle the MMCN_QUERY_PASTE event in the Destination.
* written code to handle the MMCN_PASTE event in the Destination.
* written code to handle the MMCN_CUTORMOVE event in the Source.
Code that handles MMCN_QUERY_PASTE and MMCN_PASTE works fine. I pass back a data object via the param parameter as per the MSDN documentation, the problem is that MMCN_CUTORMOVE never gets called in the source. This means that I don't get an opportunity to delete the dragged items.
Have tried debugging the code but execution disappears into the MMC dlls and I can't follow it! I've tried using MMC 1.1 and 1.2 and the latest version of the MMC header files (Platform SDK) but to no avail.
If anyone has any ideas drop me a line (even if its just to confirm that its not just me!) ...
Regards, Data
ReplyOriginally posted by: Zahid Naseer
Hi,
it is a really nice article, and it really helped me a lot while developing a snapin for my own needs.
Everything is working properly in my snapin, but I'm not able to show the desired icons for Result view items, the Scope pane item icons are being displayed properly. Everything seems fine but don't know why its not working. Can u tell me if there is anything special to do for displaying our own for Result pane items ?
Again thanks a lot for being such a gr8 help.
Zahid
Originally posted by: prasad
The description is very good.But the problem i faced is,after completion of downloading i run the application,but it is showing some errors.
What i expected is,after completion of downloading the program will execute perfectly without any errors.But it is showing some errors.If possible try to make the application as compiled successful.
comment:Making this type of samples and helping the less experienced programmers is very very nice.I am satisfied about your way of explanation.Wish you goodluck in future developments.
ReplyOriginally posted by: Dave
Anyone have any good resources for getting multiselect to work with ATL? This is one of the last hurdles before I can finish this project. Web pages, books, documents, anything?
How about wizard 97 type property pages?
Thanks
Reply