Jump to content
Software FX Community

ChartFX 98 Licensing Problem


User (Legacy)

Recommended Posts

First of all, apologies if this is the wrong group.

I purchased ChartFX98 in 1999 for use in a project and was pleased

with the performance. Recently I needed a chart control for an

experimental projec and decided to use ChartFX. Everything works well

except on client machines, creation of the control fails because of

lack of runtime license even though I have followed the documentation

to the letter.

In order to narrow the problem down I refactored my code to create the

control dynamically, the chart control creation still fails even with

the license string passed explicitly:

// Create Control Window

// license string from ChartFX about box

"aaaamhcamhcannrpnxrikovpkkupmuwinnqplvnonntinuioiw";

WCHAR pwchLicenseKey[] =

{

0x0061, 0x0061, 0x0061, 0x0061, 0x006d, 0x0068,

0x0063, 0x0061, 0x006d, 0x0068,

0x0063, 0x0061, 0x006e, 0x006e, 0x0072, 0x0070,

0x006e, 0x0078, 0x0072, 0x0069,

0x006b, 0x006f, 0x0076, 0x0070, 0x006b, 0x006b,

0x0075, 0x0070, 0x006d, 0x0075,

0x0077, 0x0069, 0x006e, 0x006e, 0x0071, 0x0070,

0x006c, 0x0076, 0x006e, 0x006f,

0x006e, 0x006e, 0x0074, 0x0069, 0x006e, 0x0075,

0x0069, 0x006f, 0x0069, 0x0077

};

BSTR bstrLicense = ::SysAllocStringLen(pwchLicenseKey,

sizeof(pwchLicenseKey)/sizeof(WCHAR));

// fails here, success=false

bool success=FALSE!=m_ChartFX.CreateControl(__uuidof(ChartFX),

NULL, WS_VISIBLE, rc, this, IDC_CHART1, NULL, NULL, bstrLicense);

::SysFreeString(bstrLicense);

I copied the license string directly from the about box. I did notice

one peculiarity, when selecting the license string I nocticed an extra

character became visible, it looks like the dialog is truncating the

string. I don't have the original license card so there is no way to

validate the string.

Help would be very much appreciated, I have been frustrated by this

for a week.

Link to comment
Share on other sites

First of all, apologies if this is the wrong group.

I purchased ChartFX98 in 1999 for use in a project and was pleased

with the performance. Recently I needed a chart control for an

experimental projec and decided to use ChartFX. Everything works well

except on client machines, creation of the control fails because of

lack of runtime license even though I have followed the documentation

to the letter.

In order to narrow the problem down I refactored my code to create the

control dynamically, the chart control creation still fails even with

the license string passed explicitly:

// Create Control Window

// license string from ChartFX about box

"aaaamhcamhcannrpnxrikovpkkupmuwinnqplvnonntinuioiw";

WCHAR pwchLicenseKey[] =

{

0x0061, 0x0061, 0x0061, 0x0061, 0x006d, 0x0068,

0x0063, 0x0061, 0x006d, 0x0068,

0x0063, 0x0061, 0x006e, 0x006e, 0x0072, 0x0070,

0x006e, 0x0078, 0x0072, 0x0069,

0x006b, 0x006f, 0x0076, 0x0070, 0x006b, 0x006b,

0x0075, 0x0070, 0x006d, 0x0075,

0x0077, 0x0069, 0x006e, 0x006e, 0x0071, 0x0070,

0x006c, 0x0076, 0x006e, 0x006f,

0x006e, 0x006e, 0x0074, 0x0069, 0x006e, 0x0075,

0x0069, 0x006f, 0x0069, 0x0077

};

BSTR bstrLicense = ::SysAllocStringLen(pwchLicenseKey,

sizeof(pwchLicenseKey)/sizeof(WCHAR));

// fails here, success=false

bool success=FALSE!=m_ChartFX.CreateControl(__uuidof(ChartFX),

NULL, WS_VISIBLE, rc, this, IDC_CHART1, NULL, NULL, bstrLicense);

::SysFreeString(bstrLicense);

I copied the license string directly from the about box. I did notice

one peculiarity, when selecting the license string I nocticed an extra

character became visible, it looks like the dialog is truncating the

string. I don't have the original license card so there is no way to

validate the string.

Help would be very much appreciated, I have been frustrated by this

for a week.

Link to comment
Share on other sites

On Fri, 18 Nov 2005 18:04:30 -0500, "SoftwareFX Support"

<noreply@softwarefx.com> wrote:

>I don't see a '\0' at the end of pwchLicenseKey.

>

>You can assign it like this to avoid having to use HEX numbers:

>

>WCHAR *license = L"aaaamhcamhcannrpnxrikovpkkupmuwinnqplvnonntinuioiw";

>

>(notice the "L" in front of the string).

I fixed the problem. As I mentioned earlier, the about box dialog

contains the key, however, it truncates the last character; this is

apparent when the text is selected because, for some peculiar reason,

the last character shows itself. When I added the last character it

worked. Incidientally, the character was ':' which I find very odd

because the rest are alphas.

Link to comment
Share on other sites

On Fri, 18 Nov 2005 18:04:30 -0500, "SoftwareFX Support"

<noreply@softwarefx.com> wrote:

>I don't see a '\0' at the end of pwchLicenseKey.

>

>You can assign it like this to avoid having to use HEX numbers:

>

>WCHAR *license = L"aaaamhcamhcannrpnxrikovpkkupmuwinnqplvnonntinuioiw";

>

>(notice the "L" in front of the string).

I fixed the problem. As I mentioned earlier, the about box dialog

contains the key, however, it truncates the last character; this is

apparent when the text is selected because, for some peculiar reason,

the last character shows itself. When I added the last character it

worked. Incidientally, the character was ':' which I find very odd

because the rest are alphas.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...