Alpha Video Training
Results 1 to 4 of 4

Thread: Problem with External DLL in A5V5

  1. #1
    Member
    Real Name
    Jerry Robbins
    Join Date
    May 2000
    Posts
    7

    Default Problem with External DLL in A5V5

    Why would the following work in A5 version 4.x but not in version 5?

    DECLARE wsc32 SioGetc II

    dim charcode as n
    charcode=SioGetc(val(VC_SCANNER_PORT)-1)

    I've tried fully qualifying the DLL in the Declare statment ("c:\Windows\wsc32.dll"), but that didn't work.

    The function normally returns the next byte from the receive queue of the selected serial port. In Version 5, it returns 65535.

    Does anybody know what's changed?

    Thanks!!!!
    Jerry

  2. #2
    Former Alpha Employee Edward Larrabee's Avatar
    Real Name
    Edward Larrabee
    Join Date
    Nov 2002
    Location
    New Hampshire
    Posts
    1,385

    Default RE: Problem with External DLL in A5V5

    Perhaps you need to include the name of the library. See DECLARE.

  3. #3
    Member
    Real Name
    Jerry Robbins
    Join Date
    May 2000
    Posts
    7

    Default RE: Problem with External DLL in A5V5

    Thanks,
    I tried that, but it didn't help.
    I've tried these approaches to the DECLARE...

    declare wsc32 SioGetc@SioGetc II
    declare wsc32@wsc32 SioGetc@SioGetc II
    declare c:\Windows\wsc32.dll SioGetc@SioGetc II

    I've experimented with changing the argument declarations from Integer to Long. That did change the return value to an expected error code. But it's still not working.

    Did something change in A5 specific to this that I'm just not aware of?

  4. #4
    Member
    Real Name
    Jerry Robbins
    Join Date
    May 2000
    Posts
    7

    Default RE: Problem with External DLL in A5V5

    I changed all instances of "I" to "L" and all the functions in the DLL work correctly now.
    It's clear that A5V5 is doing certain things here differently that A5V4.5 did.

    In any event, it's working now.

    BTW, for the record, I love version 5!
    (I'll upgrade to v6 very soon.)

Similar Threads

  1. UPGRADE A5V4 TO A5V5 PROBLEM
    By dhall in forum Alpha Five Version 5
    Replies: 7
    Last Post: 06-20-2005, 03:03 PM
  2. PROBLEM WITH A5V5 SET
    By Rawlings in forum Alpha Five Version 5
    Replies: 2
    Last Post: 04-13-2004, 07:04 PM
  3. Installation problem A5V5 runtime
    By Tony Rutherford in forum Alpha Five Version 5
    Replies: 5
    Last Post: 09-03-2003, 12:58 AM
  4. A5V4 to A5V5 embedded browse problem
    By Gary Smith in forum Alpha Five Version 5
    Replies: 1
    Last Post: 03-27-2003, 05:27 AM
  5. Loading A5V5 problem
    By Marc Hotchkiss in forum Alpha Five Version 4
    Replies: 4
    Last Post: 07-08-2002, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •