wstring 赋值总是报错?
最近用到一个开源控件,http://www.codeproject.com/Articles/14075/High-speed-Charting-Control,之前用的一直是好好的,没什么问题,可现在用到里面的字符串时,总是报错
比如pLeftBottomAxis->GetLabel()->SetText(_T("时间");
CChartFont bottomFont;
bottomFont.SetFont(_T("宋体"), 120, false, true, false); 只要用到里面的TChartString类型,就报错0x000005错误,定位到里面的代码,m_Font = newFont; 其实就是TChartString赋值,为什么总是报错。内存哪里越界了?
因为工程已经写了一大半,时间紧,没时间重写Curve
比如pLeftBottomAxis->GetLabel()->SetText(_T("时间");
CChartFont bottomFont;
bottomFont.SetFont(_T("宋体"), 120, false, true, false); 只要用到里面的TChartString类型,就报错0x000005错误,定位到里面的代码,m_Font = newFont; 其实就是TChartString赋值,为什么总是报错。内存哪里越界了?
void CChartAxisLabel::SetFont(const CChartFont& newFont)
{
m_Font = newFont;
if (m_pParentCtrl)
m_pParentCtrl->RefreshCtrl();
}
bool _Grow(size_type _Newsize,
bool _Trim = false)
{ // ensure buffer is big enough, trim to size if _Trim is true
if (max_size() < _Newsize)
_Xlen(); // result too long
if (this->_Myres < _Newsize)
_Copy(_Newsize, this->_Mysize); // reallocate to grow
else if (_Trim && _Newsize < this->_BUF_SIZE)
_Tidy(true, // copy and deallocate if trimming to small string
_Newsize < this->_Mysize ? _Newsize : this->_Mysize);
else if (_Newsize == 0)
_Eos(0); // new size is zero, just null terminate
return (0 < _Newsize); // return true only if more work to do
}因为工程已经写了一大半,时间紧,没时间重写Curve
...全文
相关推荐
C++创建并打开私有文件夹
这是一个C++调用命令行工具,创建和打开一个私人文件夹的win32小程序。
URL.zip_url_url decode_url linux_url 解码
做URL编解码实用,C++程序,支持win32和linux。
熊数据集集2983张VOC+YOLO格式.zip
数据集格式:VOC格式+YOLO格式 压缩包内含:3个文件夹,分别存储图片、xml、txt文件 JPEGImages文件夹中jpg图片总计:2983 Annotations文件夹中xml文件总计:2983 labels文件夹中txt文件总计:2983 标签种类数:1 标签名称:["bear"] 每个标签的框数(注意yolo格式类别顺序不和这个对应,而以labels文件夹classes.txt为准): bear 框数 = 3021 总框数:3021 图片清晰度(分辨率:像素):清晰 图片是否增强:否 标签形状:矩形框,用于目标检测识别 重要说明:暂无 特别声明:本数据集不对训练的模型或者权重文件精度作任何保证,数据集只提供准确且合理标注
vue+springboot_基于Java语言的茶叶销售商城电商系统_176brjo7毕业设计源码数据库.zip
vue+springboot_基于Java语言的茶叶销售商城电商系统_176brjo7毕业设计源码数据库.zip
43一个强到且很实用的Linux网络管理工具.docx
43一个强到且很实用的Linux网络管理工具


