NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing MFC Operator Interface

Solved!
Go to solution

Hi,

 

Recently, I've coded an application that uses the TestStand API to open and edit sequence files successfully.

 

Now, I want to edit the simple operator interface example employing MFC. However, even if the project compiles and executes correctly, I'm not able to edit the UI.

 

When I try to open the "IDD_TESTEXEC_DIALOG" from Visual Studio, I get the following error popup window:


"19 ActiveX controls could not be instantiated.

Reinstall or register the controls and try again."

 

I tried opening the resource file with Notepad and searched for the UI control's ID in the register inside HKEY_CLASSES_ROOT/CLSID.
The IDs do not exist in my registry.

Do I need something extra to install? Maybe a Visual Studio addon?

Thanks

0 Kudos
Message 1 of 4
(856 Views)

I also tried the C# example, and I get the following trying to open the CS form:

image.png

 

And when I try to drag a component from the toolbox to the form:

developer123_0-1688362081320.png

 

And when I double click the component in VS:

developer123_1-1688362129771.png


Does anyone have any clue about the issue?

0 Kudos
Message 2 of 4
(787 Views)
Solution
Accepted by topic author developer123

Hi,bro:

      I don't understand C++and MFC

 

      However, I know some information about C #. May I ask which version of the Teststand and Visual Studio you are using?

 

      Do not use the latest Visual Studio to develop with Teststand, such as developing Teststand 2017. You can only use Visual Studio 2017 at most. NI mentioned that the latest versions of Visual Studio (vs2019, vs2022...) have incomplete testing and may have unknown issues.

 

       You can try using Visual Studio 2015 or 2017 to open the example program for Teststand 2017. If your teststand is an older version, you will also need to use an older version of Visual Studio accordingly. For specific information, you can refer to NI's release instructions for the corresponding version.

0 Kudos
Message 3 of 4
(767 Views)

LOL. You are very right!

TestStand 2019 's UI API is not compatible with Visual Studio 2022. I installed VS 2017 and dialogs open normally.

It would be nice to add this info: Compatibility TestSTand - Visual Studio to the API documentation😞.

Thanks for the tip Angus

0 Kudos
Message 4 of 4
(756 Views)