Paulo,
> Can an applications access the memory space of other application?
The short answer is no.
However...
> How can I comunicate exe files?
>
> I trying to use FindWindow and SendMessage, but I am with
> problems to send a
> pchar parameter.
> I using a command line like this: SendMessage(FindWindow('TForm1',
> 'Form1'),PAM_Execute_This,Integer(pcharvariable),0);
You can use the WM_COPYDATA message. The reason you method does not work is
because you are passing a pointer to a memory location of one process to
another. This memory location is not valid / different for the second
process and you will either get garbage when you try to read from the
pointer, or most likely, you will get an EAccessViolation. With
WM_COPYDATA, Windows translates the pointer for you so that it is valid for
the second process to *READ* the memory. Don't try to write to it.
Hope this helps.
Dennis.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz