Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

winocc.cpp line 329 - using CWGraph in MFC OCX project

I'm trying to create my own custom ActiveX control for use in a third party application.  My control consists of a dialog window (CDialog derived) that I use for data display.  This works fine, but if I drop a CWGraph control onto my dialog, the control crashes the app with an assert in winocc.cpp Line:329.  Is what I'm attempting possible?  Can anyone tell me why it crashes?  I'm using VS2005.  I've included a dummy project that shows the problem.  I'm still sort of new to VC++ so I may very well have missed something obvious.
 
Thanks-
0 Kudos
Message 1 of 2
(8,646 Views)
Hi codeman,

Have you tried replacing your CWGraph control with any other common Visual Studio controls, like a button.  I don't think that it is the CWGraph that is causing your application to crash.  I think it is some of your code behind the project.  I'd like to see if we can verify the operation with a different kind of control.
Regards,


Marty H.
National Instruments
0 Kudos
Message 2 of 2
(8,614 Views)