Thread: differances in msvc++5 and 6

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    98

    differances in msvc++5 and 6

    ok, i just learned something. to be a programmer, i am going to have to learn new code every year or so, that sucks.i am learning code out of a book that was written for msvc++5, but im using msvc++6, when i write the code straight out of the book, it will not compile for nothing, but i can take the source code that come on a cd with the book, open a workspace from the cd, and it tells me that it was written in old formate, do i wont to convert it. i click yes and when compiled runs fine.so basicaly i wasted my money even getting this book.so what i want to know is, what are the main differances in the two versions,(msvc++5 and msvc++6) and can i still use the book, with a little formatting of code? sometimes it asks me if i want to use old style formate?how can i do that?
    thanks,
    scott

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    to be a programmer, i am going to have to learn new code every year or so

    eh? who told you that?? coz that's bull........... how long do you think C++ has been around for???

    MSVC++ is a compiler, not a language. and alot of the time the common features that come with different versions of the compiler remain the same.... so if you have trouble writing code in C++ in V6 when you didn't in V5, then it's YOU, not the code.

    APIs come and go, some change and some remain the same... but even most APIs will remain the same for more than a year. take a look at the windows API.. code that you write for win95 should run quite happily under winXP (depending on the application that you write of course).

    what i'm saying is the point your making has nothing to do with the actual language itself.... so what do you mean by "new code"?? are you talking APIs?? are you talking compilers?? or are you talking about new languages??

    so basicaly i wasted my money even getting this boo
    wtf? you said that when you opened it, the program asked you to convert (which you did) and it worked fine.. things compiled fine and ran fine... so tell me how you wasted your money?? you're learning the language?? ultimately you shouldn't give a hoot about which compiler you have to use to write your code (especially while you're still learning!). Your logic of "it worked, so i've wasted money" makes no sense..

    can i still use the book
    Q: have you had any problems so far with it?
    A: no
    Q: does the example code compile?
    A: yes
    Q: is the language different in the book compared to how it is now?
    A: no

    Q: can you still use the book?
    A: damned right you can!

    remember you dont have to have the latest version of everything to do what you need to do. even then, most of the time the old stuff works just as well as (and in some cases better than) the new stuff.

    Thanks
    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    98

    differances in msvc++5 and 6

    woo, someone having a bad hair day?
    you didnt read the post clearly, and you most deffinately didnt answer any questions i asked

    Q: have i had any problems so far with it
    A: yes
    Q: does the example code compile?
    A: NO <----- like i said, you didnt read the post clearly
    Q: is the language different in the book compared to how it is now?
    A: yes
    Q: can i still use the book? <---- now pay attention here
    A: no, and yes

    now the question does the example code compile is where you got lost, yes i can open the workspace from the cd rom and when trying to put it in it askes me if i want to convert to the later formate.and i say yes, wala, its there. but let me ask you this? how am i learning anything if i copy and paste code? i thought actually writting the code i would learn more?

    ok the next one was, is the code differant? yes it is, i looked at both, and compared.when i WRITE the code out of the book, it puts it like this

    CWebBrowser m_target()
    CWebBrowser m_search()

    when i COPY it from cd, and it CONVERTS it, it looks like this

    CWebBrowser m_target;
    CWebBrowser m_search;

    yes, the first one gives me errors, but it dont give and update code to new formate option if i write it straight out. that is only one of 8 errors and one of many differant code i saw.

    can i still use the book? i probably can, but i am going to have to change my coding to the new style, WHICH WAS WHAT I WAS ASKING IN THE FIRST PLACE ON THIS POST, HOW CAN I DO THAT?i didnt say the book was bad or anything. matter of fact, i like the book very much,except that it is an older code ( version ) book

    now, if i write code out of the book, how can i update it, or how can i change my code to work?i dont see an update code option when i write it straight out of the book.so i have got to do it manualy. thats what i was asking.im not the kind of person who is gonna sit here and copy and paste code, i cant learn anything that way, IM NOT GOING TO DO IT THAT WAY.

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    98

    differances in msvc++5 and 6

    o yeah, the first thing i learned out of this book, was

    void main()

    hmm, how is this differant than int main()?

    differant code?i guess not

  5. #5
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    going right to the answer:

    check the docs included in MSDEV STUDIO.
    like other software, they tell you the updates.
    if not for some reason on your copy, MS has it online.

    note on MFC (Microsoft Foundation Classes):
    to me, API is more like C++ and C and MFC as Visual Basic (just an opinion). I know they use the same concepts just that you can have your own ways in customizing things using API. MFC has that pre-set stuff for you like VB offers. if you disagree, I apologize (just my opinion). anyway, MS likes to update the MFC after new releases of the versions. Comparing from version 4 to version 5 and now 6 and .NET, they changed a few on this stuff and user interface, obviously. So don't be surprised when MSDEV prompts you if you would like to update old projects from earlier versions or that a project is not valid or something.

    as for the rest, more xtra stuff! they should add more proggies in later versions. I definitely enjoyed their process viewer. if you don't lilke their 95 icon on that app, just strip it and add your own.

    gotta love those tools.
    and btw, you can keep old versions of MSDEV on your comp if you like.

    the online MSDN might have this info if you want to get into this more thorough.

    here's a sample file from the installation: (just extract the htm files from the zip. I didn't include all the files though.)
    think only with code.
    write only with source.

Popular pages Recent additions subscribe to a feed