You can dynamically create the CWDSP control by calling the Create method on the MFC-generated wrapper and specifying the license string. See the Knowledge Base article
How Do I Create Controls Dynamically in Visual C++ When Using MFC without the Demo Mode Message Wind... for an example of how to do this.
Also note that Measurement Studio provides native MFC C++ libraries in addition to the ActiveX controls. Take a look at the CNiMath class and see if it has the functionality that you're looking for. CNiMath would be much easier and more natural to use from C++ than using MFC-generated ActiveX control wrappers.
- Elton