![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We attempting to detect, when our program is running in a terminal services client, if Pervasive is running or not. If Pervasive is running, our program will exit. We can detect versions of Pervasive up to release version # 7.90. But we are not able to detect when Pervasive 2000 SP4 (version 7.94) is running. And we are looking for some help identifying why we see two different behaviors, as described below. (We are getting the database version by calling the function BTRCALL with operation code of 26). Installed and running on Windows 2003 Server: Situation #1: Pervasive 2000 (version 7.82) our product with Btrieve 6.15 Result #1: When we run our product, the version of the database reported back to our code is 7.82. Situation #2: Pervasive 2000 SP4 (version 7.94) our product with Btrieve 6.15 Result #2: When we run our product, the version of the database reported back to our code is 6.15. |
#3
| |||
| |||
|
|
Where does the Pervasive.SQL 2000 SP2 (version 7.82) come from? Why I'm asking: The version number you're seeing depends on the version of the Btrieve API you're calling. Windows tries to locate the API (in your case either wbtrcall.dll or wbtrv32.dll) by using the following path: - startup directory - executable directory (if different from startup directory) - Windows system directory (system32 on NT systems) - system path (PATH environment string) With Pervasive.SQL 2000, being Windows 2000 compliant, the API should not be found until the PVSW\BIN directory is searched. This directory will most definitly never contain a 6.15 version of the API files. Therefore if you're seeing a 6.15 version and it's not packed within your own application directory, it has to be that you're installing it to the Windows system directory. Consequently this destroys database functionality for the third party application that requires Pervasive.SQL. Apparently you're only stopped from instaling the older 6.15 when this third party has installed version 7.82 to the Windows system directory using a non-Pervasive install (e.g. Exact for Windows does this). Gordon |
![]() |
| Thread Tools | |
| Display Modes | |
| |