SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    161
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Digest Number 280

    User (John.Yoo@GrassValleyGroup.com) posted:

    Help,

    I am trying to add DLL calls in my test script.
    I understand using DLL declaration with function calls in Window APIs. (the
    Help index or user's manual).

    DLL "NameOfDll.dll"
    {
    prototype();
    Functions in DLL;
    Functions in DLL;
    }

    However, the APIs in the application written in C or C++ has pointers and
    Handles.
    How I could take care of the pointers and Handles in the above case.
    Especially the real-time application APIs use heavily pointers and Handles.
    If we need to create some other shells for the purpose, what should it be.

    <Example API call>


    PORTAL_STATUS Fxn(PortalMessage_t* pPortalMsg)
    {
    if (pPortalMsg->PortalMsg.displayControl == PORTAL_MSG)
    printf("Received message: %s", pPortalMsg->PortalMsg.buf);
    }

    If anyone knows the answer please inform us.

    Thanks a lot,

    /John Yoo
    Post message: silktest@yahoogroups.com
    Subscribe: silktest-subscribe@yahoogroups.com
    Unsubscribe: silktest-unsubscribe@yahoogroups.com
    List owner: silktest-owner@yahoogroups.com
    URL to this page: http://groups.yahoo.com/group/silktest


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



  2. #2
    Member
    Join Date
    Nov 2000
    Location
    Tampa, FL USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Digest Number 280

    you may want to look at: http://www.qaforums.com/Forum1/HTML/000986.html

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

  3. #3
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Digest Number 280

    If you can change the function make your argument a char* then you can use it with Silk. User-defined type are no good with Silk.

    from help:
    Pointer to a character Pass a 4Test string variable to a DLL which requires a pointer to a character (null terminated).



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

 

 

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 04:16 PM.

Copyright BetaSoft Inc.