Steve

Its the type of project you are trying to set up - 

The MapInfo knowledge Base has info on how to sort it out (plus why it only
started happening with VB5) -

http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/5c41496d5951a49c852562b5004f
3a44/b0e7dfe655629bb685256476006dde6b?OpenDocument


Paul Crisp

BT Syntegra
Innovation Place Delta Bank Road Newcastle NE11 9DJ
Tel 0191 461 4522 Fax 0191 460 1987


-----Original Message-----
From: Steve McArthur [mailto:[EMAIL PROTECTED]
Sent: 12 March 2004 15:35
To: [EMAIL PROTECTED]
Subject: MI-L VB callbacks


Hi list
I'm sure this must have been asked before, but I can't seem to get
callbacks to work with VB6. I've tried to run the example that comes
with mapbasic and get the same error message:"A property or method call
cannot include a reference to a private object..."

This is the offending piece of code (in particular the last line) from
the code example that ships with mb. I'm using 7.5 if that makes any
difference.


Set mapinfo = CreateObject("MapInfo.Application")
    mapinfo.do "Set Application WIndow " & MainForm.hWnd
    'Instantiate OLE Automation callback object
    Set myCallback = New MICallback
    mapinfo.SetCallback myCallback


Thanks
Steve



London Borough of Hackney may exercise its right to intercept any
communication on its networks - for more information see
http://www.hackney.gov.uk/council/data/email_disclaimer.htm



********************************************************************

This email may contain information which is privileged or confidential. If you are not 
the intended recipient of this email, please notify the sender immediately and delete 
it without reading, copying, storing, forwarding or disclosing its contents to any 
other person
Thank you

Check us out at http://www.btsyntegra.com

********************************************************************

Reply via email to