Announcement

Collapse
No announcement yet.

How to link .LIB/.DLL/.OBJ files for PowerBasic 3.1/3.5 (GPIB card)?

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

  • How to link .LIB/.DLL/.OBJ files for PowerBasic 3.1/3.5 (GPIB card)?

    I have a GPIB card made by ICS electronics. They supply GPIB-32.DLL as well as:

    GPIBQB.LIB
    GPIBQB.QLB
    DECL.BAS

    Those are for use with Quick Basic (eg: QB /L gpibqb).

    They also supply GPIB-32.lib and gpib-32.obj for C programming.

    So, can I use any of those lib's, obj's, or DLL's with Power Basic 3.1 or 3.5 if I want to talk to this GPIB card or am I stuck with Quick Basic?


    ------------------

  • #2
    You need to extract the OBJs from the LIB and $LINK those.

    And unless I'm mistaken, there are some restrictions on the OBJ files (something to do with initialized data segment?)

    And here I know I'm not mistaken: if the functions in the OBJs accept Microsoft BASIC strings as parameters, they will not work with PowerBASIC for MS-DOS.


    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      I don't think an .OBJ for QB is likely to be at all compatible with PB.
      If they provide the source code for the library, you may have a chance
      of porting it.


      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        This might be worth a little time...
        http://www.google.com/search?hl=en&i...=Google+Search

        Returned 205 hits, none of which I inspected in detail.

        Add "+MS-DOS" to the "+powerbasic +gpib" search and you're down to 12 hits.

        MCM
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment

        Working...
        X