Page 1 of 1

variable memory

PostPosted: 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

PostPosted: 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.

PostPosted: 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

PostPosted: Mon Mar 13, 2006 1:54 pm
by Antonio Linares
Clemerson,

Please elaborate what do you need this for. Thanks,

PostPosted: 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

PostPosted: 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 :-) si no sirve :-( pues ni modo-


salu2
carlos vargas

PostPosted: 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

PostPosted: 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