I am trying to introduce a callback in an Access 97 application (using VBA)
with Integrated Mapping
I am never able to get the SetCallBack to work. The Access error code always
says: "Method SetCallBack of object IMapInfo failed'.
If the line with SetCallBack is removed, a MapInfo window appears and
everithing works as expected except for this callback stuff.
Any idea ?
Thanks for any help.
Hereby an extract of the code (simplified to a max):
For the form itself:
Private Sub Form_Load()
Set MyObj = CreateObject("MapInfo.Application")
MyObj.Visible = True
Set myObject = New MyClass
MyObj.SetCallBack myObject
MyObj.DO "Open Table ""States"" Interactive"
MyObj.DO "Map from States"
End Sub
For the MyClass class:
Public Sub SetStatusText(ByVal mytext As String)
MsgBox mytext
End Sub
For a declarations module:
Public MyObj As Object
Public myObject As New MyClass
Pierre Henrotay
Siemens Business Services
Major Projects
Tel.: +32 81 559 687
Fax: +32 81 559 658
Mail (office): [EMAIL PROTECTED]
Mail (home): [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]