Jump to content
Software FX Community

VC++ and CFX98 COM DLL without user interface


User (Legacy)

Recommended Posts

Hello,

I'm using CFX98 COM DLL with VC++ 6.

I want to create a chart and export it as a bitmap

without displaying it.

I can create the chart as follows:

m_pChartFX.CreateInstance(__uuidof(ChartFX));

But when i export it, it exports a 1kb empty bitmap file.

I also tried the sample in the thread

"Sample using VC++ and CFX98 COM DLL"

i can successfully export the chart in that sample

but in that sample chart is attached to a CWnd window.

How to export a chart without attaching to a dialog or window ?

Thanks

Orhan EKSI

oeksi@innova-turk.com

Link to comment
Share on other sites

  • 1 year later...

Chart FX DLL needs to have a window to export to a bitmap, you need to call

the CreateWnd method prior to export, even if the Window is invisible, this

is necessary to give it a size.

Chart FX Internet Server is designed to work without a window to produce

images in the background.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...