LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with "CreateProcess"

Hello everybody,
I want to use the "WindowsMessages" to let two applications communicate with
each other.

So one application starts the other with "CreateProcess" and "OpenProcess".
After that, the first application posts an "UserMessage" to the second, and
the second reacts on this Message.

If someone knows anything about this theme I could explain more exactly...
Or I could sent the sourceCode.

Thanks for any help,
CHRISTIAN ZIPPER
0 Kudos
Message 1 of 3
(3,705 Views)
The book "Advanced Windows Programming" by a guy named Ritchie has the info you need.

You could try using a named pipe or a mailslot instead of the message functionality.

Shared memory is possible, but usually considered less preferable to other IPC mechanisms.

You could look in the Win32 SDK provided with CVI under "Interprocess communication" usually abbreviated as "IPC". It describes the above plus file mapping, COM, mailslots, remote proceedure calls (RPC), sockets (I've had good luck with this - and CVI supports it too), Dynamic Data Exchange (DDE) etc. etc.

I suspect you'll find one of these easier to use than the messaging. Good luck.
0 Kudos
Message 2 of 3
(3,705 Views)
Sorry, the book is "Advanced Windows" by Jeff Richter.

Two guys named Beveridge and Weiner have written a more readable book covering multi-processing and multi-threading in Win32.
0 Kudos
Message 3 of 3
(3,705 Views)