SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    rsg
    rsg is offline
    Junior Member
    Join Date
    Aug 2001
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Declaring DLL functions?

    How do I get the declaration of a DLL when I don't know what functions reside within the DLL? Can SilkTest read the DLL and list it's functions so I can then use SilkTest to call the identified functions from my 4Test scripts? From what I can grasp from the SilkTest documentation you have to know what functions reside within the DLL then hand generate the declaration. IE.

    dll "toolhelp.dll"
    BOOL MemManInfo (out MEMMANINFO MemManInfo)

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

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Declaring DLL functions?

    I'm afraid that your initial analysis is correct: you need to know what's in the DLL in order to use what's in the DLL.

    If it's a DLL developed in-house, beg your developers for the information. Buy them Frit-O's.

    If it's an external DLL, you might want to search the web or, in the case of a Microsoft DLL, the MSDN.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Declaring DLL functions?

    If you have visual studio installed, you can use a utility called dumpbin.exe to retrieve the exported functions in a dll although it doesn't give you the parameters required. It's located in the \vc98\bin directory. The syntax from a command line prompt is:

    dumpbin [filename] /exports

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Member
    Join Date
    Oct 2001
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Declaring DLL functions?

    If you are on NT you can also right click the dll and select Quickview to see all of the fucntions in the dll.

    Paul

    ------------------
    Paul Tucker
    Merit AT
    www.merit-at.com
    Paul Tucker
    Merit AT
    www.merit-at.com

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Declaring DLL functions?

    ... if Quickview is installed.

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

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:45 AM.

Copyright BetaSoft Inc.