FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour variable memory
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
variable memory
Posted: Fri Mar 10, 2006 08:17 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
variable memory
Posted: Fri Mar 10, 2006 09:13 PM

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
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
variable memory
Posted: Mon Mar 13, 2006 01:07 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
variable memory
Posted: Mon Mar 13, 2006 01:54 PM

Clemerson,

Please elaborate what do you need this for. Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
variable memory
Posted: Mon Mar 13, 2006 04:39 PM

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

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
variable memory
Posted: Mon Mar 13, 2006 04:45 PM

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)
Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
variable memory
Posted: Tue Mar 14, 2006 01:19 PM

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.
Posts: 58
Joined: Fri Mar 10, 2006 08:13 PM
variable memory
Posted: Tue Mar 14, 2006 09:02 PM
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

Continue the discussion