abcd_1234_ Posted April 20, 2007 Report Share Posted April 20, 2007 Hi there,We are building a VC#.NET dll for providing charts in Our VC++ MFC application (WinXP OS)This dll uses the ChartFX.WinForms.dll for generating the charts. As per the documentation titled:"Q6101010. How to manually add a Chart FX license to an executable"At:http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/610/1/010.htm We tried the procedure described stepwise and encountering the below error.Note: For the step 2 we are using: ChartFX.WinForms For the step 4 we are using: lc /target:OurApp.exe /complist:Licenses.licx /i:ChartFX.WinForms.dll All the above files are in the same folderError: Processing complist 'Licenses.licx'... Licenses.licx (1) : error LC0003 : Unable to resolve type 'ChartFX.WinForms' Looks like the lc command is unable to resolve ChartFX types. We have ChartFX for VS 2005 installed on this machine.Is there anything we are missing or what else should we ensure so this works..Any help is appreciated.ThanksTejo Link to comment Share on other sites More sharing options...
Frank Posted April 20, 2007 Report Share Posted April 20, 2007 On Step 2, you need the class name too: ChartFX.WinForms.Chart Link to comment Share on other sites More sharing options...
abcd_1234_ Posted April 20, 2007 Author Report Share Posted April 20, 2007 Frank, Thanks for the reply. Tried using ChartFX.WinForms.Chart in the Licenses.licx file.. but the same error remains.. Tejo Link to comment Share on other sites More sharing options...
Frank Posted April 20, 2007 Report Share Posted April 20, 2007 Please attach your .licx file and the exact command you are running. Everything works fine on my end. Link to comment Share on other sites More sharing options...
abcd_1234_ Posted April 23, 2007 Author Report Share Posted April 23, 2007 Frank, Please find the attached licenses file (As a .licx file would not upload to this post, I added the .txt to it). Here is the command I'm using: lc /target:OurApp.exe /complist:Licenses.licx /i:ChartFX.WinForms.dll Just to be curious! also tried the command on the DLL (which calls ChartFX) that our application uses. lc /target:OurDLL.dll /complist:Licenses.licx /i:ChartFX.WinForms.dll All files in the same folder. But always get the error: Licenses.licx(1): error LC0003: Unable to resolve type 'ChartFX.WinForms.Chart' Thanks for any help Tejo Link to comment Share on other sites More sharing options...
Frank Posted April 23, 2007 Report Share Posted April 23, 2007 Your licx file must include the DLL name as well as the class name. From the article: SoftwareFX.ChartFX.Chart, ChartFX In the case of Chart FX 7.0 this translates to: ChartFX.WinForms.Chart,ChartFX.WinForms Link to comment Share on other sites More sharing options...
abcd_1234_ Posted April 23, 2007 Author Report Share Posted April 23, 2007 Trying to see if one namespace-dll combo works before we add the others that we use. The other namespaces that we use are: ChartFX.WinForms ChartFX.WinForms ChartFX.WinForms.DataProviders ChartFX.WinForms.DataProviders ChartFX.WinForms.Statistical ChartFX.WinForms.StatisticalGuess the corresponding dlls are: ChartFX.WinForms.dll, ChartFX.WinForms.Base.dll ChartFX.WinForms.Data.dll ChartFX.WinForms.Data.dll ChartFX.WinForms.Statistical.dll ChartFX.WinForms.Statistical.dll Link to comment Share on other sites More sharing options...
abcd_1234_ Posted April 23, 2007 Author Report Share Posted April 23, 2007 Thanks Frank. It works! As we are using a different version of CFX from that described in the article, we weren't clear what the 'ChartFX' in the .licx was for. But now it makes sense. (Class Name, Dll Name) w/ (Dll File Name) Thanks again Make it a great day Tejo Link to comment Share on other sites More sharing options...
Frank Posted April 23, 2007 Report Share Posted April 23, 2007 Great ! BTW only the Chart Class needs an entry in the licx, file. None of the other classes are licensed. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.