jdl
jdl

Reputation: 6323

is .NET a framework like MFC or an API?

If it is a framework, than can I use both MFC and .NET combined in C++ or must I pick one or the other?

thx

Upvotes: 0

Views: 438

Answers (3)

svick
svick

Reputation: 244757

.Net is not just a framework, you can't use it from normal C++ like MFC or other C++ libraries. There is a special version of C++ called C++/CLI that can access both the .Net framework (and any .Net libraries) and also any normal C++ libraries. But C++/CLI is mostly for special purposes, like bridging between C++ library and C# application, it's usually not a good idea to use it as a general-purpose language.

So, is using .Net and MFC together possible? If you use C++/CLI, I think it is. Is it a good idea? No.

Upvotes: 4

gerky
gerky

Reputation: 6417

.NET is a framework.

You can check out this thread:

http://www.daniweb.com/software-development/cpp/threads/198090/mfc-vs.-.net

Upvotes: 2

pokrate
pokrate

Reputation: 3974

.net is runtime actually like JVM. And .net FCL is framework class library provided to make programming for windows and web easier. Earlier we used MFC, WIN32 API for windows programming, now .net FCL provides much easier to use classes for the same.

Upvotes: 2

Related Questions