Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

using NI controls in a DLL running from a non-MFC application

Hello,
I am developing a DLL library for use with a non-MFC third party application. The DLL I am currently working on displays a MFC dialog, and works fine from the third party app, as long as I don't add any NI Measurement Studio controls. When I add in a CNiGraph control, the dialog window can't be created.
Does anyone have any suggestoins about this?
Thanks,
-Robert
0 Kudos
Message 1 of 2
(3,118 Views)
Hello Robert,

The setup that you have here sounds perfectly valid and should have no errors. The firts thing to check is that you have enabled support for ActiveX in your MFC DLL. When you run the new project wizard one of the options is to enable ActiveX this adds some initialization code to enable the ActiveX container.

You can test this by adding any other ActiveX control to your dll and give it a try. If you get the same error then most likely the ActiveX container is not properly initilized.

Let me know how this goes.

Regards,

Juan Carlos

N.I.
0 Kudos
Message 2 of 2
(3,118 Views)