Converting VS 2003 to 2005

This is a discussion on Converting VS 2003 to 2005 within the C++ Programming forums, part of the General Programming Boards category; Well, my transition from console to GUI is a bumpy road. I finished my first class which covered GUI programming ...

  1. #1
    Pupil
    Join Date
    Oct 2005
    Location
    Toledo
    Posts
    27

    Converting VS 2003 to 2005

    Well, my transition from console to GUI is a bumpy road. I finished my first class which covered GUI programming (slightly i.e. Sprites) – Intro to Game Programming.

    The Windows Programming in C++ runs, um…every 2 to 3 years lol.

    So I just bought a copy of Visual C++ .NET How To Program. The book was written for VS 2003. My school only provides/works with the latest IDEs so I’m stuck with VS 2005. That’s no big deal, but I am finding it very difficult to convert a VS 2003 solution to VS 2005; 90% of the programs in this book don’t compile lol.

    Here is the code for a simple client/server app (Client side attached) and the compile errors I receive.

    This code is straight from the book.


    Error 1 error C3364: 'System::Threading::ThreadStart' : invalid argument for delegate constructor; delegate target needs to be a pointer to a member function c:\documents and settings\owner\my documents\vc++ summer project\fig21_03-04\client\Form1.h 36
    Error 2 error C3867: 'Client::Form1::inputTextBox_KeyDown': function call missing argument list; use '&Client::Form1::inputTextBox_KeyDown' to create a pointer to member c:\documents and settings\owner\my documents\vc++ summer project\fig21_03-04\client\Form1.h 83
    Error 3 error C3350: 'System::Windows::Forms::KeyEventHandler' : a delegate constructor expects 2 argument(s) c:\documents and settings\owner\my documents\vc++ summer project\fig21_03-04\client\Form1.h 83
    Error 4 error C3867: 'Client::Form1::Form1_Closing': function call missing argument list; use '&Client::Form1::Form1_Closing' to create a pointer to member c:\documents and settings\owner\my documents\vc++ summer project\fig21_03-04\client\Form1.h 103
    Error 5 error C3350: 'System::ComponentModel::CancelEventHandler' : a delegate constructor expects 2 argument(s) c:\documents and settings\owner\my documents\vc++ summer project\fig21_03-04\client\Form1.h 103
    Attached Files Attached Files
    Last edited by chad101; 05-29-2007 at 01:56 AM.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Do a Google search!

    Here are some hits (I suggest looking at the first one on this list):


    [edit] Here I am assuming that it's just the project files that you need to convert. If the actual code doesn't compile in a clean project with VS 2005, then that's a whole other story . . . [/edit]
    Last edited by dwks; 05-29-2007 at 02:30 AM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MSVS 2003, 2005 debugger issues
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 01-19-2009, 07:41 PM
  2. stdin in Visual Studio 2005 vs. 2003
    By Trev614 in forum C Programming
    Replies: 5
    Last Post: 06-23-2008, 03:44 PM
  3. vc++ 2005 switch for compatibility with vc++ 2003
    By nocturna_gr in forum C++ Programming
    Replies: 1
    Last Post: 12-03-2007, 02:31 AM
  4. Converting from MSVC++ 6 to .NET 2003
    By spoon_ in forum Windows Programming
    Replies: 9
    Last Post: 03-15-2005, 08:06 PM
  5. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 07:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21