Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Modal dialog including a NI::CNiGraph

I am developing a VC++(Visual studio 2008, Window 7, 32bit) dll server project including Dialog with Measurement Studio (ver. 2009, standard ed.) ActiveX.

 __int32 Test ()
{
 AFX_MANAGE_STATE(AfxGetStaticModuleState());

 COceanTestDlg pDlg;
 pDlg.DoModal ();

 return 0;
}

 

Above code is a test function in dll and COceanTestDlg has a NI::CNiGraph member.

pDlg.DoModal () return -1 and it does not display dialog window.

 

If I remove NI::CNiGraph object from COceanTestDlg, it works well.

 

Any help?

0 Kudos
Message 1 of 4
(5,877 Views)

 

 

0 Kudos
Message 2 of 4
(5,818 Views)

This is my exact problem as well, any resolution?

0 Kudos
Message 3 of 4
(5,284 Views)