Hi
I want to use CString in a console application. What header file shall I use?
Thanks
Fero
Printable View
Hi
I want to use CString in a console application. What header file shall I use?
Thanks
Fero
file find in your mfc include directory for "class cstring". and you can find the exact include....
or you could just hit f1 on the cstring object and see that the constructor tells you to include "afx.h"
Why? Use std::string and you don't need MFC.Quote:
Originally Posted by fero45
afxtempl.h, but seriously consider using the standard C++ classes and its containers for console apps, unless there is something in MFC that is absolutely unavailable or difficult to implement otherwise.Quote:
What header file shall I use?
Regards,
Paul McKenzie
Besides that I agree with Paul...the following FAQ should help...