Jump to content
Software FX Community

CFX 6.2 COM version: Any C++ sample?


User (Legacy)

Recommended Posts

Hi,

We use Chart FX Client Server 5 (COM version)

in our application -- written in C++ (VC++ 7.1 compiler).

I would like to evaluate the COM version of Chart FX

Client Server 6.2. I know of samples related to C++

and to CFX 5.

Is there any similar place related to CFX 6.2?

What should be #imported, how the instance

should be created... Where to start?

Thanks,

Petr

--

Petr Prikryl (prikrylp at skil dot cz)

Link to comment
Share on other sites

Hi,

We use Chart FX Client Server 5 (COM version)

in our application -- written in C++ (VC++ 7.1 compiler).

I would like to evaluate the COM version of Chart FX

Client Server 6.2. I know of samples related to C++

and to CFX 5.

Is there any similar place related to CFX 6.2?

What should be #imported, how the instance

should be created... Where to start?

Thanks,

Petr

--

Petr Prikryl (prikrylp at skil dot cz)

Link to comment
Share on other sites

I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very basic 

sample butshould help you get started. I tried to test some of the API such

as collections, events, etc. In principle it is very similar to what you

have done in the past using ChartFX 5.

Important parts:

>> How to Import (in stdafx.h)

#import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

rename("min","minX") rename("max","maxX")

exclude("_CollectionBase","_Component","CollectionBase","Component")

Note that in order to avoid hardcoding paths in my code, I am using <...>

but then you need to add the folder where the ChartFX dlls are located to

Tools - Options - Projects - VC++ Directories - Executable Files

Also note that I am excluding some entries, this is necessary if you have

later import other ChartFX dlls

>> How to create

If you want design time, you should be able to insert the control inside a

dialog, if you want to create a chart dynamically I am using CreateControl.

I am not embedding the license info, I will post an updated sample (or

directions) to handle that later.

m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

m_chartPtr = m_chartWnd.GetControlUnknown();

Hope this helps

JC

Software FX Support

"Petr Prikryl" <prikrylp at skil dot cz> wrote in message

news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> Hi,

>

> We use Chart FX Client Server 5 (COM version)

> in our application -- written in C++ (VC++ 7.1 compiler).

>

> I would like to evaluate the COM version of Chart FX

> Client Server 6.2. I know of samples related to C++

> and to CFX 5.

>

> Is there any similar place related to CFX 6.2?

> What should be #imported, how the instance

> should be created... Where to start?

>

> Thanks,

> Petr

> --

> Petr Prikryl (prikrylp at skil dot cz)

>

>

Link to comment
Share on other sites

I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very basic 

sample butshould help you get started. I tried to test some of the API such

as collections, events, etc. In principle it is very similar to what you

have done in the past using ChartFX 5.

Important parts:

>> How to Import (in stdafx.h)

#import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

rename("min","minX") rename("max","maxX")

exclude("_CollectionBase","_Component","CollectionBase","Component")

Note that in order to avoid hardcoding paths in my code, I am using <...>

but then you need to add the folder where the ChartFX dlls are located to

Tools - Options - Projects - VC++ Directories - Executable Files

Also note that I am excluding some entries, this is necessary if you have

later import other ChartFX dlls

>> How to create

If you want design time, you should be able to insert the control inside a

dialog, if you want to create a chart dynamically I am using CreateControl.

I am not embedding the license info, I will post an updated sample (or

directions) to handle that later.

m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

m_chartPtr = m_chartWnd.GetControlUnknown();

Hope this helps

JC

Software FX Support

"Petr Prikryl" <prikrylp at skil dot cz> wrote in message

news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> Hi,

>

> We use Chart FX Client Server 5 (COM version)

> in our application -- written in C++ (VC++ 7.1 compiler).

>

> I would like to evaluate the COM version of Chart FX

> Client Server 6.2. I know of samples related to C++

> and to CFX 5.

>

> Is there any similar place related to CFX 6.2?

> What should be #imported, how the instance

> should be created... Where to start?

>

> Thanks,

> Petr

> --

> Petr Prikryl (prikrylp at skil dot cz)

>

>

Link to comment
Share on other sites

Thanks for the sample and the information below.

However, there are some problems with compilation.

I am attaching the zipped BuildLog.htm that shows

the errors.

I did not tried hard to search for the problems

because I have got another sample via mysupport.softwarefx.com,

incident 26787. That example compiles fine.

Thanks anyway. The explanations are valuable.

Petr

"JuanC" <none@none.com> wrote in message

news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

basic

> sample butshould help you get started. I tried to test some of the API

such

> as collections, events, etc. In principle it is very similar to what you

> have done in the past using ChartFX 5.

>

> Important parts:

>

> >> How to Import (in stdafx.h)

> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

> rename("min","minX") rename("max","maxX")

> exclude("_CollectionBase","_Component","CollectionBase","Component")

>

> Note that in order to avoid hardcoding paths in my code, I am using <...>

> but then you need to add the folder where the ChartFX dlls are located to

> Tools - Options - Projects - VC++ Directories - Executable Files

>

> Also note that I am excluding some entries, this is necessary if you have

> later import other ChartFX dlls

>

> >> How to create

> If you want design time, you should be able to insert the control inside a

> dialog, if you want to create a chart dynamically I am using

CreateControl.

> I am not embedding the license info, I will post an updated sample (or

> directions) to handle that later.

>

> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>

> m_chartPtr = m_chartWnd.GetControlUnknown();

>

> Hope this helps

>

> JC

> Software FX Support

>

> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> > Hi,

> >

> > We use Chart FX Client Server 5 (COM version)

> > in our application -- written in C++ (VC++ 7.1 compiler).

> >

> > I would like to evaluate the COM version of Chart FX

> > Client Server 6.2. I know of samples related to C++

> > and to CFX 5.

> >

> > Is there any similar place related to CFX 6.2?

> > What should be #imported, how the instance

> > should be created... Where to start?

> >

> > Thanks,

> > Petr

> > --

> > Petr Prikryl (prikrylp at skil dot cz)

> >

> >

>

>

>

Link to comment
Share on other sites

Thanks for the sample and the information below.

However, there are some problems with compilation.

I am attaching the zipped BuildLog.htm that shows

the errors.

I did not tried hard to search for the problems

because I have got another sample via mysupport.softwarefx.com,

incident 26787. That example compiles fine.

Thanks anyway. The explanations are valuable.

Petr

"JuanC" <none@none.com> wrote in message

news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

basic

> sample butshould help you get started. I tried to test some of the API

such

> as collections, events, etc. In principle it is very similar to what you

> have done in the past using ChartFX 5.

>

> Important parts:

>

> >> How to Import (in stdafx.h)

> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

> rename("min","minX") rename("max","maxX")

> exclude("_CollectionBase","_Component","CollectionBase","Component")

>

> Note that in order to avoid hardcoding paths in my code, I am using <...>

> but then you need to add the folder where the ChartFX dlls are located to

> Tools - Options - Projects - VC++ Directories - Executable Files

>

> Also note that I am excluding some entries, this is necessary if you have

> later import other ChartFX dlls

>

> >> How to create

> If you want design time, you should be able to insert the control inside a

> dialog, if you want to create a chart dynamically I am using

CreateControl.

> I am not embedding the license info, I will post an updated sample (or

> directions) to handle that later.

>

> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>

> m_chartPtr = m_chartWnd.GetControlUnknown();

>

> Hope this helps

>

> JC

> Software FX Support

>

> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> > Hi,

> >

> > We use Chart FX Client Server 5 (COM version)

> > in our application -- written in C++ (VC++ 7.1 compiler).

> >

> > I would like to evaluate the COM version of Chart FX

> > Client Server 6.2. I know of samples related to C++

> > and to CFX 5.

> >

> > Is there any similar place related to CFX 6.2?

> > What should be #imported, how the instance

> > should be created... Where to start?

> >

> > Thanks,

> > Petr

> > --

> > Petr Prikryl (prikrylp at skil dot cz)

> >

> >

>

>

>

Link to comment
Share on other sites

The errors are caused because ReleaseGraphics, Paint, etc are included in 

newer builds but not on the one you are using now. We have fixed some issues

and added some methods based on customer feedback. Contact support at

softwarefx dot com if you want access to our current hotfix.

--

JC

Software FX Support

"Petr Prikryl" <prikrylp at skil dot cz> wrote in message

news:5W$JtqAwFHA.1764@webserver3.softwarefx.com...

> Thanks for the sample and the information below.

> However, there are some problems with compilation.

> I am attaching the zipped BuildLog.htm that shows

> the errors.

>

> I did not tried hard to search for the problems

> because I have got another sample via mysupport.softwarefx.com,

> incident 26787. That example compiles fine.

>

> Thanks anyway. The explanations are valuable.

>

> Petr

>

> "JuanC" <none@none.com> wrote in message

> news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

>> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

> basic

>> sample butshould help you get started. I tried to test some of the API

> such

>> as collections, events, etc. In principle it is very similar to what you

>> have done in the past using ChartFX 5.

>>

>> Important parts:

>>

>> >> How to Import (in stdafx.h)

>> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

>> rename("min","minX") rename("max","maxX")

>> exclude("_CollectionBase","_Component","CollectionBase","Component")

>>

>> Note that in order to avoid hardcoding paths in my code, I am using <...>

>> but then you need to add the folder where the ChartFX dlls are located to

>> Tools - Options - Projects - VC++ Directories - Executable Files

>>

>> Also note that I am excluding some entries, this is necessary if you have

>> later import other ChartFX dlls

>>

>> >> How to create

>> If you want design time, you should be able to insert the control inside

>> a

>> dialog, if you want to create a chart dynamically I am using

> CreateControl.

>> I am not embedding the license info, I will post an updated sample (or

>> directions) to handle that later.

>>

>> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

>> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>>

>> m_chartPtr = m_chartWnd.GetControlUnknown();

>>

>> Hope this helps

>>

>> JC

>> Software FX Support

>>

>> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

>> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

>> > Hi,

>> >

>> > We use Chart FX Client Server 5 (COM version)

>> > in our application -- written in C++ (VC++ 7.1 compiler).

>> >

>> > I would like to evaluate the COM version of Chart FX

>> > Client Server 6.2. I know of samples related to C++

>> > and to CFX 5.

>> >

>> > Is there any similar place related to CFX 6.2?

>> > What should be #imported, how the instance

>> > should be created... Where to start?

>> >

>> > Thanks,

>> > Petr

>> > --

>> > Petr Prikryl (prikrylp at skil dot cz)

>> >

>> >

>>

>>

>>

>

>

>

BuildLog.zip

BuildLog.zip

Link to comment
Share on other sites

The errors are caused because ReleaseGraphics, Paint, etc are included in 

newer builds but not on the one you are using now. We have fixed some issues

and added some methods based on customer feedback. Contact support at

softwarefx dot com if you want access to our current hotfix.

--

JC

Software FX Support

"Petr Prikryl" <prikrylp at skil dot cz> wrote in message

news:5W$JtqAwFHA.1764@webserver3.softwarefx.com...

> Thanks for the sample and the information below.

> However, there are some problems with compilation.

> I am attaching the zipped BuildLog.htm that shows

> the errors.

>

> I did not tried hard to search for the problems

> because I have got another sample via mysupport.softwarefx.com,

> incident 26787. That example compiles fine.

>

> Thanks anyway. The explanations are valuable.

>

> Petr

>

> "JuanC" <none@none.com> wrote in message

> news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

>> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

> basic

>> sample butshould help you get started. I tried to test some of the API

> such

>> as collections, events, etc. In principle it is very similar to what you

>> have done in the past using ChartFX 5.

>>

>> Important parts:

>>

>> >> How to Import (in stdafx.h)

>> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

>> rename("min","minX") rename("max","maxX")

>> exclude("_CollectionBase","_Component","CollectionBase","Component")

>>

>> Note that in order to avoid hardcoding paths in my code, I am using <...>

>> but then you need to add the folder where the ChartFX dlls are located to

>> Tools - Options - Projects - VC++ Directories - Executable Files

>>

>> Also note that I am excluding some entries, this is necessary if you have

>> later import other ChartFX dlls

>>

>> >> How to create

>> If you want design time, you should be able to insert the control inside

>> a

>> dialog, if you want to create a chart dynamically I am using

> CreateControl.

>> I am not embedding the license info, I will post an updated sample (or

>> directions) to handle that later.

>>

>> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

>> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>>

>> m_chartPtr = m_chartWnd.GetControlUnknown();

>>

>> Hope this helps

>>

>> JC

>> Software FX Support

>>

>> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

>> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

>> > Hi,

>> >

>> > We use Chart FX Client Server 5 (COM version)

>> > in our application -- written in C++ (VC++ 7.1 compiler).

>> >

>> > I would like to evaluate the COM version of Chart FX

>> > Client Server 6.2. I know of samples related to C++

>> > and to CFX 5.

>> >

>> > Is there any similar place related to CFX 6.2?

>> > What should be #imported, how the instance

>> > should be created... Where to start?

>> >

>> > Thanks,

>> > Petr

>> > --

>> > Petr Prikryl (prikrylp at skil dot cz)

>> >

>> >

>>

>>

>>

>

>

>

Link to comment
Share on other sites

  • 5 months later...

We purchase recently Chart FX 6.2 and I have the same error messages.

This email has been sending on Friday September 23 on 2005.

In you email you mention current hotfix.

Do you mean run?

File Name:

CfxCS62ServicePack.zip

Date:

2/8/2006

Version:

6.2.2229.30687

"JuanC" <none@none.com> wrote in message

news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

basic

> sample butshould help you get started. I tried to test some of the API

such

> as collections, events, etc. In principle it is very similar to what you

> have done in the past using ChartFX 5.

>

> Important parts:

>

> >> How to Import (in stdafx.h)

> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

> rename("min","minX") rename("max","maxX")

> exclude("_CollectionBase","_Component","CollectionBase","Component")

>

> Note that in order to avoid hardcoding paths in my code, I am using <...>

> but then you need to add the folder where the ChartFX dlls are located to

> Tools - Options - Projects - VC++ Directories - Executable Files

>

> Also note that I am excluding some entries, this is necessary if you have

> later import other ChartFX dlls

>

> >> How to create

> If you want design time, you should be able to insert the control inside a

> dialog, if you want to create a chart dynamically I am using

CreateControl.

> I am not embedding the license info, I will post an updated sample (or

> directions) to handle that later.

>

> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>

> m_chartPtr = m_chartWnd.GetControlUnknown();

>

> Hope this helps

>

> JC

> Software FX Support

>

> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> > Hi,

> >

> > We use Chart FX Client Server 5 (COM version)

> > in our application -- written in C++ (VC++ 7.1 compiler).

> >

> > I would like to evaluate the COM version of Chart FX

> > Client Server 6.2. I know of samples related to C++

> > and to CFX 5.

> >

> > Is there any similar place related to CFX 6.2?

> > What should be #imported, how the instance

> > should be created... Where to start?

> >

> > Thanks,

> > Petr

> > --

> > Petr Prikryl (prikrylp at skil dot cz)

> >

> >

>

>

>

Link to comment
Share on other sites

We purchase recently Chart FX 6.2 and I have the same error messages.

This email has been sending on Friday September 23 on 2005.

In you email you mention current hotfix.

Do you mean run?

File Name:

CfxCS62ServicePack.zip

Date:

2/8/2006

Version:

6.2.2229.30687

"JuanC" <none@none.com> wrote in message

news:XJH8WeuvFHA.1764@webserver3.softwarefx.com...

> I am attaching an MFC (VC 7.1) sample that uses ChartFX. It is a very

basic

> sample butshould help you get started. I tried to test some of the API

such

> as collections, events, etc. In principle it is very similar to what you

> have done in the past using ChartFX 5.

>

> Important parts:

>

> >> How to Import (in stdafx.h)

> #import <ChartFX.ClientServer.core.dll> rename_namespace("Cfx62")

> rename("min","minX") rename("max","maxX")

> exclude("_CollectionBase","_Component","CollectionBase","Component")

>

> Note that in order to avoid hardcoding paths in my code, I am using <...>

> but then you need to add the folder where the ChartFX dlls are located to

> Tools - Options - Projects - VC++ Directories - Executable Files

>

> Also note that I am excluding some entries, this is necessary if you have

> later import other ChartFX dlls

>

> >> How to create

> If you want design time, you should be able to insert the control inside a

> dialog, if you want to create a chart dynamically I am using

CreateControl.

> I am not embedding the license info, I will post an updated sample (or

> directions) to handle that later.

>

> m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc,

> this, IDC_CHART1,NULL,NULL,NULL /* LICENSE STRING SHOULD GO HERE */ );

>

> m_chartPtr = m_chartWnd.GetControlUnknown();

>

> Hope this helps

>

> JC

> Software FX Support

>

> "Petr Prikryl" <prikrylp at skil dot cz> wrote in message

> news:lf4nGXeuFHA.1040@webserver3.softwarefx.com...

> > Hi,

> >

> > We use Chart FX Client Server 5 (COM version)

> > in our application -- written in C++ (VC++ 7.1 compiler).

> >

> > I would like to evaluate the COM version of Chart FX

> > Client Server 6.2. I know of samples related to C++

> > and to CFX 5.

> >

> > Is there any similar place related to CFX 6.2?

> > What should be #imported, how the instance

> > should be created... Where to start?

> >

> > Thanks,

> > Petr

> > --

> > Petr Prikryl (prikrylp at skil dot cz)

> >

> >

>

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...