Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active Documents
Message
From
08/02/2002 06:16:45
 
 
To
08/02/2002 05:13:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00617176
Message ID:
00617194
Views:
19
>Hello group, any one know a way in VFP 7 to resolve this problem. I’m using Active documents technology and have the following problem after create the AD Container and launch my app in the run method as follow:
>
>ofrmPublish = NEWOBJECT("frmkdppublish.frmpublish","","",cStr)
>ofrmPublish.SHOW()
>READ EVENTS
>
>In this form I have a button that calls another app with the following code:
>
>oFrmProp = NEWOBJECT("frmkdpProperty.frmkdpProperty")
>= oFrmProp.Show(1)
>
>My problems are:
>
>1. how return a value from the oFrmProp to the oFrmPublish

A number of approaches can be used - while I avoid Active Document for my apps, it's possible to implement a native Windows IPC service between the server and client objects (the Named Pipe (NT family required on the server side) or mailslots would handle the work without going to a separate component, and both will operate identically with in-process, local and remote clients.) Using the API requires some detailed code involving VFP API calls and structures. Other approaches might use the MSMQ OLE Control services, or simply sticking the information in a file accessible to both systems.

>2. how can I know if oFrmProp was called from another app, this for test in it destroy method is necessary follow the clear events command or not.

ISHOSTED()
>
>Thanks for any help
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform