Home > Archive > FoxPro Help and Support > December 2005 > Taking public variable from another *.exe









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Taking public variable from another *.exe
Alur

2005-12-01, 1:24 pm

Explain, please, the way to take the public variable from one exe file from
inside another ?
Dan Freeman

2005-12-01, 8:25 pm

With a simple EXE you cannot. EXEs are separate spaces in memory.

If you make one of them a COM object, the second can use Getobject() to get
an object reference and pull values out of member properties.

Dan

Alur wrote:
> Explain, please, the way to take the public variable from one exe
> file from inside another ?



Rick Bean

2005-12-01, 8:25 pm

Alur,
Write it out to a DBF in the first and read in the second .EXE. You could also
use a .TXT file or even use an XML file. If you make the variable holder a COM
..EXE, you could simply call a method in the other .EXE to get it. Of course
there are more exotic options, like Winsock, or "pushing" the variable's value
to the second one.

Rick

"Alur" <Alur@discussions.microsoft.com> wrote in message
news:5AD0006A-77CA-4C6C-A062- 312BBD57CB88@microso
ft.com...
> Explain, please, the way to take the public variable from one exe file from
> inside another ?


Alur

2005-12-02, 7:24 am

Thank you.

"Rick Bean" wrote:

> Alur,
> Write it out to a DBF in the first and read in the second .EXE. You could also
> use a .TXT file or even use an XML file. If you make the variable holder a COM
> ..EXE, you could simply call a method in the other .EXE to get it. Of course
> there are more exotic options, like Winsock, or "pushing" the variable's value
> to the second one.
>
> Rick
>
> "Alur" <Alur@discussions.microsoft.com> wrote in message
> news:5AD0006A-77CA-4C6C-A062- 312BBD57CB88@microso
ft.com...
>
>

Alur

2005-12-02, 7:24 am

Thank you.

"Dan Freeman" wrote:

> With a simple EXE you cannot. EXEs are separate spaces in memory.
>
> If you make one of them a COM object, the second can use Getobject() to get
> an object reference and pull values out of member properties.
>
> Dan
>
> Alur wrote:
>
>
>

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com