摘要: 今天写程序的时候用到GDI+,不过编译不通过。出现的错误为:1>------ Build started: Project: Label, Configuration: Debug Win32 ------1>Compiling...1>stdafx.cpp1>c:/program files/microsoft sdks/windows/v6.0a/include/gdiplusimaging.h(74) : error C4430: missing type specifier - int assumed. Note: C++ does not support de 阅读全文
posted @ 2012-04-16 18:35 likebeta 阅读(2318) 评论(0) 推荐(0) 编辑
摘要: 问题:有时候用ifstream或ofstream打开带有中文路径的文件会失败。例如: ofstream outFile("f:\\新建文件夹\\fuck.xml",ios_base::trunc | ios_base::out | ios_base::binary); outFile<<"<xml></xml>"; outFile.close();解决方法1:使用wofstream wofstream outFile(_T("f:\\新建文件夹\\fuck.xml"),ios_base::trunc 阅读全文
posted @ 2012-04-16 18:06 likebeta 阅读(1105) 评论(0) 推荐(0) 编辑