Using MFC with a Console Application
-
Hi All, I've been splitting one of my MFC apps into two parts recently (Service & Visual). I've written the Service as a NT Console type application but wanted to use such things as CStrings & also the COleDispatch object. To do this I've included afxwin.h, afxext.h, and afxdisp.h. My question is: is there any reason I shouldn't be doing this or should I be looking at using something such as the CNTService class on this site? (Hopefully there is no reason as otherwise I'll have to rewrite my code :omg: ) Richard.
-
Hi All, I've been splitting one of my MFC apps into two parts recently (Service & Visual). I've written the Service as a NT Console type application but wanted to use such things as CStrings & also the COleDispatch object. To do this I've included afxwin.h, afxext.h, and afxdisp.h. My question is: is there any reason I shouldn't be doing this or should I be looking at using something such as the CNTService class on this site? (Hopefully there is no reason as otherwise I'll have to rewrite my code :omg: ) Richard.
If you are using Visual C++ 6.0, you can create a console application that supports MFC. I would create a test application and see the differences between yours and the new. Hope this helps.
-
If you are using Visual C++ 6.0, you can create a console application that supports MFC. I would create a test application and see the differences between yours and the new. Hope this helps.
Thanks Jonathan - have created many a console app and never noticed that option! :) Richard.