User (Legacy) Posted February 19, 2002 Report Share Posted February 19, 2002 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 More sharing options...
Software FX Posted February 19, 2002 Report Share Posted February 19, 2002 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 More sharing options...
User (Legacy) Posted February 19, 2002 Author Report Share Posted February 19, 2002 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.