Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32_ProcessStartup
Message
From
26/11/2002 05:38:11
 
 
To
22/11/2002 18:17:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00724194
Message ID:
00726862
Views:
19
>Roman,
>If I understand you correctly (correct me if I'm wrong)
>
>>It's work fine, is-it possible to share with the child process the parent object environment and to "BINDS" some event of the parent object ?
>>
>
>to bind event you could try use CreateEvent and SetEvent in the parent process and then OpenEvent in the child process. I think www.news2news.com has the example for this
>

There's a full implementation of the Windows Event object in ClsEvent, available in the Downloads section here on UT. Be aware that events are synchronization objects and not data transfer objects; you need to provide a means to either expose the heap of one process to another or to perform some sort of IPC to transfer data.

The clipboard is probably the simplest IPC mechanism to use, but it isn't exclusive or name-able; the same clipboard is shared amongst all processes, so that someone running Word who copies a block of text will stomp on whatever was previously there. Windows messages, named pipes and memory-mapped file I/O are all available IPC mechanisms that can be controlled closely and perform very well; Windows messages submit message packets to a Window or thread message queue, named pipes are two-way asynchronous links between two processes that can be used to queue up streams of data, and memory-mapped file I/O creates a shared memory block of upto 64K in each process that has the memory-mapped file open; what's written in one process' block of the file is readable (and writable) from another process addressing the same 64K block of the mapped file.
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