I had the same problem upgrading to VB5. The class I was calling in
SetCallback (originally clsMapinfo) had some procedures that stopped it
being a valid public object according to the VB5 rules.
I had to make my VB project an ActiveX project.
I then created a new cls (clsCallback) which contained dummy procedures for
all the procedures called by the callback. These dummy procedures then call
the real procedures that I wanted to call in the original callback
class(clsMapinfo). Some sample code from my clsCallback:
'***********************************************************
Option Explicit
Public Sub WindowContentsChanged(ByVal lWindowId As Long)
gobjMapInfo.WindowContentsChanged lWindowId
End Sub
Public Sub SetStatusText(ByVal sStatus As String)
gobjMapInfo.SetStatusText sStatus
End Sub
...
'*************************************************************
-----Original Message-----
From: Hassan TAZI [mailto:[EMAIL PROTECTED]]
Sent: 11 May 1999 13:10
To: '[EMAIL PROTECTED]'
Subject: MI CallBack Pb with VB6, Help Help
Hi Mappers,
I used to develop easily integrated mapping applications with VB4. Last
month I upgrade to VB6 and I was surprised when I realize that the same
applications don't work under VB6. They all stopp at the following
instruction :
mapinfo.setcallback = new myCallbackClass
and the error message says that this propertie can't be set for a private
object.
Please, can anyone give me the solution.
Many thanks in advance.
Hassan Tazi
-------------------------
Business Expansion S.A.
4 avenue Bin Al Ouidane Agdal 10000 Rabat Morocco
Phone : + 212 7 67 43 31/32
Fax : +212 7 68 32 64
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [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]