MS Visual C++ 6

This is a discussion on MS Visual C++ 6 within the C++ Programming forums, part of the General Programming Boards category; Hi Guys, I've got an old project and porting it to VS2010 has wasted much of my time and is ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    224

    Cool MS Visual C++ 6

    Hi Guys,

    I've got an old project and porting it to VS2010 has wasted much of my time and is proving to be a huge task.

    Especially, since I just want to tweak the app code a little.

    So, I thought it would save me a lot of time and effort if I just used Visual C++ 6, what the software was developed on originally. However, I can't seem to find anywhere to download it from or even anywhere to buy it from!!

    Can anyone help??

    Thanks.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    224
    Thanks Salem... however, I'm in the UK and don't want pay excessive amounts and wait a long time just for sending a CD :-/

    p,s, I don't get why would downloading it would be illegal?

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by strokebow View Post
    Thanks Salem... however, I'm in the UK and don't want pay excessive amounts and wait a long time just for sending a CD :-/

    p,s, I don't get why would downloading it would be illegal?
    Because you would be obtaining software you don't have a legal license for. Even if abandonware was legal, I don't think this is in that category.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    224
    Ok, Thanks tab stop.

    Seems as if I'm a little bit stuck then...

    Unless anyone knows a fool proof method of porting a Dialog based MFC app from VC++6 -> VS2010 ??????

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    214
    I assume you tried opening the v6 project in vs2010 and was asked to convert? What kind of errors do you get when you try and compile?

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    Or you could try the same thing on ebay.co.uk

    Visual C++ 6.0 Deluxe Learning Edition (Microsoft Pr... | eBay UK

    OK, so it's not a standard/pro version, but I'm sure they do appear from time to time.
    It really depends on how much you want to pay, how long you want to wait.

    I mean, how much time have you already invested in getting to where you are now?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    You don't have to try and port it all the way to VS2010. You could first of all get VS2005 Express and try porting it to that. You might find that slightly less changes are required.
    Oh wait I'm not sure if that comes with MFC.

    How large is this project, i.e how many lines of source code?
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  9. #9
    Registered User
    Join Date
    May 2009
    Posts
    2,778
    Most, maybe all, MSVC express versions do NOT come with MFC support.

    Tim S.
    Last edited by stahta01; 05-25-2011 at 09:13 AM.

  10. #10
    Registered User
    Join Date
    Nov 2006
    Posts
    224
    Thanks for replying.

    Salem... unfortunately, the learning package does not contain the software. Only CD's with some project files on.

    iMalc, Thanks for the suggestion. I will try this. The code length is in the 1000's of lines.

    DaveH, I've been down that road before... Whilst I managed to get it to compile it kept crashing during run time. When running in debug mode, ic ould by pass some errors but others were inexplicable to me.... which led me to think... why don't I just use VC 6... which is proving to be even harder than previous :-)

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by strokebow View Post
    Thanks for replying.

    Salem... unfortunately, the learning package does not contain the software. Only CD's with some project files on.

    iMalc, Thanks for the suggestion. I will try this. The code length is in the 1000's of lines.

    DaveH, I've been down that road before... Whilst I managed to get it to compile it kept crashing during run time. When running in debug mode, ic ould by pass some errors but others were inexplicable to me.... which led me to think... why don't I just use VC 6... which is proving to be even harder than previous :-)
    I don't know how much help this might be, but when you download the Windows SDK they include a free version of the the VC++ compiler. The compiler itself is not crippled but I'm not exactly sure how complete the libraries are. The SDK itself includes a complete set of Windows includes and libs (obviously up to date for Win7)... the Code::Blocks IDE will auto-detect this and, I believe, it can import MSVS projects...

  12. #12
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    612
    None of those things come with MFC though. The only avenues to get it are to scalp it from a Professional trial version of VS, a standard version of an older product, or the WDK. The WDK is probably the best bet since the version I have (7600) has the headers and libs from VC6 and VC7.

    Most, maybe all MSVC express versions do come with MFC support.
    That's antithetical.
    Last edited by adeyblue; 05-25-2011 at 08:38 AM.

  13. #13
    Registered User
    Join Date
    Nov 2006
    Posts
    224
    I took up the idea of using VS 2005 Express. As someone correctly mentioned this edition does not come with MFC Support.

    So, I've been trying to include 'MFC Support' in to the directory courtesy of the VS2010 profesh edition I have installed.

    To be honest, I'm not really sure what I'm doing and I've just been trying to include those lib and include directories that VS 2010 has into VS 2005 Express. Not having much success. I can't find:

    $(FrameworkSDKDir)\include

    And I keep getting this error:

    c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxv_w32.h(25) : fatal error C1083: Cannot open include file: 'winsdkver.h': No such file or directory


    Any experts care to impart their wisdom and offer some much needed guidance please?

    Cheers

  14. #14
    Registered User
    Join Date
    Aug 2003
    Posts
    1,209
    To be honest with you, I am unsure if you would ever get the 2005 to compile correctly with 2010 headers/libraries, and even if it compiles it might not produce an exe file that works correctly. Visual studio 2010 compiler for instance includes partial support for C++0x, the new C++ standard, something that 2005 certanly does not have. And i know that the STL has been changed to take advantage of some of the features in this standard so who knows what else has changed. This is only one difference betwean the two that I can think of. I would strongly advice against doing anything like what you currently try to do.

  15. #15
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Quote Originally Posted by strokebow View Post
    iMalc, Thanks for the suggestion. I will try this. The code length is in the 1000's of lines.
    I take that to mean between 1000 and 10000 lines. This isn't too bad really. I've worked on a project where some source files had twice that alone.
    I'd expect to perhaps have to correct problems with maybe 1 in 20 lines. That's most likely less than 500 fixes, and a great deal of them would be the same problem and hence same fix. With the right knowledge it could likely take all of up to about 4 hours to port to the latest version. Perhaps you're just stuck on a few little things that we could help you on.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual C++ and Visual Studio 2010
    By 03jh01 in forum C++ Programming
    Replies: 5
    Last Post: 10-03-2010, 05:03 AM
  2. Visual C++ 6.0 Pro vs Visual C++ 6.0 Enterprise
    By Joelito in forum Tech Board
    Replies: 5
    Last Post: 01-23-2007, 07:00 PM
  3. Visual Basic vs Visual C++
    By moemen ahmed in forum C++ Programming
    Replies: 6
    Last Post: 07-02-2002, 09:44 AM
  4. Replies: 1
    Last Post: 04-20-2002, 07:49 AM
  5. Moving from Visual Basic to Visual C++
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-10-2002, 10:57 PM

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