I am unable to develop a perfect full fledged activex control using MFC. Can any body help where I can get complete info on it.
Not what is provided by MSDN
Printable View
I am unable to develop a perfect full fledged activex control using MFC. Can any body help where I can get complete info on it.
Not what is provided by MSDN
You should get or borrow a copy of the Visual C++ Programmers Guide.
Chapter 8 or 9 shows gives you a short course in how to make and Active X control using MFC. Then next chapter deals with ATL.
If you are using VC++ and use the MFC ActiveX Control Wizard it should be too hard, much is done for you. You should also familiarize yourself with the Class Wizard (Under the view menu) and its Automation tab. There you will add all your Properties, Methods, Events, etc.
So well, it is impossible to create such control without MFC, isn't it?
You can use the ATL instead, which apparently is not MFC.
MFC ActiveX Controls are just easier and you need to make sure your user has your the MFC dlls or you have to staticly link them making your control bigger. (adds about 300 kb)
You can make ActiveX controls with ATL, but they are closer to COM objects I guess, but I am not sure.
ATL is a different framework from MFC.......I am only just starting to learn a little ATL and so far I have found it to be a total b*tch to learn! :DQuote:
Originally posted by blundstrom
You can use the ATL instead, which apparently is not MFC.
MFC ActiveX Controls are just easier and you need to make sure your user has your the MFC dlls or you have to staticly link them making your control bigger. (adds about 300 kb)
You can make ActiveX controls with ATL, but they are closer to COM objects I guess, but I am not sure.
It uses a lot of multiple inheritance and a real weird way of using templates......