Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何:在c++;windows窗体>; < >我想用Windows窗体中的C++来为我的工具提示控件创建缩略图。_C++_Winforms_Graphics - Fatal编程技术网

如何:在c++;windows窗体>; < >我想用Windows窗体中的C++来为我的工具提示控件创建缩略图。

如何:在c++;windows窗体>; < >我想用Windows窗体中的C++来为我的工具提示控件创建缩略图。,c++,winforms,graphics,C++,Winforms,Graphics,是的,研究仍然有错误 Image^ picture; picture->GetThumbnailImageAbort callback ; callback = gcnew picture->GetThumbnailImageAbort(ThumbnailCallback); picture("image.jpg"); Image^ pThumbnail = picture->GetThumbnailImage(50,50,callback,gcnew IntPt

是的,研究仍然有错误

Image^ picture;     
picture->GetThumbnailImageAbort callback ;
callback =  gcnew picture->GetThumbnailImageAbort(ThumbnailCallback);

picture("image.jpg");
Image^ pThumbnail = picture->GetThumbnailImage(50,50,callback,gcnew IntPtr());  
e->Graphics->DrawImage(pThumbnail,10,10,pThumbnail->GetWidth(),pThumbnail->GetHeight());
我得到以下错误- “->GetWidth”的左边必须指向class/struct/union/generic, “pThumbnail”:未声明的标识符, “回调”:未声明的标识符, “GetThumbnailImageAbort”:未声明的标识符

函数调用缺少参数列表;用于创建指向成员的指针
尽管我做了,并且正确地声明了一切

我正在尝试从下面的代码,但使用c++:

请给我一个密码。-嗯。。。您对此做过任何研究吗?是的,您做过研究并获得错误..图片->GetThumbnailImageAbort回调;callback=gcnew picture->GetThumbnailImageAbort(ThumbnailCallback);图片(“C://Users//Public//Pictures//nature.jpg”);Image^pThumbnail=picture->GetThumbnailImage(50,50,回调,gcnew IntPtr());e->Graphics->DrawImage(pThumbnail,10,10,pThumbnail->GetWidth(),pThumbnail->GetHeight());什么样的错误?编辑您的问题并插入相关错误消息。