Re: linux to windows porting help
- From: "Rob Thorpe" <robert.thorpe@xxxxxxxxxxxx>
- Date: 19 Jun 2006 05:44:14 -0700
vamsi wrote:
Hi,
Thanks all for the valuable suggestions.
Presently i am working on win32 console applications. My primary task
is to port all the IPC communication through Pipes, Message queues, and
shared memory from linux to windows.
Though i was able to do it successfully for Pipes and Shared memory, i
could not find a proper win32 API to implement Message queue
communication between two different process(one process is created from
other using CreateProcess, and these two processes must talk with each
other using MQ).
I found the following functions so far, which didnt help,
1. PostThreadMessage - for Message queue between process and its
thread.
2. SendMessage, PostMessage - uses the destination window handle as an
argument. but since i am working on win32 console application ... I
donn have any windows handle so unable to use these functions...
Are there any win32 API functions, where we can send messages to Queue
of a process using queue id like msgsnd() in linux???
Console applications in MS Windows have the ability to access all
Windows objects including hwnds, dcs, windows, dialog boxes etc. There
is really very little difference between a console app and a windowed
app except that the latter doesn't have a console. Note that an app
can only post messages to other apps on the same "desktop".
Ask the question on comp.os.ms-windows.programmer.win32 and someone
will probably tell you exactly which calls to use for your application.
If you already have a working Windows program I see no reason to
migrate it to .NET, it doesn't solve any problems.
.
- Follow-Ups:
- Re: linux to windows porting help
- From: Duane Arnold
- Re: linux to windows porting help
- References:
- linux to windows porting help
- From: vamsi
- Re: linux to windows porting help
- From: Friedrich Dominicus
- Re: linux to windows porting help
- From: vamsi
- linux to windows porting help
- Prev by Date: Re: What languages are mostly written in themselves?
- Next by Date: Re: Free Ruby eBook
- Previous by thread: Re: linux to windows porting help
- Next by thread: Re: linux to windows porting help
- Index(es):
Relevant Pages
|