Hello,
The constructors for CNi classes are overloaded, and by default, the parameter for CNiInterface::ThreadAccess is set to CNiInterface::MultipleThreadsWithCaching.
You can also pass other constant for CNiInterface::ThreadAccess in the constructor. In this case, you should pass CNiInterface::SingleThread to CNi constructors. Please refer to Measurement Studio Reference for more information. You can do so after dropping the control and creating a member varialbe for your control. If you do not want to drop it on the form, then you'd have to get the licnese information at run time. You do not have to explicitely destroy the controls if you created them using the wizard.
You have to call CoInitialize(or CoInitializeEx), as well as AfxEnableControlContainer() i
n your application.