SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    BDF referencing a DLL will not compile

    I have a script and I'm trying to call functions from an external VB6/ActiveX DLL.

    I get the error compile error SYN 96: wrong parameter type in external function declaration. Note that the external function is a procedure which returns nothing and has no parameters. The compiler stops on the first function declaration "function ConnectMe()".


    My declaration code is as follows:


    Anyone know where I could be wrong?


    Thanks in advance.

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

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Location
    Walsall, West Midlands, United Kingdom
    Posts
    259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: BDF referencing a DLL will not compile

    Solved it! SilkPerformer's online help is incorrect.

    Online help says :-

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    dll "DemoFunctions.dll"

    // function without parameters and return value
    "DemoOutput"
    function Output();

    // function declared using C data types
    "DemoSum"
    function Sum(in long, in long): long;
    <HR></BLOCKQUOTE>


    The line
    function Output();
    should be
    function Output;
    in the topic "Using*custom*DLLs inside your test script".

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

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Posts
    164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: BDF referencing a DLL will not compile

    The same is true for ordinary function declarations, though you get the error:

    SYN 2: identifier expected

    The Help could certainly be clearer.


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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:42 AM.

Copyright BetaSoft Inc.