读书人

关于多页TIF文件处理的有关问题想问下

发布时间: 2012-02-17 17:50:41 作者: rapoo

关于多页TIF文件处理的问题想问下大家,请进来下,谢谢!
代码里关于多页TIF文件合并和分解的

下面有段代码有个疑问:


Image imgTif(L"G:\\GDItif\\Debug\\tif\\mutitif.tif"); //字符串前的“L”是什么意思?


CString tifPath = GetAppPath(),tifName;
tifPath = tifPath+"\\tif\\mutitif.tif";
Image imgTif(tifPath);
//这里编译就会报:error C2664: '__thiscall Gdiplus::Image::Gdiplus::Image(const unsigned short *,int)' : cannot convert parameter 1 from 'class CString' to 'const unsigned short *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

我想问的是怎样在变量前加上那个“L”啊,
Image imgTif(L(tifPath)); //这样加的话就会报:error C2065: 'L' : undeclared identifier
L为声明的错,我真不知道该怎么解决,就请教大家了……


在线等啊!

[解决办法]
Image执行后有会修改Status,你可以查一下开发文档,具体忘了

读书人网 >VC/MFC

热点推荐