DOS Executable using MFC. Is this possible?

DOS Executable using MFC. Is this possible?

Post by Suresh Vaidyanath » Sun, 31 Jul 1994 02:58:43



I am trying to create a DOS executable that uses MFC. Is this possible?
I get errors while linking. The linker wants a library called
"mafcrd" and it doesn't exist. However there is a library called
"mafcwd" and when I link with that, I get a lot of undefined symbols.

Has anyone been successful in doing this? Any response will be
gleefully appreciated.

 
 
 

DOS Executable using MFC. Is this possible?

Post by Andrew Trevarr » Thu, 04 Aug 1994 20:13:41




>Subject: DOS Executable using MFC. Is this possible?
>Date: Fri, 29 Jul 1994 17:58:43 GMT
>I am trying to create a DOS executable that uses MFC. Is this possible?
>I get errors while linking. The linker wants a library called
>"mafcrd" and it doesn't exist. However there is a library called
>"mafcwd" and when I link with that, I get a lot of undefined symbols.
>Has anyone been successful in doing this? Any response will be
>gleefully appreciated.

According to the "Class Library Reference" you can use the MFC in DOS exe's.
After a bit of hunting around, it turns out that you have to build the library
yourself (I think it's actually mafxcrd, not mafcrd). How to do this is
described in the "Class Library User's Guide", Appendix B p303, but basically
you just need to do
                   nmake MODEL=M TARGET=R DEBUG=1
to make the debug version mafxcrd.lib, or
                   nmake MODEL=M TARGET=R DEBUG=0
for the release version mafxcr.lib.

Happy DOSsing,

Andrew.
---------------------------------------------------------
|                           |                           |

|                           | Software Engineer         |
|                           | JSB Computer Systems Ltd  |
|                           |                           |
---------------------------------------------------------