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

Reply via email to