Home > Archive > FoxPro Help and Support > June 2005 > Building data into an 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 Building data into an exe
Andrew R

2005-06-24, 11:25 am

I have a project that takes data from one source and then just uses the data
to produce information, reports etc.

Occasionaly the data changes - when it does it will be a complete re-load of
the data.

I want to be able to distribute this by sending one EXE - the EXE will
contain the DBC, tables and indexes by including them in the build.

I have tried this but the running executable does not seem to be able to
"see" the database and its tables. How do you accomplish this?

--
Andrew R.


Stefan Wuebbe

2005-06-25, 3:24 am


"Andrew R" <adr @ rossers. net> schrieb im Newsbeitrag
news:3i2mdcFjj232U1@
individual.net...
>I have a project that takes data from one source and then just uses the data
> to produce information, reports etc.
>
> Occasionaly the data changes - when it does it will be a complete re-load of
> the data.
>
> I want to be able to distribute this by sending one EXE - the EXE will
> contain the DBC, tables and indexes by including them in the build.
>
> I have tried this but the running executable does not seem to be able to
> "see" the database and its tables. How do you accomplish this?


Hi Andrew,

That approach works for me. Which error do you get?


-Stefan




--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------

Andrew R

2005-06-25, 7:24 am

It couldn't open the tables. Seemed to open the DBC. Maybe it's a path
thing. Any clues?

Andrew R.


"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:%23ZJ0nEWeFHA.612@TK2MSFTNGP12.phx.gbl...
:
: "Andrew R" <adr @ rossers. net> schrieb im Newsbeitrag
: news:3i2mdcFjj232U1@
individual.net...
: >I have a project that takes data from one source and then just uses the
data
: > to produce information, reports etc.
: >
: > Occasionaly the data changes - when it does it will be a complete
re-load of
: > the data.
: >
: > I want to be able to distribute this by sending one EXE - the EXE will
: > contain the DBC, tables and indexes by including them in the build.
: >
: > I have tried this but the running executable does not seem to be able to
: > "see" the database and its tables. How do you accomplish this?
:
: Hi Andrew,
:
: That approach works for me. Which error do you get?
:
:
: -Stefan
:
:
:
:
: --
: |\_/| ------ ProLib - programmers liberty -----------------
: (.. ) Our MVPs and MCPs make the Fox run....
: - / See us at www.prolib.de or www.AFPages.de
: -----------------------------------------------------------
:


Olaf Doschke

2005-06-26, 3:23 am

> It couldn't open the tables. Seemed to open the DBC. Maybe it's a path
> thing. Any clues?

If you don't give as a concrete error message and number, we can only
guess:

A dbc with the same name but not the same dbfs on hard disk drive?
Would using the dbfs with the NOUPDATE clause help, maybe
SET EXCLUSIVE OFF? Do you get the same behaviour at your
development computer? If not and everything works fine there,
what does DBF() tell you about the path of the DBFs you open?
Do you try to write to the DBFs?

???

Bye, Olaf.




Andrew R

2005-06-27, 7:24 am

Thanks for your help. I have found my error.

I had included the DBC in the build. However, what I had not realised is
that each table in the DBC also has to be included. All is now working as I
had hoped.

Andrew R.


"Olaf Doschke" < b2xhZi5kb3NjaGtlQHQt
b25saW5lLmRl.strconv.14@t-online.de>
wrote in message news:d9lmsr$ii0$02$1
@news.t-online.com...
: > It couldn't open the tables. Seemed to open the DBC. Maybe it's a path
: > thing. Any clues?
: If you don't give as a concrete error message and number, we can only
: guess:
:
: A dbc with the same name but not the same dbfs on hard disk drive?
: Would using the dbfs with the NOUPDATE clause help, maybe
: SET EXCLUSIVE OFF? Do you get the same behaviour at your
: development computer? If not and everything works fine there,
: what does DBF() tell you about the path of the DBFs you open?
: Do you try to write to the DBFs?
:
: ???
:
: Bye, Olaf.
:
:
:
:


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