EDN Admin
Well-known member
Recently I switched from VC++6 to VC++2008. Many projects to convert, many errors to fix, many days to -- well -- spend. One day I recompiled and registered an old MFC ActiveX control. That went fine. I had a few projects that use that control, so I removed the old H/CPP wrapper files from one of them and imported the control using Project -> Add Class -> MFC Class From ActiveX Control. The wizard re-generated H/CPP files, containing wrapper class for the control. When I recompiled the project I got many errors saying dozens and dozens of Get/Set methods are not members of my control (wrapper). I looked into generated H file of the wrapper class and found out the compiler was right: there were no Get/Set methods for any of the properties contained in the control.
After a few tries and failures I decided to start from the scratch. I created a simple MFC ActiveX control containing only two properties -- Prop1 and Prop2 of type LONG -- and two empty methods -- Method1 and Method2. All checkboxes and radio buttons in wizards were left on their default values while doing that. I imported the control the same way as before into a newly created MFC application and got the same problem: wrapper class contained only Method1 and Method2, but no Get/Set methods for the properties Prop1 and Prop2.
What am I doing wrong?
View the full article
After a few tries and failures I decided to start from the scratch. I created a simple MFC ActiveX control containing only two properties -- Prop1 and Prop2 of type LONG -- and two empty methods -- Method1 and Method2. All checkboxes and radio buttons in wizards were left on their default values while doing that. I imported the control the same way as before into a newly created MFC application and got the same problem: wrapper class contained only Method1 and Method2, but no Get/Set methods for the properties Prop1 and Prop2.
What am I doing wrong?
View the full article