MFC in console application?
Posted on 1998-07-03
What parts of MFC (if any) can be used in an application
without a CWinApp-derived class (no message pump)?
This is a list of things I've been using:
* CFile, CSocketFile
* the Internet services (CInternetSession)
* simple value types (CString, CTime, ...)
* Windows sockets (CAsyncSocket/CSocket)
* different synchronisation objects (CEvent, CMutex, ...)
Am I right to assume that these will work correctly
in, for example, a simple console application provided I
pull in the correct header files and link with MFC?
If not, why? For 200 points I expect more than a Yes/No
answer. :-) (A nice URL or a chapter in any of the more
famous MFC books is also accepted.)
If yes, what other MFC classes works correctly in an
environment without CWinApp/message pump?