Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

STL and MFC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rasika WIJAYARATNE - 05 Jul 2005 01:14 GMT
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.
Carl Daniel [VC++ MVP] - 05 Jul 2005 01:44 GMT
> 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
Rasika WIJAYARATNE - 05 Jul 2005 04:29 GMT
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.

> > I am new to VCPP and was wondering about the unmanaged part of it:
> >
[quoted text clipped - 22 lines]
>
> -cd
Carl Daniel [VC++ MVP] - 05 Jul 2005 05:40 GMT
> 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
Rasika WIJAYARATNE - 05 Jul 2005 05:55 GMT
Thank you, things are much clearer now.

Rasika.

> > Hello
> >
[quoted text clipped - 8 lines]
>
> -cd
KevinLee - 05 Jul 2005 06:57 GMT
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.

"Rasika WIJAYARATNE" <RasikaWIJAYARATNE@discussions.microsoft.com> дÈëÏûÏ¢ÐÂÎÅ:BA93F3D3-9D99-4F6E-9684-89F6CB7821A7@microsoft.com...
> Thank you, things are much clearer now.
>
[quoted text clipped - 14 lines]
>>
>> -cd
Rasika WIJAYARATNE - 05 Jul 2005 07:26 GMT
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.

> I think that STL has nothing to do with MFC.
> Mostly we use some containers and arithmetic in STL, however,we can also use
[quoted text clipped - 20 lines]
> >>
> >> -cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.