rafael.reimer Posted December 7, 2007 Report Share Posted December 7, 2007 Hi. I did an application that uses chat fx COM components. In the machine that I had intalled chart fx it works fine, but in other machines that I just register chart fx dlls it does not work, it ask me for the license. What I need to do to the application works fine in the machines without a chart fx license ? Thanks, Rafael Reimer. Quote Link to comment Share on other sites More sharing options...
maximop Posted December 7, 2007 Report Share Posted December 7, 2007 You probably need a license string that needs to be embedded with your application. When developing with Visual C++, this is usually the case since the license is not embedded on the form of the executable. Please contact support with your application details and they will gladly provide you with the license string needed. Please provide them with the product serial # as well as the company and contact information. Quote Link to comment Share on other sites More sharing options...
rafael.reimer Posted December 7, 2007 Author Report Share Posted December 7, 2007 Hi. How can I contact the support for this purpose ? By mail ? This string that I need provide is the license string ? What methods I need to run to set this string ? Thanks, Rafael Reimer. Quote Link to comment Share on other sites More sharing options...
maximop Posted December 7, 2007 Report Share Posted December 7, 2007 You need to send an e-mail to our Support Team to support@softwarefx.com. The string you need is the license string needed to run ChartFX on your application. This string is set through a static SetLicenseString() function. After adding your license string, you will need to recompile your application and re-deploy it. Quote Link to comment Share on other sites More sharing options...
rafael.reimer Posted December 7, 2007 Author Report Share Posted December 7, 2007 What dll implement this static function SetLicenseString ? Quote Link to comment Share on other sites More sharing options...
rafael.reimer Posted December 10, 2007 Author Report Share Posted December 10, 2007 Hi. I sent an e-mail last Friday and until now support do not answer me. Is this license string the same used during installation process ?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Thanks, Rafael. Quote Link to comment Share on other sites More sharing options...
maximop Posted December 10, 2007 Report Share Posted December 10, 2007 I apologize for any delays but our server was temporarily down for maintenance and we did not received e-mails until early today. All incidents are being updated and you should receive a reply shortly. Quote Link to comment Share on other sites More sharing options...
rafael.reimer Posted December 11, 2007 Author Report Share Posted December 11, 2007 I did receive the license string but it still not working. I put the exactly string into the SetLicenseString method but it did not work. Am I doing something wrong ? Thanks, Rafael. Quote Link to comment Share on other sites More sharing options...
maximop Posted December 11, 2007 Report Share Posted December 11, 2007 The incident you opened with support has been answered but for your convenience and the convenience of others that may see this thread, I am pasting the reply here: When using the CreateControl() function, please note that the last parameter takes the license string that we provided. Alternatively, when calling the SetLicenseString() function, please note that you need to do so after initializing the chart object. You can do something like this: //Create Window Control m_chartWnd.CreateControl(__uuidof(Cfx62::Chart), NULL, WS_VISIBLE, rc, this, IDC_CHART1, NULL, NULL, NULL /* License String goes here */); // Attach Window Control to Chart Pointer m_chartPtr = m_chartWnd.GetControlUnknown(); BSTR bstrLicense = ::SysAllocString(L"LicenseStringGoesHere"); m_chartPtr->SetLicenseString(bstrLicense); Make sure that you do this on the machine where ChartFX is installed, and that you recompile the application before re-deploying it. Quote Link to comment Share on other sites More sharing options...
rafael.reimer Posted December 12, 2007 Author Report Share Posted December 12, 2007 I am programming in Progress and I do not know how can I generate the correct string to pass to SetLicenseString. Is there some dll ou windows API that generate this BSTR string ? Thanks, Rafael. Quote Link to comment Share on other sites More sharing options...
maximop Posted December 12, 2007 Report Share Posted December 12, 2007 I am not sure why calling SetLicenseString is not working for you. What is the error that you are receiving? Is the error happening at compile-time or at runtime? In any case, try doing the following: m_chartPtr->SetLicenseString(L"licensestring"); Calling SetLicenseString as shown above works as expected. Another way of using the license string will be to set the license string as the last parameter of the CreateControl() function. If you are still experiencing any problems, please provide me with a screenshot of the issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.