Cameron,
A VB Project needs to be an ActiveX project when it supports incoming COM
calls. Your normal VB project using Integrated Mapping does not have to be
ActiveX because you are making COM calls to MapInfo. As soon as you use
callbacks, however, MapInfo is calling your application via COM. Thus, your
app must now be COM and ActiveX is just a now old but newer name for COM
which of course used to be OLE2.
Hope this helps,
Eric Blasenheim
Software Architect
MapInfo Corporation
Mail List:
[EMAIL PROTECTED]
From: on 01/28/2003 07:55 PM CST
To: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>
cc:
Subject: MI-L Integrated Mapping
I think I'm going crazy. I have an integrated app written in VB6 that I
have been using for years. The project was intially set up as a stand
alone exe, but somewhere along the way it got changed to an ActiveX exe.
I changed it back and now when I try to run it I get the error:
Runtime Error '98':
A property or method call cannot include a reference to a private
object, either as an object or as a return value
The part it crashes on is when I try to set the callback object. I have
this:
Set Statobject = New Mapin
mi.SetCallback Statobject
where Mapin is the Class that contains the callback routines. Does
anyone have any clue what is happening here? I have some other apps with
identical code that seems to work fine. I did notice that when I changed
back to a Standalone EXE it told me that the properties of the Class
were not valid for this type of application. Essentially, it took away
the property that allowed me to make the class public. However, in my
other stand alone apps, the class does not have this property either and
they compile and run just fine.
Baffled,
Cameron
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5188
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5255