Welcome Guest Search | Active Topics | Members

Latebound overload resolution cannot be applied to AddImage because the accessing instance is an int Options
unrecognize
Posted: Tuesday, December 04, 2007 8:05:50 PM
Rank: Member
Groups: Member

Joined: 11/6/2007
Posts: 10
Points: 15
Hi, Anyone can help me on this problem?

I hv put this: listView.AddImage(thumbnail, _key) into
BitmapListItem Class
Public Sub EvaluateMethod(ByVal methodIndex As Integer) Implements Aurigma.GraphicsMill.WinControls.IQueueItem.EvaluateMethod
but I get this error:
Latebound overload resolution cannot be applied to AddImage because the accessing instance is an interface type

May I know what happen? Actually I have copy exactly same from
Alex Kon
Posted: Tuesday, December 04, 2007 9:47:52 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
Hello,

It seems that this is a new bug/feature of the Visual Studio 2005 VB.NET compiler (Latebound overload resolution...). Workaround described in the article works well in my test application.

I replaced this call:
Code:
listView.AddImage(thumbnail, _key)
with the following one:
Code:
listView.AddImage(CType(thumbnail, Aurigma.GraphicsMill.Bitmap), _key)
I hope it will works for you as well.

Best wishes, Alex.
unrecognize
Posted: Tuesday, December 04, 2007 10:21:44 PM
Rank: Member
Groups: Member

Joined: 11/6/2007
Posts: 10
Points: 15
Hi Alex,

Thanks , it works fine for me as well.
:)
Alex Kon
Posted: Wednesday, December 05, 2007 10:03:21 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
You are welcome ;)

Best wishes, Alex.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.