If you have Measurement Studio and this is not a legacy project with a lot of existing code, you should use ComponentWorks++ instead of the ComponentWorks ActiveX control. ComponentWorks++ contains native C++ classes for doing GPIB and VISA programming. In addition to other benefits, these classes use C++ data types rather than the ActiveX data types that you get with the VC-generated wrappers for the ActiveX controls.
Even if your project is such that you don't want to port all your code to use the C++ classes, there is a CNiVariant class which makes it easier to use any ActiveX control in VisualC++.
One more tip for debugging. In the watch window, follow the name of the BSTR variable with ", su" (no quotes) to see the ASCII characters in the string as you debug
.