CString,要包括哪个库? [英] CString, which library to include ?

查看:471
本文介绍了CString,要包括哪个库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c ++的新手,并且我正在使用Embarcadero C ++ builder(我必须与此人一起工作).
我的代码中需要包含CSting,但是无论我包含什么库,它都无法解决.
错误:未定义符号"CString"
我应该包括哪个库?
在此先感谢...

Hi, I''m new to c++ and I''m working with Embarcadero C++ builder(I have to work with this one).
I need to have a CSting in my code but Whatever library I include, it doesn''t work out.
ERROR : Undefined symbol ''CString''
Which library should I include ????

Thanks in advance...

推荐答案

您的开发环境不支持Microsoft CString类.如果无法切换到MS Visual C ++,则必须重写代码以使用其他字符串类(例如std::string)或编写自己的CString类.
Your development environment doesn''t support the Microsoft CString class. If you can''t switch to MS Visual C++, then you must either rewrite the code to use a different string class (e.g. std::string) or write your own CString class.


添加#include< atlstr.h>进入您的代码即可.
add #include <atlstr.h> into your code, will work.


这篇关于CString,要包括哪个库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆