C++ v6 Visual Studio and Visio Studio .NET compatibility

Posted on 2004-11-21
Last Modified: 2010-04-01
I have an application to program in C++.  The application documentation calls for v6 of Visual Studio.

Can I use the latest version of .NET Visual Studio?  ( )

Will there be any compatibility issues? I must use precompiled DLLs from the vendor.

Is there a v6 mode in .NET Visual Studio?

Any other issues to watch out for?

Thanks for the help.

Chuck W
Question by:watsocd
    LVL 30

    Accepted Solution

    >>The application documentation calls for v6 of Visual Studio.

    Yes, you can use .Net
    It's more compliant with the standard then VC++ 6.0

    >>Is there a v6 mode in .NET Visual Studio?

    >>Any other issues to watch out for?
    As long as your code is compliant with the C++ standards, you shouldn't have to worry about using .Net VS 6.0
    LVL 14

    Expert Comment

    VC 6.0 and VC.Net use different versions of the runtime libraries. Mixing these within the same program could lead to problems. For example, if the dll creates something using (vc 6.0) new and your program deletes it using ( delete, this willl probably cause a crash.

    I don't remember if the name mangling changed from vc 6.0 to, but if it did, and the dll's export mangled names, you won't be able to link.

    LVL 2

    Expert Comment

    The default settings vor VC 7 (.NET 2003) flag code that would be a problem using a 64 bit processor, typically assumptions that a pointer is the same length as an int. This generates a lot of warnings from certain kinds of code. While these warnings are meaningful, they don't stop your 32-bit code from working.

    You have to tell VC7 not to produce managed code, as this is the default.

    The problems dll compatibility problems mentioned by wayside are real, but they are only a potential problem, not one that occurs frequently or always. It's worth trying, but keep this problem in the back of your head if you get an intractible bug.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Article by: SunnyDark
    This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
    Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now