Jump to content
Software FX Community

license string


User (Legacy)
 Share

Recommended Posts

Hi,

I'm using ChartFX Client Server DLL version. I have wrote an application in

MS Visual C++.

First question:

My application works fine when license string equals to NULL. But when I

supplied the correct license string, it doesn't work. . I obtained my

license string by running CfxInfo.exe(About ChartFX). And I use it in the

following code:

if

(SUCCEEDED(CoGetClassObject(__uuidof(ChartFX),CLSCTX_INPROC_SERVER,NULL,IID_

IClassFactory2,(LPVOID FAR *) &pFactory2)))

if

(FAILED(pFactory2->CreateInstanceLic(NULL,NULL,__uuidof(IChartFX),g_sLicense

String,(LPVOID FAR *) &m_pChartFX)))

return 0;

pFactory2->Release();

}

m_pChartFX->CreateWnd((long)

hwndParent,IDC_CHARTFX,0,0,500,500,WS_OVERLAPPEDWINDOW|WS_VISIBLE);

m_hwndChartFX = (HWND) m_pChartFX->hWnd;

Second question:

Although everything works fine on my development machine, the program will

not run in other computer. When the application starts and the ChartFX

window is created, the app dies with a "Runtime Error". The Cfx4032.dll and

sfxbar.dll files are registered in other computer. I can't work out what is

going wrong.

Any help will greatly appreciated.

Danqing

Link to comment
Share on other sites

Without the license it will only work in your computer, it will not work in

a computer that doesn't have Chart FX installed. This is what is suppose to

happen.

You need to pass the correct license string, as given by "About Chart FX" as

an OLE string.

It looks like you are not passing the license string correctly as a Double

Byte string, for example, if the About Chart FX gives you:

xaaaaaaaaaaaaaax

you pass:

SysAllocString(L"xaaaaaaaaaaaaaax")

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Thanks, it works now.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:mj2S2YYuBHA.1412@webserver1.softwarefx.com...

> Without the license it will only work in your computer, it will not work

in

> a computer that doesn't have Chart FX installed. This is what is suppose

to

> happen.

>

> You need to pass the correct license string, as given by "About Chart FX"

as

> an OLE string.

>

> It looks like you are not passing the license string correctly as a Double

> Byte string, for example, if the About Chart FX gives you:

>

> xaaaaaaaaaaaaaax

>

> you pass:

>

> SysAllocString(L"xaaaaaaaaaaaaaax")

>

> --

> 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...