home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!ods!scott
- From: scott@ods.com (Scott Harper)
- Subject: Btrieve for Windows (WBTRCALL.DLL)
- Message-ID: <1992Sep15.160907.12527@ods.com>
- Organization: Optical Data Systems, Inc.
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Tue, 15 Sep 1992 16:09:07 GMT
- Lines: 41
-
-
- I'm writing an app that makes use of Btrieve for Windows as a
- database. I'm using the client-based (workstation) version.
- I have put all my database interface functions in a DLL. So
- far, so good. But now I have a second app that I want to use
- my DLL with. Either of these apps may or may not be active at
- the same time... Questions:
-
- 1. I make my call to BTRVINIT (WBTRVINIT) in the DLL's LibMain.
- I am assuming this is fine, as long as I can use the same init
- defintion for both apps. I also assume that I cannot have two
- different initialization definitions active at the same time.
- Comments?
-
- 2. When do I need to call BTRVSTOP (WBTRVSTOP), and from where, or
- do I even need to?
-
- In the Btrieve for MS-Windows/Installation and Operation manual,
- page 1-1, it says "In the MS-Windows environment, Btrieve is
- implemented as a single dynamic link library (DLL). As such,
- Btrieve for MS-Windows is automatically loaded when called and
- unloaded when not in use, without any action by the application
- calling it."
-
- But later, on page 2-16, under "Stopping Btrieve" it says "During
- termination processing, the function WBTRVSTOP() should be called
- to allow Btrieve to deallocate space that is reserved in the Btrieve
- tables for that application."
-
- So I don't know if I should:
- 1. Call BTRVSTOP in the shutdown processing of my app(s).
- 2. Call BTRVSTOP in my DLL's WEP.
- 3. Do nothing.
-
- Also, how does BTRVSTOP relate to the STOP (25) opcode?
-
- Thanks in advance -
- --
- Scott Harper Optical Data Systems, Inc.
- scott@ods.com 1101 E. Arapaho Road
- (214) 234-6400 Richardson, TX 75081
-