I would like to be able to run an external program or another function of the system performance, asking him to appeal to a certain database.
I organized a function call timer, just as it was done with backgrounds. In the called function is an appeal to the database if it is closed. How to check Roger suggested earlier. The database records the external program call to the function of the system, exactly the same as I use myself in the system. There is an array of all possible system function calls. If the array has the same treatment as in the database, the function is called, the value of the variable. How to do it showed Tom. But so far it has not been done since when accessing the database from the function called on the timer, an error handling of the external function and this function takes this as an empty database, although it is not exactly so. Maybe as usual prompt, how to do it.
After the execution of the functions, refer to that specified in the database, the database is cleared and closed and the external program can set it with new features.
Starting the system functions external program timer
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Starting the system functions external program timer
I want to make to the two programs communicate through a common database. First, the program checks is empty and closed base or not. If not, then run to the specified function in the database for execution. After the execution of the function base should be cleaned and closed. Second, the program checks the base is closed or not, and if closed, would open it and recorded it to any function, and then closes.
Re: Starting the system functions external program timer
If you need to synchronize database operations between 2 executables you could use an architecture similar to DC_X2Clip().
I wrote this when I first wrote eXpress++ to synchronize a Clipper program with an Xbase++ program.
I wrote this when I first wrote eXpress++ to synchronize a Clipper program with an Xbase++ program.
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Starting the system functions external program timer
No, the idea was that the other program can take advantage of the system that I'm developing. External program to run my system as it could make the user. I wanted to change the system so that it was possible. So that it reads commands from an external database, which would put these commands external program. Like even almost happened, but for some reason in this mode, the system sees my own database, as empty.
Re: Starting the system functions external program timer
This should be a very simple problem to troubleshoot.but for some reason in this mode, the system sees my own database, as empty.
Possibly you are opening the wrong database.
Are you sure that you are not trying to open exclusive?
Press Alt-D to go to the dot-prompt.
It will show you the workarea and database name that is opened.
The eXpress train is coming - and it has more cars.
Re: Starting the system functions external program timer
what OS() ?Eugene Lutsenko wrote:Like even almost happened, but for some reason in this mode, the system sees my own database, as empty.
if Win7/8/10 you might need Alaska SMB2 Hotfix ... your Database might be still in "Cache"
greetings by OHR
Jimmy
Jimmy
Re: Starting the system functions external program timer
If this is true, then a dbCommitAll() should solve it.your Database might be still in "Cache"
The eXpress train is coming - and it has more cars.
Re: Starting the system functions external program timer
i mean these 3 Registry "Hotfix"rdonnay wrote:If this is true, then a dbCommitAll() should solve it.your Database might be still in "Cache"
Code: Select all
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters
DirectoryCacheLifetime
FileInfoCacheLifetime
FileNotFoundCacheLifetime
... or "Share" Local Directory on Network
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Starting the system functions external program timer
Thank U. Be sure to try, as I get to a computer!