home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / 6743 < prev    next >
Encoding:
Text File  |  1992-09-15  |  3.7 KB  |  86 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!hp-col!denisl
  3. From: denisl@col.hp.com (Denis Lambert)
  4. Subject: Re: Btrieve for Windows Question
  5. Sender: news@col.hp.com (Usenet News)
  6. Message-ID: <1992Sep15.165406.21335@col.hp.com>
  7. Date: Tue, 15 Sep 1992 16:54:06 GMT
  8. References: <1992Sep14.140651.10906@col.hp.com>
  9. Organization: HP Colorado Springs Division
  10. Lines: 74
  11.  
  12.  
  13. > In article <1992Sep14.140651.10906@col.hp.com> you write:
  14. > >Subject: Btrieve for Windows Help
  15. > >Newsgroups: comp.windows.ms.programmer
  16. > >Distribution: 
  17. > >
  18. > >I am considering moving some of my Btrieve DOS programs to windows and 
  19. > >while reading Novell Bullets, December 1991 issue it appeared as if the
  20. > >call to Btrieve has changed from BTRV to BTRCALL and the arguments are
  21. > >different.  Can someone out there who has made the port from Btrieve for
  22. > >DOS to Btrieve for Windows give me some insight on what has changed and
  23. > >how difficult it is to make the switch.  What is the DLL interface for
  24. > >Borland C++ and Turbo Pascal for Windows?  If the port is any effort I
  25. > >am considering switching to Paradox Engine so that I will be able to 
  26. > >take advantage of Paradox for Windows when it becomes available.
  27. > >
  28. > If you find out anything could you tell me too please.  Thanks.
  29. > Lou Kates, louk@research.teleride.on.ca
  30.  
  31. I found out quite a bit.
  32.  
  33. First of all, Btrieve for Windows DLL call has changed to BTRCALL and
  34. there is one more argument.  The additional argument is key length and
  35. it is passed as a var integer between the key buffer and key number 
  36. parameters.  To get things working quick and easy you can create a BTRV
  37. function that sets the key length to 255 and pass a key buffer of 255 bytes
  38. to BTRCALL.  I tried this with a Btrieve for Windows DLL that came with 
  39. another package that I bought and it seems to be working perfectly.  In
  40. short the port is simple.
  41.  
  42. Regarding a Visual Basic interface to Paradox Engine I found one on
  43. ftp.cica.indiana.edu in pub/pc/win3/programr/vb.  Examples for TPX and
  44. Paradox Engine are located in the tp subdirectory.  Borland has also 
  45. indicated that TPW 1.5 ships with a Paradox Engine example in the OWL
  46. examples directory.
  47.  
  48. To interface Btrieve for Windows to Visual Basic the declare statement is
  49. as follows.  I have not tested this at all.  I pulled it straight from
  50. the Novell Bullets magazine.
  51.  
  52.    declare function btrcall lib "wbtrcall.dll" (ByVal op%, ByVal pb$,
  53.      DB as Any, Dl as integer, ByVal kb$, ByVal KeyLength%, ByVal kn%)
  54.      as integer
  55.  
  56. Coromandel also sells a package dbControls for Visual Basic that provides
  57. custom controls for Btrieve data files.  I don't have their phone number
  58. with me, but if you are interested I will send it to you.  Programmers
  59. Shop carries Coromandel products.  Make sure that you specify what version.
  60. I received the dBase version by mistake.
  61.  
  62. As far as choosing between Btrieve for Windows and Paradox Engine I have not
  63. reached any conclusion.  Btrieve for Windows makes my current port easier,
  64. but I like Paradox and the soon to be release Paradox for Windows better
  65. as a long term platform.  Borland has indicated that Paradox Engine 3.0
  66. will be released shortly after Paradox for Windows and it will include 
  67. some new functionality, but as always they wouldn't say what it was.  Finally,
  68. there are custom controls for Btrieve now, making Visual Basic development
  69. faster.
  70.  
  71. Would it be nicer if there was only one option for everything you were
  72. thinking about doing in life?
  73.  
  74. I want to thank everyone for their input and help.
  75. --
  76. ------------------------------------------------------------------
  77. Denis Lambert
  78. denisl@col.hp.com
  79. (719)590-2515
  80. ------------------------------------------------------------------
  81.