variable memory

Post Reply
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

variable memory

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Clemerson,

Please elaborate what do you need this for. Thanks,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

Post 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
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Post 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
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post 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
Saludos
R.F.
User avatar
clemerson
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil
Contact:

Post 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
Post Reply