|
-
December 7th, 2004, 03:38 PM
#1
Header for CString
Hi
I want to use CString in a console application. What header file shall I use?
Thanks
Fero
-
December 7th, 2004, 04:04 PM
#2
Re: Header for CString
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"
-
December 7th, 2004, 04:06 PM
#3
Re: Header for CString
 Originally Posted by fero45
Hi
I want to use CString in a console application.
Why? Use std::string and you don't need MFC.
What header file shall I use?
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.
Regards,
Paul McKenzie
-
December 7th, 2004, 05:08 PM
#4
Re: Header for CString
Besides that I agree with Paul...the following FAQ should help...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|