我收到链接器错误:错误LNK2020:未解析的令牌(060001A9)getthumbnailimage [英] I am getting linker error as : error LNK2020: unresolved token (060001A9) getthumbnailimage

查看:356
本文介绍了我收到链接器错误:错误LNK2020:未解析的令牌(060001A9)getthumbnailimage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Drawing GetThumbnailImage为我的工具提示控件创建一个图像缩略图图像作为背景图像。我还包含了与我的文件相关的多个.h文件。



我尝试了什么:



我试过了

  public 
Image ^ GetThumbnailImage(
int thumbWidth,
int thumbHeight,
Image :: GetThumbnailImageAbort ^ callback,
IntPtr callbackData);

Image :: GetThumbnailImageAbort ^ callback = gcnew Image :: GetThumbnailImageAbort(ThumbnailCallback);
位图^ myBitmap = gcnew 位图( image.jpg的);
System :: Drawing :: Image ^ pThumbnail =
myBitmap-> GetThumbnailImage( 50 50 ,回调, IntPtr :: Zero);
e-> Graphics-> DrawImage(pThumbnail, 96 96 );

解决方案

您必须在代码中实现annonced ThumbnailCallback 功能。

< pre lang =c ++> Image :: GetThumbnailImageAbort ^ callback = gcnew Image :: GetThumbnailImageAbort(ThumbnailCallback); // 你需要实现这个功能!!!



其他了解详情。这些函数必须返回一个bool。 False意味着不中止。


I am creating an image Thumbnail Image for my tooltip control as background image using Drawing GetThumbnailImage.Also i have included multiple .h files related to my file.

What I have tried:

I have tried

public:
	Image^ GetThumbnailImage(
	int thumbWidth,
	int thumbHeight,
	Image::GetThumbnailImageAbort^ callback,
	IntPtr callbackData);

Image::GetThumbnailImageAbort^ callback =  gcnew Image::GetThumbnailImageAbort(ThumbnailCallback);
Bitmap^ myBitmap = gcnew Bitmap("image.jpg");
System::Drawing::Image^ pThumbnail =
 myBitmap->GetThumbnailImage(50,50,callback,IntPtr::Zero);
e->Graphics->DrawImage(pThumbnail,96,96);

解决方案

You must implement the annonced ThumbnailCallback function in your code.

Image::GetThumbnailImageAbort^ callback =  gcnew Image::GetThumbnailImageAbort(ThumbnailCallback);//you need to implement the function!!!


Look here for the details. The functions must return a bool. False means not to abort.


这篇关于我收到链接器错误:错误LNK2020:未解析的令牌(060001A9)getthumbnailimage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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