How to do what I already have done in Visual C++ 6.0

I have gone through a book called 'Teach yourself Visual C++ 6.0 in 21 days'. Now I have Visual Studio 2005 C++ the Express edition and I see that much has changed. I really can't do what i did in version 6.0 because to much has changed. For example in 6.0 you had a wizard ctrl W and you attached and set a variable to a control and then called UpdateData() to use the control. But how do I do that now Or let me ask how can I in the best way learn to use Visual Studio 2005 so I can do the same things I already have learnt. I have searched the help and online system and find it very hard to know which resources to read and in which order Neither do I find any good book about basic Visual Studio 2005


Answer this question

How to do what I already have done in Visual C++ 6.0

  • hunny

    ide nice to have not required. you learn new release fast too experiment!

    Kuphryn


  • RaghuramKr

    Never heard this before, but I like it.


    while(true) { this.Learn(); }


  • Quoyle

    It can't be unavailable, it's not seen.

    Where you expect it



  • Jonathan Allen

    Sergey i have bought a new book on vc++6.0 and iam starting to learn it.when i started i heard the news visual studio 2005 released.what can i do with that.if i tell that it is a old version to my parents my parents will scold me.i promised my parents that i would become a great software developer with this book.how can i .can you suggest me any ways how can i learn vc++ 2005  express edition.please

     

    by

    kaushik



  • James_Peters

    The book says to look in the "Message Maps" tab, which isn't there anymore.

    So, I'm using the "Class View" tab. I have my CHelloDlg class selected and I am looking for the WM_INITDIALOG message under the Messages button in the Properties pane. There are two "WM_INIT" messages, WM_INITMENU and WM_INITMENUPOPUP. Am I looking in the wrong place


  • Mike Russo

    I was just going through the same book and there is instruction to work with the Message WM_INITDIALOG and that message isn't even available under VS2005...


  • tec-goblin

    Someone once said "if you can't handle change, stay out of the software business." :)
  • JonPL

    Thanks...

  • CougarDave

    Kaushik,

    I think you still can make your promise, but this will be a little harder. Yes, VC6 is really old, VS2005 is in fact VC8. But, you still can learn programming using this book, the only trouble will be that you will need to find features in new IDE, because some things are changed.

    But there is good news for you - if you learn old stuff, then new stuff comes easier to you. I had experience in DOS, Windows, assembler, Pascal, FoxPro, PowerBuilder, Axapta, C, C++, C# and know many other libraries/technologies, but I have to learn every day. There is much more to learn and to use. My previous knowledge helps me to learn new things faster. It's not hard to me to find or learn something in new language, library or technology - thanks to my previous experience!

    So I think best for you is to learn from this book all basics, try to explore VCEE to find how to use it. Read MSDN & docs, post questions on this & other forums, practice. You can also download some starter kits or samples and explore them, understand why and how they was created.

    Best wishes :)


  • Venkata Veeraraghavan

    Hi!

    VS6 and VS2005 very different, you need to learn again. Don't miss about your already learned, this knowledge will help as good background. Programming is constant learning. I started in DOS, learn ASM, then I learn Pascal, then C, C++, C# and many other technologies and languages during my life. You must accept - all you know must be refreshed at least once in a year.

    I can't suggest good book on VS2005, but I think you need book with less screenshots (some books just like to waste space with them). If you understand basics, like classes, methods, events, delegates, interfaces, controls... - you will find easier to learn next things.


  • BrentNewbury

    I asked this question about how you get to OnInitDialog() and got this answer. I would put a link if I knew how, but instead I have just copied Ted's answer.

    Ted. wrote:

    Go to the class view tab in the solution explorer and find your dialog class and then right click and choose Properties. The handler for the WM_INITDIALOG message is obtained through the Properties pane of your CDialog derived class under the 'Overrides' (the diamond shaped toolbar button second from the right in the Properties window) where it appears as 'OnInitDialog' and from which dropdown list of actions you can select '<Add> OnInitDialog' and after you add it, you can choose <Delete> OnInitDialog' and '<Edit Code>'.

    One of the annoying things about VC 2002 to 2005 compared to VC 6 is that you cannot access this Overrides screen when you are in the resource editor editing the dialog box. If you choose properties while in the dialog box you only get messages and events. When in the class view you get messages, events, and overrides. In VC 6.0 you simply could press CTRL+W while in the class or the dialog box resource and add a handler for WM_INITDIALOG. Another weird thing is that WM_INITDIALOG does not appear in the messages pane, only in the Overrides pane (very confusing for new users)


  • TerminalReality

    MFC have OnInitDialog() function, that is used instead of WM_INITIDIALOG. I think this is why you can't see it there.

  • Ali Chant

    I think MS did me a disservice with all of the changes because I not only have to relearn the IDE but I have to rewrite my old code to make it compile without warnings. It worked just fine int VS6 with only 3 warning that I never could figure out how to get rid of. Now I get 3752 warnings with 2005. An example is that in VS6 you write MessageBox("Hello", "Hi", MB_OK); but in 2005 you have to write MessageBox(_T("Hello"), _T("Hi"), MB_OK);

    I think they should have put an option to make it accept VS6 source without change for existing code.

    Ken


  • How to do what I already have done in Visual C++ 6.0