variable memory

variable memory

Postby clemerson » Fri Mar 10, 2006 8: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
User avatar
clemerson
 
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil

Postby Antonio Linares » Fri Mar 10, 2006 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby clemerson » Mon Mar 13, 2006 1: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
User avatar
clemerson
 
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil

Postby Antonio Linares » Mon Mar 13, 2006 1:54 pm

Clemerson,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby clemerson » Mon Mar 13, 2006 4: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
User avatar
clemerson
 
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil

Postby carlos vargas » Mon Mar 13, 2006 4: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)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Postby R.F. » Tue Mar 14, 2006 1: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.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Postby clemerson » Tue Mar 14, 2006 9: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
User avatar
clemerson
 
Posts: 58
Joined: Fri Mar 10, 2006 8:13 pm
Location: Brazil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests