Click here to Skip to main content
16,005,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage Problem Pin
Monty225-Dec-03 20:39
Monty225-Dec-03 20:39 
GeneralCSingleLock Pin
Anonymous25-Dec-03 17:10
Anonymous25-Dec-03 17:10 
GeneralRe: CSingleLock Pin
Michael Dunn25-Dec-03 19:15
sitebuilderMichael Dunn25-Dec-03 19:15 
GeneralRe: CSingleLock Pin
Anonymous25-Dec-03 20:30
Anonymous25-Dec-03 20:30 
Questiondifference between ATL, MFC, and .NET Common Class? Pin
torrentmoon25-Dec-03 14:45
torrentmoon25-Dec-03 14:45 
AnswerRe: difference between ATL, MFC, and .NET Common Class? Pin
peterchen25-Dec-03 23:38
peterchen25-Dec-03 23:38 
GeneralRe: difference between ATL, MFC, and .NET Common Class? Pin
torrentmoon25-Dec-03 23:55
torrentmoon25-Dec-03 23:55 
GeneralRe: difference between ATL, MFC, and .NET Common Class? Pin
Jörgen Sigvardsson26-Dec-03 6:10
Jörgen Sigvardsson26-Dec-03 6:10 
torrentmoon wrote:
1. you mentioned that ATL is lightweight whereas MFC is heavyweight. however the concepts here are still too abstract to me, could you give some vivd examples or comparasions to elabrate the difference between "light" and "heavy"?

Since ATL is built on using templates, there is no need for a big and quite bloated DLL/LIB to be linked in. Since templates aren't really "code" until instantiated, most of ATL will not be included in your application when compiled. Only the parts which you've instantiated is included. This "optimization" is only available during compilation, thus you can't peel away the unused parts in MFC since you link against it.

MFC also contains a massive amount of code including pretty much everything from file handling to active x controls. So there's a lot of bits to carry around - whether you like it or not!

ATL on the other hand basically just cover COM related things and windowing. It follows the UNIX principle: do only a few things; but do it well.

torrentmoon wrote:
2. ATL stands for Active Template Library, so does that means ATL is a collection of templates?

Yes, and no. There are C++ templates and there are functions. ATL uses C++ templates quite heavily to solve things quite elegantly (IMHO).


torrentmoon wrote:
3. You also mentioned MFC's power is fading, so who is its successor? the window form class provided by .NET?

Does anybody really know yet? Surely it'll be based on .NET, but I'm sure it'll look different than Windows Form as of today.


torrentmoon wrote:
4. I also come cross some other terms like STL and WTL, what are they?

STL = Standard Template Library - a container/algorithm library which is defined in the C++ standard. Most C++ compilers ship a version of it (either they ship a version based on the old version developed at HP or a version based on the newer developed at SGI).

WTL = Windows Template Library - an extension of the ATL windowing model. Looks like a reiteration of MFC at a first glance, but is VERY different under the hood. ATL/WTL has a cleaner design than MFC, IMHO. It produces very lean and mean code, and offers a great flexibility for customization. See the WTL section of Code Project, and don't forget to check out Michael Dunns guide to WTL.

--
Watcha' gonna do, when Hulkamania runs wild on you!?
GeneralMemory Leak When Invoke Web Service From VC++.net Using Autogen Proxy Class!! Pin
gpmn25-Dec-03 14:22
gpmn25-Dec-03 14:22 
GeneralRe: Memory Leak When Invoke Web Service From VC++.net Using Autogen Proxy Class!! Pin
gpmn25-Dec-03 14:27
gpmn25-Dec-03 14:27 
GeneralBest way to display a progressbar for file copying Pin
shultas25-Dec-03 13:04
shultas25-Dec-03 13:04 
GeneralRe: Best way to display a progressbar for file copying Pin
l a u r e n25-Dec-03 13:17
l a u r e n25-Dec-03 13:17 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 13:29
professionalPJ Arends25-Dec-03 13:29 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 14:04
shultas25-Dec-03 14:04 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 14:13
shultas25-Dec-03 14:13 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 14:36
professionalPJ Arends25-Dec-03 14:36 
GeneralRe: Best way to display a progressbar for file copying Pin
shultas25-Dec-03 15:34
shultas25-Dec-03 15:34 
GeneralRe: Best way to display a progressbar for file copying Pin
PJ Arends25-Dec-03 16:03
professionalPJ Arends25-Dec-03 16:03 
GeneralBest way to read a text file Pin
shultas25-Dec-03 11:44
shultas25-Dec-03 11:44 
GeneralRe: Best way to read a text file Pin
PJ Arends25-Dec-03 12:04
professionalPJ Arends25-Dec-03 12:04 
Generaluse CStdioFile class Pin
abudu25-Dec-03 20:54
abudu25-Dec-03 20:54 
GeneralProblem How to get All files from a Folder Pin
xxtra25-Dec-03 8:53
xxtra25-Dec-03 8:53 
GeneralRe: Problem How to get All files from a Folder Pin
PJ Arends25-Dec-03 9:14
professionalPJ Arends25-Dec-03 9:14 
GeneralRe: Problem How to get All files from a Folder Pin
(Steven Hicks)n+125-Dec-03 9:18
(Steven Hicks)n+125-Dec-03 9:18 
GeneralDll Functions Name & parameters Pin
Ghasrfakhri25-Dec-03 6:32
Ghasrfakhri25-Dec-03 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.