Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add MFC Support in MMC framework?

5 views
Skip to first unread message

rook1...@my-deja.com

unread,
Jan 23, 2001, 5:00:29 PM1/23/01
to
I am a newbie in MFC/MMC. I used the MMC
framework in MS SDK sample as the base to develop
snap-in. It works well. But now I need to add
lots of perpertypages and dialogs in the snapin.
It is painful to write the callback functions in
plaint win32. I am considering to use MFC in the
snapin, but I have no idea how can I add the MFC
support in my project without big modification of
my existing code. Helps are needed.


Sent via Deja.com
http://www.deja.com/

Hans-Dieter Dreier

unread,
Jan 24, 2001, 3:31:40 AM1/24/01
to
AFAIK it is better if you use ATL Propertypages, not MFC.
( Look at ATLSNAP.H (class CSnapInPropertyPageImpl<> and at the samples that
come with the SDK).
At least that's what we did, and it works OK.
No callback functions needed for the general case;
we're using BEGIN_MSG_MAP etc. macros instead.

For convenience, we also use a lot of MFC functions inside the control
classes, but not the MFC framework (creating the MFC objects temporarily,
using FromHandle () ).

--


Regards,

Hans-Dieter Dreier
(Hans-Diet...@materna.de)

<rook1...@my-deja.com> schrieb in im Newsbeitrag:
94kutn$kre$1...@nnrp1.deja.com...

rook1...@my-deja.com

unread,
Jan 24, 2001, 6:16:55 PM1/24/01
to
Thanks for the reply. Now my big problem is that I used the plaint
DllRegister, DllUnreguster and so on, and also declare the
CMyComponentData : public IComponentData (as in the SDK sample), not
the one with CComModule, nor ATL staff. In other word, I did not use
the ATL or MFC in the first place. Is that possible to use the
CSnapInPropertyPageImpl or temporarily create a MFC object? In face, I
tried to use CString before, but the compiler would not let me put the
my DllMain and MFC DLL together.

Thanks alot.

In article <94m3th$t43$1...@penthesilea.materna.de>,

0 new messages