Discussion:
Compile the BUILD command
(too old to reply)
bnmohan via DBMonster.com
2009-12-22 06:31:11 UTC
Permalink
Hi! 22 Dec

Happy Christmas to all!

Can the BUILD command be compiled?

I created an application with a BUILD EXE command, which runs fine under Fox7.
0, but the compiled .exe when run independent of FOX gives the error 'Feature
not available'

Is there any way I can make a standalone compiled Fox appl compile a project??


Thanks,

Mohan
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
bnmohan via DBMonster.com
2009-12-22 06:54:01 UTC
Permalink
I found a 2004 post that advises that the VisualFoxpro.Application be created
as an object and the Build command executed through the DoCmd method

loVFPApp = CREATEOBJECT("VisualFoxPro.Application")
loVFPApp.DoCmd("BUILD EXE yourfile.exe FROM yourfile.pjx RECOMPILE")

Will try it out shortly

Mohan
Post by bnmohan via DBMonster.com
Hi! 22 Dec
Happy Christmas to all!
Can the BUILD command be compiled?
I created an application with a BUILD EXE command, which runs fine under Fox7.
0, but the compiled .exe when run independent of FOX gives the error 'Feature
not available'
Is there any way I can make a standalone compiled Fox appl compile a project??
Thanks,
Mohan
--
Message posted via http://www.dbmonster.com
Dan Freeman
2009-12-22 08:52:56 UTC
Permalink
Post by bnmohan via DBMonster.com
I found a 2004 post that advises that the VisualFoxpro.Application be created
as an object and the Build command executed through the DoCmd method
loVFPApp = CREATEOBJECT("VisualFoxPro.Application")
loVFPApp.DoCmd("BUILD EXE yourfile.exe FROM yourfile.pjx RECOMPILE")
Will try it out shortly
Mohan
Post by bnmohan via DBMonster.com
Hi! 22 Dec
Happy Christmas to all!
Can the BUILD command be compiled?
I created an application with a BUILD EXE command, which runs fine under Fox7.
0, but the compiled .exe when run independent of FOX gives the error 'Feature
not available'
Is there any way I can make a standalone compiled Fox appl compile a project??
Thanks,
Mohan
Look at the topic "Distributable and Restricted Visual FoxPro Features
and Files" in the VFP help file for a list of commands that are not
available in a distributed EXE.

You'll find BUILD EXE on the unavailable list.

VisualFoxpro.Application may appear to you to make the magic happen but
it's just a reference to Foxrpo itself so it will only work on computers
where Foxpro is installed. In that case, why not use Foxpro itself?

What you want to do cannot be done, by design.

Dan
Jürgen Wondzinski
2009-12-22 09:17:24 UTC
Permalink
Hi Mohan,

just think a little bit: If a VFP EXE would allow to build other EXEs, who
would then have bought a VFP package in the first case? What business case
is that? Microsoft would have sold exactly one package, which would then was
used to build a free compiler... No way! ;)

If you want to build EXEs, you have to buy the product.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



"*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
..·`.Visual FoxPro: It's magic !
(¸.·``··*
bnmohan via DBMonster.com
2009-12-22 13:54:24 UTC
Permalink
Hi! 22 Dec

The loVFPApp.DoCmd suits me just fine:

The application is a scheduled one that runs unattended. It downloads emails,
accesses remote servers, runs various applications, creates an self
extracting executable, and mails it, along with other reports to specific
users. The executable updates an application at the remote location.

I do not wish to let VFP be a running application 24/7/365 (at least I think
it is not good: the machine is also the proxy server, and the job should not
halt: it is designed to die gracefully, so that other applications that
follow do not sufffer)

Request advise me if I am wrong.

Mohan
Post by Jürgen Wondzinski
Hi Mohan,
just think a little bit: If a VFP EXE would allow to build other EXEs, who
would then have bought a VFP package in the first case? What business case
is that? Microsoft would have sold exactly one package, which would then was
used to build a free compiler... No way! ;)
If you want to build EXEs, you have to buy the product.
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
Jürgen Wondzinski
2009-12-22 14:40:32 UTC
Permalink
Hi Mohan,

all very nice, but what has this to do with using the BUILD command in an
EXE ?

If you mean that BUILD could create a selfextracting executable: No, that's
not the purpose of that VFP-command.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009



"*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
..·`.Visual FoxPro: It's magic !
(¸.·``··*
bnmohan via DBMonster.com
2009-12-22 15:01:18 UTC
Permalink
Hi Jũrgen 22 Dec

Happy Christmas to you!!

BUILD EXE executable.exe FROM executable.pjx RECOMPILE
The project has databases, tables, etc included.
When executed, the main appln validates locations etc, extracts required data
from the exe, updates data, programs, applns, deletes/creates icons etc. The
user has to click on the exe, and the updating is done without his
intervention. I have a lot of trouble asking people to "click on command
prompt, pl type cd\directory\path, type run dir abcd*.dbf oh hit enter first,
start all over again, all on long distance

Mohan
Post by Jürgen Wondzinski
Hi Mohan,
all very nice, but what has this to do with using the BUILD command in an
EXE ?
If you mean that BUILD could create a selfextracting executable: No, that's
not the purpose of that VFP-command.
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
Pavel Celba
2010-01-15 17:50:26 UTC
Permalink
Just FYI, the BUILD EXE and BUILD APP commands are working like a glue...
They are taking the EXE heading and all compiled FXPs and other files
included in the project and put them all together into one big file. It
should not be difficult to look at EXE in some hex edit (e.g. the one
delivered with VFP) and write some small application which will do exactly
same work as the BUILD command itself...

The COMPILE command is supported in VFP run-time, so another option is one
fixed EXE which can call any FXP passed as a parameter.

BTW, Refox depompiler is able to do the reverse split of EXE into its
components.

P.C.
Post by bnmohan via DBMonster.com
Hi Jũrgen 22 Dec
Happy Christmas to you!!
BUILD EXE executable.exe FROM executable.pjx RECOMPILE
The project has databases, tables, etc included.
When executed, the main appln validates locations etc, extracts required data
from the exe, updates data, programs, applns, deletes/creates icons etc. The
user has to click on the exe, and the updating is done without his
intervention. I have a lot of trouble asking people to "click on command
prompt, pl type cd\directory\path, type run dir abcd*.dbf oh hit enter first,
start all over again, all on long distance
Mohan
Post by Jürgen Wondzinski
Hi Mohan,
all very nice, but what has this to do with using the BUILD command in an
EXE ?
If you mean that BUILD could create a selfextracting executable: No, that's
not the purpose of that VFP-command.
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
bnmohan via DBMonster.com
2010-01-16 03:47:19 UTC
Permalink
Hi Pavel!!
Post by Pavel Celba
Just FYI, the BUILD EXE and BUILD APP commands are working like a glue...
They are taking the EXE heading and all compiled FXPs and other files
included in the project and put them all together into one big file. It
should not be difficult to look at EXE in some hex edit (e.g. the one
delivered with VFP) and write some small application which will do exactly
same work as the BUILD command itself...
Handling global references would be equal to writing code for compiling the
BUILD command itself, wouldnt it?

Mohan
Post by Pavel Celba
The COMPILE command is supported in VFP run-time, so another option is one
fixed EXE which can call any FXP passed as a parameter.
BTW, Refox depompiler is able to do the reverse split of EXE into its
components.
P.C.
Post by bnmohan via DBMonster.com
Hi Jũrgen 22 Dec
[quoted text clipped - 22 lines]
Post by bnmohan via DBMonster.com
Post by Jürgen Wondzinski
that's
not the purpose of that VFP-command.
--
Message posted via http://www.dbmonster.com
vikram khandwekar
2011-03-04 08:28:05 UTC
Permalink
please send to me for help
Post by bnmohan via DBMonster.com
Hi! 22 Dec
Happy Christmas to all!
Can the BUILD command be compiled?
I created an application with a BUILD EXE command, which runs fine under Fox7.
0, but the compiled .exe when run independent of FOX gives the error 'Feature
not available'
Is there any way I can make a standalone compiled Fox appl compile a project??
Thanks,
Mohan
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
Post by bnmohan via DBMonster.com
I found a 2004 post that advises that the VisualFoxpro.Application be created
as an object and the Build command executed through the DoCmd method
loVFPApp = CREATEOBJECT("VisualFoxPro.Application")
loVFPApp.DoCmd("BUILD EXE yourfile.exe FROM yourfile.pjx RECOMPILE")
Will try it out shortly
Mohan
--
Message posted via http://www.dbmonster.com
Post by Dan Freeman
Look at the topic "Distributable and Restricted Visual FoxPro Features
and Files" in the VFP help file for a list of commands that are not
available in a distributed EXE.
You'll find BUILD EXE on the unavailable list.
VisualFoxpro.Application may appear to you to make the magic happen but
it is just a reference to Foxrpo itself so it will only work on computers
where Foxpro is installed. In that case, why not use Foxpro itself?
What you want to do cannot be done, by design.
Dan
Post by Jürgen Wondzinski
Hi Mohan,
just think a little bit: If a VFP EXE would allow to build other EXEs, who
would then have bought a VFP package in the first case? What business case
is that? Microsoft would have sold exactly one package, which would then was
used to build a free compiler... No way! ;)
If you want to build EXEs, you have to buy the product.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009
"*????)
??.??????.??*????) ??.??*??)
(??.????. (??.??` *
..??`.Visual FoxPro: it is magic !
(??.??``????*
Post by bnmohan via DBMonster.com
Hi! 22 Dec
The application is a scheduled one that runs unattended. It downloads emails,
accesses remote servers, runs various applications, creates an self
extracting executable, and mails it, along with other reports to specific
users. The executable updates an application at the remote location.
I do not wish to let VFP be a running application 24/7/365 (at least I think
it is not good: the machine is also the proxy server, and the job should not
halt: it is designed to die gracefully, so that other applications that
follow do not sufffer)
Request advise me if I am wrong.
Mohan
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
Post by Jürgen Wondzinski
Hi Mohan,
all very nice, but what has this to do with using the BUILD command in an
EXE ?
If you mean that BUILD could create a selfextracting executable: No, that is
not the purpose of that VFP-command.
--
wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009
"*????)
??.??????.??*????) ??.??*??)
(??.????. (??.??` *
..??`.Visual FoxPro: it is magic !
(??.??``????*
Hi J??rgen 22 Dec
Happy Christmas to you!!
BUILD EXE executable.exe FROM executable.pjx RECOMPILE
The project has databases, tables, etc included.
When executed, the main appln validates locations etc, extracts required data
from the exe, updates data, programs, applns, deletes/creates icons etc. The
user has to click on the exe, and the updating is done without his
intervention. I have a lot of trouble asking people to "click on command
prompt, pl type cd\directory\path, type run dir abcd*.dbf oh hit enter first,
start all over again, all on long distance
Mohan
--
Message posted via DBMonster.com
http://www.dbmonster.com/Uwe/Forums.aspx/foxpro-general/200912/1
Post by Pavel Celba
Just FYI, the BUILD EXE and BUILD APP commands are working like a glue...
They are taking the EXE heading and all compiled FXPs and other files
included in the project and put them all together into one big file. It
should not be difficult to look at EXE in some hex edit (e.g. the one
delivered with VFP) and write some small application which will do exactly
same work as the BUILD command itself...
The COMPILE command is supported in VFP run-time, so another option is one
fixed EXE which can call any FXP passed as a parameter.
BTW, Refox depompiler is able to do the reverse split of EXE into its
components.
P.C.
Post by bnmohan via DBMonster.com
Hi Pavel!!
Handling global references would be equal to writing code for compiling the
BUILD command itself, wouldnt it?
Mohan
--
Message posted via http://www.dbmonster.com
Submitted via EggHeadCafe
SQL Server Table Valued Parameters / Types - Multiple Row Inserts
http://www.eggheadcafe.com/tutorials/aspnet/1b4677b6-3be6-4b68-897f-e4829fa8f33b/sql-server-table-valued-parameters--types--multiple-row-inserts.aspx
Continue reading on narkive:
Loading...