Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include DBC in EXE file?
Message
From
16/12/2021 14:53:15
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
16/12/2021 07:48:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01682969
Message ID:
01682977
Views:
34
>>>The trouble will appear the first time there's a change in the structure - an exe containing the dbc with the new structure will error out when run while the tables' structure don't match. Also, opening any of the tables apart from the .exe (as in „something's fucked up, let's open this in VFP6 to fix the index“ or some such intervention) will be impossible if the dbc can't be found, it being inside the exe.
>
>>It wasn't asked to write to the tables or the DBC. It was just will the table find the related dbc.
>
>Ouch, I didn't think of that from the standpoint of the exe itself. Perhaps it would, if the dbc was explicitly open before the table, or perhaps fox would find it the way it finds other stuff within the exe... but honestly, I wouldn't bother to be the one to try that. Why bother, really.
>
>If it's a matter of having dbc absent when the app isn't running, I'd include it (probably zipped) inside the exe, then unpack it on app start. Or, what I did 20+ years ago in the case of a views-only dbc, create it in %temp% from code on app launch, kill on quit.

There is only - the environment is able to deal with DBC/VFP data or there is a SQL server. Anything else is very odd.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform