• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 778
  • Last Modified:

Is MFC Considered Managed or Unmanaged Code?

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?
0
F-J-K
Asked:
F-J-K
1 Solution
 
waysideCommented:
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.
0
 
F-J-KAuthor Commented:
Clear....

Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now