Re: Calling conventions for Win32 dll -- Sharing files

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi,

Sounds like you open the file on one computer and keep it opened while =
another program tries to read it. That's not supported in windows and =
dos.=20

Solution (in pseudo code):

open file
write data
close file
open file with other program
read file with other program
close file
start at begin.

only problem: reading and writing at the same time would not work.
A much better idea would be:

open temp file=20
write data to temp file
close temp file
copy temp file to other file

than parallel:

open temp file                          open other file with other program
write data to temp file                 read other file with other program
close temp file                         close other file with other program
copy temp file to other file

start at beginning.

-----Oorspronkelijk bericht-----
Van:    JesusC - Jes=FAs Consuegra=20
Verzonden:      dinsdag 23 juni 1998 18:22
Aan:    EUPHORIA at cwisserver1.mcs.muohio.edu
Onderwerp:      Calling conventions for Win32 dll -- Sharing files

Euphorians:
In the quest of improving the Thermometer device, I've been trying to
icrease the usefulness of the engine, by allowing to record the =
temperature
readingns into a file. Another PC on the security desk, some floors =
down,
could then monitor the temperature of the computer room.
That looks simple. But when I try to read that file from the other PC =
(the
file is being stored on a NT server) I get an error telling the file is
already open by another program....
Let's increase the complexity. I thought for a while to write a "simple"
winsock program to send the data over the network. But when reading the
Winsock API headers for the dll calls, I see "FAR PASCAL" in front of =
the c
procedure definitions. I recall something about "reverse order" or =
similar
when calling Pascal procedures from C.
Does anybody know:
a) How to share files in Euphoria along the network?
b) How to call Pascal procedures inside a .DLL?

Any help will be *very* welcome...

JesusC-frustrated-by-technology.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu