Is MFC Considered Managed or Unmanaged Code?

Posted on 2008-11-18
Last Modified: 2013-11-20
Win32 API - unsafe
MFC - don't know
.NET - safe

How to distinguish between manage and unmanaged code, since C++ can be managed too! Is it only if the language is written in .NET, it means safe? Otherwise, not safe?
Question by:F-J-K
    LVL 14

    Accepted Solution

    MFC is unmanaged code. It does not use the CLR - the Common Language Runtime.

    C++ can be managed code, if you use the Microsoft extensions (grammatical and syntactic extensions, keywords and attributes) to access the .NET Framework.

    Managed C++ is never "safe", because you can mix managed and unmanaged code in the same program.
    LVL 1

    Author Closing Comment



    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Writing a parser for java language 4 46
    WinWaitActive parameters 12 30
    Problem to save 10 100
    Line meaning 9 56
    When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

    730 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

    15 Experts available now in Live!

    Get 1:1 Help Now