dann kommt diese Userlib sehr gelegen.
Mit Ihr kann man Speicher zwischen verschiedenen Processen tauschen
Die Library ist frei für die Benutzung in privaten oder kommerziellen Applikationen (Spielen)
Download hier
Habt spass mit diesem Geschenk von mir,
S.Rings im März 2005
Englisches Readfile:
--------------ReadmeFile, 1.th march 2005-------------------
Description: Userlib for Purebasic, tested version 3.93
Purpose: Share Blocks of Memory between different Processes (EXE's) and Threads (DLL's)
Copyright: 2004-2005 by Siegfried Rings
License: Free of use in any commercial or private application
Sourcecode: Available at xtra costs ,or just offer me something
---------------------------------------------------------------
2 Commands are available, Normaly only 1 is needed.
The most important command is to allocate the global memory,
do this with the AllocateMemoryGlobal-Command:
Usage:
You define a Block of memory wuth this Command:
MemoryAddress.l =AllocateMemoryGlobal(Name.s,Size.l)
where
Name.s is a string with an unique Name for this Block
Size.l is the size to allocate in bytes.
MemoryAddress is the returnvalue from the function,
it is NULL if it fails, else it is a value address in Memory
Where you can Peek/Poke and CopyMemory .
The other Command (normaly not needed) is the FreeMemoryGlobal Command
Result=FreeMemoryGlobal(MemoryAddress.l)
---------------------------------------------------------------------
How to use the example:
To Test this library, you have to start 2 instances of the example file.
in the example file there were allocate 5 Blocks of shared memory.
You can edit the String (first mark a entry in the Listgadget),
that should been share with the Set command.
Too easy to describe.
----------------------------------------------------------------------
Why i wrote this lib ?
Yes, i have written several services (Native NT_services) in Purebasic (A userlib is also ready for this)
and i have to control and share Datas from a control-panel or Icontray Programm with them .
One way was using a file, but using Memory was a way faster then.
Have fun, Siegfried Rings, 1.3.2005