You can't share the numeric file handle across different processes. However,
they can each open the file concurrently - assuming they can both see the
same file. Passing the file name in UNC format (e.g. \\machine\share\file)
between your client and server is recommended here as drive letters are
machine specific.
Try this code for shared write access to a log file instead:
http://groups.google.ie/group/microsoft.public.vb.com/msg/e2e67b2bdfc0ae5b?hl=en&
Tony Proctor
24.10.2005 14:17, Tony Proctor schrieb:
> You can't share the numeric file handle across different processes. However,
> they can each open the file concurrently - assuming they can both see the
[quoted text clipped - 6 lines]
>
> Tony Proctor
Thanks a lot Tony,
Your example using CreateFile, WriteFile, SetFilePos etc, is quite amazing.
I thought i had read somewhere that FreeFile(1) results in file handle
that is generally accessible for other processes (in the case of inproc-server
this shouldn't even be necessary..., because it 'lives' in the same process)
I changed the code now so that all modules share the same
ErrorHandler-object, that treats the file handle as its private
var.

Signature
Gruesse, Christoph
Rio Riay Riayo - Gordon Sumner, 1979