STL and MFC

G

Guest

I am new to VCPP and was wondering about the unmanaged part of it:

1. Does MFC include all the functions/functionality of the STL so it can be
used standalone?

2. Is the MFC mainly used for coding windows GUI functionality?

3. What sort of apps can the STL be used to code and does it support windows
GUI programming?

4. How does an unmanaged app use both the MFC and STL togeather if at all?

Rasika.
 
C

Carl Daniel [VC++ MVP]

Rasika said:
I am new to VCPP and was wondering about the unmanaged part of it:

1. Does MFC include all the functions/functionality of the STL so it
can be used standalone?

No, Yes.

Or more elaborately - MFC includes facilities that overlap with the STL in
many places, and you certainly can use MFC without using STL. And
vice-versa.

2. Is the MFC mainly used for coding windows GUI functionality?
Yes.

3. What sort of apps can the STL be used to code and does it support
windows GUI programming?

STL neither supports nor hinders GUI programming.
4. How does an unmanaged app use both the MFC and STL togeather if at
all?

Just do it - they don't clash with one another.

-cd
 
G

Guest

Hello

Thank you for the answers to my questions.

Also what sort of pure STL apps are currently out there? Ones I can think of
are games, console apps and device drivers and such.

Rasika.
 
C

Carl Daniel [VC++ MVP]

Rasika said:
Hello

Thank you for the answers to my questions.

Also what sort of pure STL apps are currently out there? Ones I can
think of are games, console apps and device drivers and such.

What makes an app a pure STL app? There certainly are applications of every
description that use the STL, independent of whether they also use MFC, ATL,
WTL, Qt or any other GUI/Framework/??? library.

-cd
 
G

Guest

Thank you, things are much clearer now.

Rasika.

Carl Daniel said:
What makes an app a pure STL app? There certainly are applications of every
description that use the STL, independent of whether they also use MFC, ATL,
WTL, Qt or any other GUI/Framework/??? library.

-cd
 
K

KevinLee

I think that STL has nothing to do with MFC.
Mostly we use some containers and arithmetic in STL, however,we can also use
those containers provided by MFC.
STL is a system independent library, but MFC is designed for Windows System.
 
G

Guest

Oh I see, when creating a multi-platform C++ apps I guess you would use STL
throughtout for the business and other common logic and ensure there is
enough separation between it and platform specific code like UI and DB access
code.

Rasika.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top