Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a Foxpo object to VB
Message
 
 
To
28/02/1998 21:20:24
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00081910
Message ID:
00081985
Views:
17
Jay,

I don't do VB *bg*, but I'm working on a project right now where I'm calling a VFP server object from VC++. As far as I can tell you can't pass object references from one program to another and expect them to understand what to do with it. In VC++ I do the equivalent to CreateObject(), and believe me it ain't near as easy as it is in VFP!, and then the VC++ just issues calls to the VFP public methods. When I need to signal to the VC++ app that something needs to be attended to I am using RegisterWindowMessage() and PostMessage() to put a windows message into it's event loop, the VC++ code sees the message and in response calls another of the VFP server methods. I don't know if you have access to the windows message queue in VB like you do in VC++, we don't have access to it in VFP.

>What I'm trying to do is create a call back scenario. Right now, I have an ActiveX EXE that is written in VB. VFP instantiates it, and then I need to pass an object reference to another object in VFP so that the ActiveX EXE can call some methods.
>
>Is this possible?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform