Forum Discussion

domik's avatar
domik
Occasional Contributor
14 years ago

Writing plugin for application written in MFC

Hello,



We are currently investigating possibility to write plugin for our custom C++ control that is based on StingrayObjectiveGrid version 12.0.1 and derives from CGXGridWnd. From what I have read help TC 8.1 currently supports only Stringray grid version 9.



We have compiled our application as open but unfortunately our control is not recognized. We also tried to map our object to StingrayObjectiveGrid object but TC didn't let us to do that saying that this control is not supported.



So what we are asking is - how could we create support for our grid? Is it possible to write our plugin in C# (just how it was done ind samples) or it need to be written in C++?



Is there any documentation for SDK samples? The C++ samples looks like plugins for TC not for custom controls. The C# examples are clear and we managed to run them.



Currently we are using QTP version 11 that supports our control, so this information is critical for us before we will be thinking about buying TC8.



In attached zip file there is a Sample application with Stringgray grid in DEBUG version. We had problems with it using object spy on it. Application crashes while TC is reading pdb files.



Dominik
  • Hello Dominik,



    TestComplete has extended support for the .NET version of the Stingray Grid control. The C++ version of the control cannot be mapped to the supported .NET version. Also, the current version of TestComplete provides SDK for creating support plug-ins for .NET controls only.



    We have a suggestion to implement support for the control, and your post has increased its rating.



    In the meantime, you can try using the Text Recognition technology to work with the grid. Please see the Text Recognition Technology Support help topic for more information. Also, you can try using keystrokes as it is described in the Common Operations for Grids help topic. For example, you can navigate to a specific grid, copy its value to the clipboard by using the "Ctrl+C" shortcut, and then, read the value from the keyboard to get the cell's value.



    BTW, I was unable to run your application as the archive does not contain the required third-party modules.