SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8

Thread: Hidden class

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Kokan, INDIA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Hidden class

    Hi,

    I have class as customwin which is under static text.
    But when i take the windows decleration of it,it is not shown.
    Also i want to verify the dialogbox on which this hidden customwin is present which has default focus.
    At this place also it is not shown (in verify window dialog)
    I want to verify it has default focus or not

    I have also enabled show all classes in record class dialog

    Thanks in advance,
    Amol
    Thanks,
    Amol

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    What is the technology your application is written on? I mean .NET, Java, Web or some ActiveX components are used. Seems like appropriate extensions should be activated.

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Location
    Kokan, INDIA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    It's written in vc++.
    The customwin is nothing but the third party control (dundas ultimategrid control)
    At some places silk correctly see's it as customwin but at some places it's not.

    I have explored extension kit
    Thanks,
    Amol

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    Seems like you have to create your own functions in external dll to operate with this control and use them. Otherwice, SilkTest can't operate with this especially if this control doesn't have window structure

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Kokan, INDIA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    Hi,

    I have own functions (provided by developer) in external dll to operate with this control but i am confused while associating a particular function within a dll to the particular customwin window .
    I am not using EK.
    It is just a wrapper function
    According to discussion on this forum i have concluded that you can use wrapper functions instead of EK function (please confirm)

    Let me know how to procced without EK with wrapper functions

    Application is VC++
    Customwin is Dundas ultimategridcontrol
    Silktest is 8.1

    I have evaluted other options in silk also but invain

    Please also see my earlier topic

    http://www.sqaforums.com/showflat.ph...e=0#Post370420

    Thanks,
    Amol
    Thanks,
    Amol

  6. #6
    Senior Member
    Join Date
    Dec 2006
    Location
    Kokan, INDIA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    Hi again,

    Further to this i am associating function with the class
    I am passing the window handle of customwin object to my function like below . This is what ultimately EK's (PARGS pArgs) does
    Ex:

    winclass Mygrid:Customwin
    tag "[Afxwnd*]"
    extern int GetNumberRowsWrapper (HWnd hWnd)

    Now code of this function is defined in GridMFC.dll

    So i am again using use statment like

    use "C:\gridMFC.dll"
    int GetNumberRowsWrapper (HWnd hWnd)

    But when i run the code "OpenProject.Mygrid.GetNumberRowsWrapper (handle of OpenProject.Mygrid)"
    it say that function is not registered. I don't know why function is to registered

    Let me know how to get rid of this....or whether i am doing something impposible

    I am not using EK.
    Please help me as i have told to management that EK is not required and i can live with wrapper function

    I have searched forum but for "function is not registered" but always got reference of EK only
    Thanks,
    Amol

  7. #7
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    Instead of
    <font class="small">Code:</font><hr /><pre>
    use "C:\gridMFC.dll"
    int GetNumberRowsWrapper (HWnd hWnd)
    </pre><hr />

    you should declare
    <font class="small">Code:</font><hr /><pre>
    dll "C:\gridMFC.dll"
    int GetNumberRowsWrapper (HWnd hWnd)
    </pre><hr />
    If you want to use external function from dll inside the class you'd better declare required function separately and create method of required class which is only wrapper for this dll-function

  8. #8
    Member
    Join Date
    Dec 1999
    Location
    Rochester, NY, USA
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Hidden class

    The extern declaration will likely cause a problem in your winclass declaration. I would recommend that the method for MyGrid might look like:

    INTEGER GetNumberRows(WINDOW wAGrid optional)
    if (wAGrid == NULL)
    wAGrid = this
    return GetNumberRowsWrapper(wAGrid.hWnd)

    If the function in GridMFC.dll is decorated, you may have to use an alias declartion on your function declaration like alias "GetNumberRowsWrapperW" if it were a Unicode DLL function.

    My apologies for not using UBB codes in this post.
    Andy Bachman

 

 

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 10.71%
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:35 AM.

Copyright BetaSoft Inc.