Totally Freeenergy wrote: > I was developing a Windows multi-document GUI application in VC++ version 6. > I found that my CAppView class needed to be derived from CScrollView and not > CView. VC++ is all wizard driven with so much inbuilt stuff. So it is not > straight forward to do these type changes. When I changed the derivation by a > simple substitution of all CView to CScrollView, the application compiles ok. > But crashes when I try to run it. So I thought I will pose this on a VC++ > forum. I searched for it on Yahoo groups. It came up with > 2000. Most of > them not moderated ! Anyway finally due a tip from another forum I got to > know about this group. > > Now for the solution... > I created a new class which was derived from CScrollView. Then I copy/paste > all the ID-stuff that the wizard had generated in the .h unit of the class > that needed to be modified. Now it works like a breeze. > > Now, how to get rid of this new class i created? I have to work this one out. > I dont think it can be done with a single click :( > > Regards > TFE
First off, VC6 is ancient. Time to upgrade. And, if you are just learning MFC, your time might be better spent learning wxWidgets or some other cross-platform GUI toolkit that doesn't tie you into a single platform (Windows in this case). That said, getting rid of a class is relatively easy: Delete the source and all references to it from all .cpp, .h, and project files. VC6 is rather obtuse about eliminating stuff added by the wizards but the later Visual Studio products are a bit nicer - and Microsoft has the best debugger in existence. In terms of the debugger, the difference between VC6 and VC++ 2008 is night and day. The newer IDE does take a bit to get used to if you are used to VC6 but well worth the learning curve. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
