Announcement

Collapse
No announcement yet.

ADO & inc files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ADO & inc files

    Hi all
    A oneday PB user after many years VBx.
    First conversion involves a VB6 routine which interacts with MSAccess.
    I was using DAO, but decided to do the "correct" thing and convert to ADO. I see plenty of good examples, many from José Roca most of which use TB_AD028.inc. I figured this would be created via the ComBrowser but when I goto the browser and click on the 2.8 library, the browser indicates <library not present>. So, just as an excercise, I thought I would download and install MDAC 2.8. This failed with an indication along the lines of: "Files are now part of operating system" (XPPro SP3).
    Before I revert back to DAO can anyone give me a pointer as to where I can get latest ADO .inc file.

    TIA

    Ian Bayly

  • #2
    First let me say "Welcome to the light side, young jedi"

    unfortunately I never got into ADO myself, but I am sure many "VB Refugees" are around and will be willing to help , and I am sure not too long before you wonder to yourself "Why in the world did I do VB to start with?????"

    Engineer's Motto: If it aint broke take it apart and fix it

    "If at 1st you don't succeed... call it version 1.0"

    "Half of Programming is coding"....."The other 90% is DEBUGGING"

    "Document my code????" .... "WHYYY??? do you think they call it CODE? "

    Comment


    • #3
      [...] many from José Roca most of which use TB_AD028.inc. I figured this would be created via the ComBrowser[...]
      Wrong. TB_ADO28 is a library of wrapper functions that allow to use ADO with PB in procedural form, accessing the interfaces doing direct calls through the virtual table.

      It is available in my forum to registered users: http://www.jose.it-berater.org/smffo...hp?topic=969.0

      [...]but when I goto the browser and click on the 2.8 library, the browser indicates <library not present>.
      This is an "issue" of the PB COM Browser. My TypeLib Browser has an option to generate PB compatible interface definitions. You can download it at: http://com.it-berater.org/typelib_browser.htm
      Forum: http://www.jose.it-berater.org/smfforum/index.php

      Comment


      • #4
        Thanks for welcome Cliff.
        Thankyou to Jose for putting me straight. I have downloaded the appropiate files and can now compile with no errors.
        Still a lot of work to get my head around trapping and debugging errors in PB.

        Comment


        • #5
          Originally posted by Ian Bayly View Post
          Thanks for welcome Cliff.
          Still a lot of work to get my head around trapping and debugging errors in PB.
          For trapping errors, see TRY/END TRY in the help file. For debugging, TRACE and PROFILE are very powerful tools.

          Comment

          Working...
          X