Page 1 of 1
variable memory
Posted: Fri Mar 10, 2006 8:17 pm
by clemerson
Hi,
He would like to do the following;
in a program test1.exe I declare a variable test :=. f.
in another program test2.exe I change the content of this variable of memory for test :=. t.
how do I make that in the fwhx, do I use PeekByte() ???
Clemerson
Posted: Fri Mar 10, 2006 9:13 pm
by Antonio Linares
Clemerson,
En 32 bits cada aplicación usa su propio espacio de memoria. No puedes modificar una variable de un programa desde otro.
Podrias exportar una función que accediese a la variable y llamar a esa función desde el otro programa, usando el protocolo de la máquina virtual.
Pero todo depende de lo que quieras hacer. Si explicas un poco más para que lo quieres, quizás podamos orientarte con una solución más simple.
Posted: Mon Mar 13, 2006 1:07 pm
by clemerson
Antonio,
It could be in a simpler way then, in a program test1.exe I would put a die in the memory in a fixed place and with other test2.exe I would diffuse in this place, he would give right also for me.
Clemerson
Posted: Mon Mar 13, 2006 1:54 pm
by Antonio Linares
Clemerson,
Please elaborate what do you need this for. Thanks,
Posted: Mon Mar 13, 2006 4:39 pm
by clemerson
It would be Example to understand what want to do, more it cannot be access to HD has to be for memory;
he has a program test1.exe that is turning in a loop;
test :=. t.
do while test
enddo
? end
he has a program test2.exe that only executes;
test :=. f.
test1.exe and concluded
Clemerson
Posted: Mon Mar 13, 2006 4:45 pm
by carlos vargas
Antonio se podrian utilizar socket,y que una app sea cliente y otra servidor?
solo una idea
![Smile :-)](./images/smilies/icon_smile.gif)
si no sirve
![Sad :-(](./images/smilies/icon_sad.gif)
pues ni modo-
salu2
carlos vargas
Posted: Tue Mar 14, 2006 1:19 pm
by R.F.
Se me ocurre:
test1.exe
test := .F.
Test2.exe
test := .T.
SAVE TO archivo ALL LIKE test
Test1.exe
RESTORE FROM archivo ADDITIVE
Posted: Tue Mar 14, 2006 9:02 pm
by clemerson
RF wrote:Se me ocurre:
test1.exe
test := .F.
Test2.exe
test := .T.
SAVE TO archivo ALL LIKE test
Test1.exe
RESTORE FROM archivo ADDITIVE
Rene,
it could not generate any file in HD, he has to be access in the memory.
Clemerson