Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Print graph - SOS

Hi
Please could you give me a sample to show me how to print the CWGraph with the ControlImage function (please don't tell me go and see in the Mesurement studio \ VC directory, cause i don't have it, i want just a little sample)
Thaks a lot
0 Kudos
Message 1 of 4
(4,334 Views)
Here is an example. You really should switch to using our native Visual C++ Tools. If you have the MeasurementStudio\VB directory, but not VC, you just didn't install ComponentWorks++ off the CD. ComponentWorks++ is designed for VC++ with custom C++ classes to interface the ActiveX controls. It will be easier to write your VC++ app with those tools. Regardless, here is a printing example for the Graph with the default VC++ wrapper classes.

Chris
Message 2 of 4
(4,334 Views)
thanks
actually i didn't install ComponentWorks++ because i only have Visual C++ 5.0, and 6.0 is needed
0 Kudos
Message 3 of 4
(4,334 Views)
This example (and the example from the CD) obtain a screen DC handle using ::GetDC and then dispose of it using ::DeleteDC. The Windows Platform SDK documents for DeleteDC say:

"An application must not delete a DC whose handle was obtained by calling the GetDC function. Instead, it must call the ReleaseDC function to free the DC."
0 Kudos
Message 4 of 4
(4,334 Views)