Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing controls when in resource manager of visual studio 2005

I'm trying to port an application to Visual Studio 2005.  It uses GPIB and Serial controls. When I double-click on the
dialog to bring it up to look at the controls, an error is displayed saying that the controls could not be instantiated, reinstall or register the
controls and try again.  I have installed and have Measurement Studio in my Visual Studio 2005.  I know this is probably vague,
but ANY help would be greatly appreciated!

0 Kudos
Message 1 of 9
(10,194 Views)

Hi KBr,

I assume you were using the CWGPIB and CWSerial ActiveX controls right? What version of Visual Studio were you previously using (VS 6.0, .NET 2003)? Also what language were you programming in (C++, VB, etc) and what language are you in now (C++, VB.NET, C#)?

Also what version of Measurement Studio did you purchase (Standard, Professional or Enterprise)? The reason I ask is that those CWGPIB and CWSerial ActiveX controls are legacy components and you will need the Measurement Studio for Visual Studio 6.0 support to have these components. This CD only comes with the Professional and Enterprise versions of Measurement Studio.

My guess is that you only have the Standard Edition which doesn't come with the VS 6 support.

If you are programming in .NET (C#, VB.NET), I highly recommend that you use the native .NET VISA and GPIB class libraries with Visual Basic .NET rather than the ActiveX controls. The .NET class libraries are more full featured, exhibit better performance, and should be much more natural to use in VB.NET or C# than the ActiveX controls.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 9
(10,184 Views)
Johnathan,

Thank you so much for responding so quickly!!

I have Measurement Studio Enterprise Edition Version 8.1.1.377.
The project that is not running correctly because of the controls you noted is a visual c++ project
that was on ANOTHER computer that was very old and crashed.  It looks like it was using
Visual C++ 6.  I ONLY have Visual Studio 2005 on my computer (we do not have disks for Visual Studio 6,
so i could only install visual studio 2005 when i started here). 

I tried to instal the Visual Studio 6 support on my computer, but it will not install because i do not have
visual studio 6...

Is there a way to get those legacy controls or are there substitutes for those controls that are
supported in visual studio 2005??

Again, ANY help is GREATLY appreciated!

🙂


0 Kudos
Message 3 of 9
(10,171 Views)

Hi KBr,

You can actually install the Measurement Studio support for Visual Basic 6.0 without having Visual Basic 6.0 installed on your system. This will install all the legacy ActiveX controls, including the CWSerial and CWGPIB controls and they will be registered properly. So just run the Measurement Studio for Visual Studio 6.0 installer, deselect the "Measurement Studio for Visual C++" option (though it should have a red X next to it by default since we recognize C++ isn't installed) and make sure the "Measurement Studio for Visual Basic" option is selected.

Then you should be good to go.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 9
(10,162 Views)

Hi KBr,

Just out of curiosity, did you uncheck the Red X next to the Measurement Studio for Visual C++ option when you tried to install? I am guessing that is what you did and then when trying to install, it said it couldn't find Visual C++?

Thanks

Jonathan N.
National Instruments
0 Kudos
Message 5 of 9
(10,156 Views)
Hi Johnathan,

Yes, i unchecked the red X for c++ and that must be why i couldn't install...i just did
as you said, keep the X there and installed....

Now I can see the controls on the dialog..
but now i try to build, debug or release version and i get
cannot find "teapi.dll".  (is an import in the niincludes.h file....)

I'm sorry to keep bothering you, i was given this "port" knowing nothing about National Instruments Labview
or what the application does, just told to get it to work...thank you again for any insight or guesses you may
have why i do not have this teapi.dll......???

I did a search on my computer and i don't have it.....

8-0

0 Kudos
Message 6 of 9
(10,154 Views)
Hi KBr,
 
The teapi.dll file is part of our NI TestStand product and that DLL represents the TestStand OLE API Library. If you don't have TestStand installed, then of course you won't have this file. Check out the Why Do I Get Compiler Errors When I Add the Visual C++ TestStand Support Class Library to My Measure... KnowledgeBase.
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 7 of 9
(10,150 Views)

Thank you!  I took out the Test Stand from the project and it built!!

Now, I copied the .exe to the computer it is to be run on and now i get the following error:

"An unsuported operation was attempted".

I do not know what is on this computer....it is not mine.  Do you have any idea what I need over
there to get this to run??

AGAIN, thanks for your help!
K

0 Kudos
Message 8 of 9
(10,148 Views)

Hi KBr,

You can't just copy over an exe to another computer and expect it to run without moving over all of its dependencies (dlls, ocx's, etc).  It’s always best to create a Visual Studio installer that will hopefully grab all the required components that the exe needs.  For distributing Measurement Studio applications, refer to the Deploying Measurement Studio Applications help topic in the NI Measurement Studio Help.  This talks about all the required files and merge modules needed.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 9 of 9
(10,137 Views)