"'David Hebblethwaite'" <[EMAIL PROTECTED]>;
Sent: Thursday, June 01, 2006 2:10 PM
Subject: RE: [MI-L] Callbacks with VB.NET2005
David
Sorry, an important omission in my earlier very sketchy post was the need
to
register for COM in the .NET assembly (and, I don'
IL PROTECTED]
Sent: Thursday, June 01, 2006 8:31 AM
To: [EMAIL PROTECTED]; mapinfo-l@lists.directionsmag.com
Subject: Re: [MI-L] Callbacks with VB.NET2005
IL Thomas,
Thanks very much for the information - it has enabled me to get everything
working except that, while I can extract a value from a
al sStr As String, ByVal sDel As String, _
ByVal iItem As Integer) As String
'sStr is string with items delimited by the sDel character
'Returns the Item found at Position iItem in the String sStr
End Function
End Class'clsHandleMI
END OF CODE SNIPPET
David
This time, it’s not MapInfo you
should be blaming; it is the syntax in .NET interop that you need to get on top
of. If you have the MSDN Library, have a look at Pinvoke and COM, and search
for Callbacks.
There is a very simple example called “Callback
Sample” (one place where