home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1852 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.9 KB  |  52 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!ods!scott
  3. From: scott@ods.com (Scott Harper)
  4. Subject: Btrieve for Windows (WBTRCALL.DLL)
  5. Message-ID: <1992Sep15.160907.12527@ods.com>
  6. Organization: Optical Data Systems, Inc.
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. Date: Tue, 15 Sep 1992 16:09:07 GMT
  9. Lines: 41
  10.  
  11.  
  12. I'm writing an app that makes use of Btrieve for Windows as a
  13. database.  I'm using the client-based (workstation) version.
  14. I have put all my database interface functions in a DLL.  So 
  15. far, so good.  But now I have a second app that I want to use 
  16. my DLL with.  Either of these apps may or may not be active at 
  17. the same time...  Questions:
  18.  
  19. 1. I make my call to BTRVINIT (WBTRVINIT) in the DLL's LibMain.  
  20. I am assuming this is fine, as long as I can use the same init 
  21. defintion for both apps.  I also assume that I cannot have two
  22. different initialization definitions active at the same time.
  23. Comments?
  24.  
  25. 2. When do I need to call BTRVSTOP (WBTRVSTOP), and from where, or
  26. do I even need to?
  27.  
  28. In the Btrieve for MS-Windows/Installation and Operation manual, 
  29. page 1-1, it says "In the MS-Windows environment, Btrieve is 
  30. implemented as a single dynamic link library (DLL).  As such, 
  31. Btrieve for MS-Windows is automatically loaded when called and 
  32. unloaded when not in use, without any action by the application 
  33. calling it."
  34.  
  35. But later, on page 2-16, under "Stopping Btrieve" it says "During
  36. termination processing, the function WBTRVSTOP() should be called
  37. to allow Btrieve to deallocate space that is reserved in the Btrieve
  38. tables for that application."
  39.  
  40. So I don't know if I should:
  41.    1. Call BTRVSTOP in the shutdown processing of my app(s).
  42.    2. Call BTRVSTOP in my DLL's WEP.
  43.    3. Do nothing.
  44.  
  45. Also, how does BTRVSTOP relate to the STOP (25) opcode?
  46.  
  47. Thanks in advance -
  48. -- 
  49. Scott Harper                       Optical Data Systems, Inc.
  50. scott@ods.com                      1101 E. Arapaho Road
  51. (214) 234-6400                     Richardson, TX  75081
  52.