Upgrade MFC project to VS.Net 2003
-
Hello, I am just trying to upgrade a MFC project to VS.Net 2003. In this project I have an ActiveX Control for which I created a wrapper class using menu "Project | Add to project | Components and Controls" in VC6. After selecting the correct control this created or recreated the corresponding wrapper class to use the control in an MFC-Dialog. May be I am stupid, but I can't find the corresponding command in VS.Net 2003.:mad::confused::mad::confused: Any help to find this silly command is very much appreciated:) Rainer
-
Hello, I am just trying to upgrade a MFC project to VS.Net 2003. In this project I have an ActiveX Control for which I created a wrapper class using menu "Project | Add to project | Components and Controls" in VC6. After selecting the correct control this created or recreated the corresponding wrapper class to use the control in an MFC-Dialog. May be I am stupid, but I can't find the corresponding command in VS.Net 2003.:mad::confused::mad::confused: Any help to find this silly command is very much appreciated:) Rainer
Right-click the Toolbox, choose Add/Remove Items from the menu. In the Customize Toolbox dialog that appears, choose the COM Components tab. Check the box alongside any components or controls you want to reference in the project. Drop any desired controls onto your dialog resource. When you add a member variable for the control (right-click the control and choose Add Member Variable), VS.NET prompts you for the files for the wrapper class, along with the other information. Alternatively you can simply right-click the dialog resource and choose Insert ActiveX Control (which, for some reason, produces an entirely different dialog).
-
Right-click the Toolbox, choose Add/Remove Items from the menu. In the Customize Toolbox dialog that appears, choose the COM Components tab. Check the box alongside any components or controls you want to reference in the project. Drop any desired controls onto your dialog resource. When you add a member variable for the control (right-click the control and choose Add Member Variable), VS.NET prompts you for the files for the wrapper class, along with the other information. Alternatively you can simply right-click the dialog resource and choose Insert ActiveX Control (which, for some reason, produces an entirely different dialog).
Mike Dimmick wrote: When you add a member variable for the control (right-click the control and choose Add Member Variable), VS.NET prompts you for the files for the wrapper class, along with the other information. I noticed this context menu element, but did not expect to (re)create the wrapper class here. Thanks a lot for your help:) Rainer