Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert MFC to ActiveX

Status
Not open for further replies.

goz

Programmer
May 7, 2001
2
SE
I'm trying to convert a large program written in MFC to an ActiveX component. The MFC-program uses the document / view -architecture with menus and toolbars.

I'm using VC++.

Is there any good and easy way to do this??

 
Create an ActiveX DLL project with MFC support, add MFC code to your project, and what to do forward deppends on what you want to do. Usualy, whare is declared dispatch interface, add to it inheritance from you MFC main class with main functions. John Fill
1c.bmp


ivfmd@mail.md
 
It's is possible activate The Document View Architecture in

ActiveX Dll or OCX
 
It's is possible activate The Document View Architecture in

ActiveX Dll or OCX!.

That cause VisualStudio 6.0 product support ATL3.0 inherit MFC(Microsoft Foundation Class) perpectly.
 
Here's where I'm a little confused. Could someone please explain these scenario's?

If you have a problem that calls for basic MFC Controls (edit boxes, buttons, etc) but it needs to be an ActiveX control then which route do you take:

1. Build the application (dialog based) and then embed it into an ActiveX control making it Web-able?

2. Just make the entire thing an ActiveX control and do all the MFC control stuff via the respective MFC Control Create() member function?

Also, how do you embed an entire application in an ActiveX control anyway? I've just heard it can be done!?

bitwise
 
There is a good sample on implementing the doc/view with ActiveX - check out MSDN article by Steve Zimmerman 1997 (April I believe) scribble sample.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top