bwinkler
13 years agoOccasional Contributor
C# plug-in help
The problem:
We are using MFC Ribbon controls in one of our applications. Ideally I would like to map the ribbon controls but we have not been able to do so yet. The only way I found to be able to get deeper into the MFC Ribbon is to navigate and get values from the controls by using the wItem properties exposed by the master Ribbon object.
Because of this I have a very large number of strings to keep track of and since it is in display text they most likley will change over time. I would like to create a string library object so that my code is not using so many hard-coded strings. In Jscript I can accomplish this by:
var __Strings = new Object();
__Strings.Tabs = new Object();
__Strings.Tabs.Acquisition = new Object();
__Strings.Tabs.Acquisition.Name = "Acquisition";
__Strings.Tabs.Acquisition.Device = new Object();
__Strings.Tabs.Acquisition.Device.Name = "Device";
......
However I get no Intellisense, so it is generally laborious.
What I am trying to do:
Create a custom plug-in to house this object so I can get Intellisense, update the strings as they change and be able to share this across projects.
In attempting to learn how to create a plugin for Test Complete using C#,
I installed the SDK and was looking through the WPF sample and I could not install it into Test Complete.
Things I done thus far:
I am using Visual Studio 2010.
I changed the project to use .net 3 so I can compile. (tried .net 3, 3.5 and 4)
In AssemblyInfo.cs I changed AssemblyVersion to be version 8.0.0.0 (the Major version of Test Complete we are using). (I don't think this is the right place to update the version but was the only spot I could find.)
After building it does not produce a .pls file but builds a .dll. (I try to install the extension by browsing to the .dll and get the error: "Cannot obtain information about the plug-in(s) from the (file Location).")
I received the same error when I tried:
1. Renaming the.dll file to .pls
2. Building in both debug and release mode
3. 32 bit and 64 bit. (Program would need to be 32 bit because we run tests on 64 and 32 bit machines.)
What do I need to do to solve my problem? There seem to be pieces missing from the C# example. For instance, the GetPluginRegistrator mentioned in the C++ and Delphi plug-in documentation is absent from the C# example provided in the SDK.
If the solution is through a plug-in, what do I need to do to be able to get the sample to install in Test Complete?
Thank you for your help.