Jump to content
Software FX Community

VC++ and CFX98 COM DLL without user interface


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...