LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
3,846 次查看
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 项奖励
2 条消息(共 3 条)
3,846 次查看
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 项奖励
3 条消息(共 3 条)
3,846 次查看