SPONSORS:






User Tag List

Results 1 to 7 of 7

Thread: use dll in silk

  1. #1
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    use dll in silk

    I have developed a dll in VC++ (say Trail.dll) with a method callVB (BSTR a).

    I was trying to use the dll from Silk 4Test script.

    But the script doesnt execute beyond the line where the call to the method is made. It doesnt even show an error either.

    This is the way I called in the 4Test Script
    (Declared)
    [-] dll "C:\Program Files\Common Files\Mercury Interactive\SilkPlugin\Trail.dll"
    [ ] callVB(String MyStr)

    In the script I just used callVB(someString)

    Can you suggest if there is something wrong

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

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Kiran Sankuru:

    This is the way I called in the 4Test Script
    (Declared)
    [-] dll "C:\Program Files\Common Files\Mercury Interactive\SilkPlugin\Trail.dll"
    [ ] callVB(String MyStr)

    In the script I just used callVB(someString)
    <HR></BLOCKQUOTE>
    Hi,
    That DLL is standard DLL or COM DLL? Silk doesn't have support for COM DLL.


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  3. #3
    Member
    Join Date
    May 2003
    Location
    DC
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    it is a Win32 Dll

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

  4. #4
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    I was surprised to see this statement:
    dll "C:\Program Files\Common Files\Mercury Interactive\SilkPlugin\Trail.dll"

    I was under the impression that the dll you were declaring in the statement had to be in the system path. However I always get information from silk when it, cannot find a dll .. and my usage of dll's is a tad stale.

    My suggestion is to place that dll in your system path somewhere and redeclare the code like so:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[-] dll &quot;Trail.dll&quot;
    [ ] callVB(String MyStr)</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">and see how that works ..
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

  5. #5
    Junior Member
    Join Date
    Dec 2002
    Location
    Rochester, NY, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    I can't tell for sure from the post:
    [-] dll "C:\Program Files\Common Files\Mercury Interactive\SilkPlugin\Trail.dll"
    [ ] callVB(String MyStr)

    But the callVB line does need to be indented, and both lines need to prcede everything else in your script. I do not believe the system path is an issue as I have successfully used:
    [-] dll "C:\Projects\Dll\Autologger.dll"
    [ ] int WriteMessage (STRING sDir, STRING sFile, STRING sMessage, STRING sTimestamp)

  6. #6
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    Try this
    [-] dll "C:\Program Files\Common Files\Mercury Interactive\SilkPlugin\Trail.dll"
    [ ]void callVB(String MyStr)

    I am assumuning CalVB does not return

  7. #7
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: use dll in silk

    rayyogi, how about posting the error you are recieving. That will tell us if silk can at least find the dll or if the problem is with your external method declaration line.
    Ryan McCullough
    RightNow Tech. Inc.

 

 

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 09:17 AM.

Copyright BetaSoft Inc.