Greetings,
We've been using TChart in our product for a couple of years now (a src version with some of our own modifications) no drama.
Recently we implemented nightly automated builds but struck a problem with that version of TChart as it will only compile with Target Platform 'Any CPU' while the rest of our package uses x86 ..
When we try to compile in x86 the compiler completely ignores the Conditional Compilation Symbols (DESIGNATTRIBUTES;VS2005) and we get a screen full of errors.
Can we compile this version of TChart source for x86? is there a way ? (and no we cant upgrade TChart at this point in time).
Cheers Guys ..
Compiling TChart 4.1 2010 src in x86
Re: Compiling TChart 4.1 2010 src in x86
Hello Snarkle,
I have made some test using VS2005, VS2008, VS2010 and VS2012. I have achieved compile the projects in x86 debug mode. To compile it you must do something as next steps:
1.- Click with right button of mouse in the solution of project
2.- Select configuration properties.
3.- Select configuration.
4.- Choose in combobox the x86 for both projects.
*If x86 doesn't appears please, click in Configuration Manger button and go New Platform and in combobox select new and select x86 for both cases.
5.- Clean the solution.
6.- Rebuild the project and run the application. It should be work.
Could you please tell us if previous indications help you to solve the problem?
I hope will helps.
Thanks,
I have made some test using VS2005, VS2008, VS2010 and VS2012. I have achieved compile the projects in x86 debug mode. To compile it you must do something as next steps:
1.- Click with right button of mouse in the solution of project
2.- Select configuration properties.
3.- Select configuration.
4.- Choose in combobox the x86 for both projects.
*If x86 doesn't appears please, click in Configuration Manger button and go New Platform and in combobox select new and select x86 for both cases.
5.- Clean the solution.
6.- Rebuild the project and run the application. It should be work.
Could you please tell us if previous indications help you to solve the problem?
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Compiling TChart 4.1 2010 src in x86
Ok well that's a starting point then .. if it can be done then I have something strange going on with those Conditional compilation directives ..
I can see it would work but for some reason VS2010 is ignoring the compile directives ..
OK thanks Sandra I'll keep trying random things see if I can get it to compile
I can see it would work but for some reason VS2010 is ignoring the compile directives ..
OK thanks Sandra I'll keep trying random things see if I can get it to compile
Re: Compiling TChart 4.1 2010 src in x86
Hello Snarkle,
In the case of VS2010 is possible you need check if is used .Net Framework 4.0. It is a important condition you must consider because can have effects directly to your compilations. To check it please follow next steps:
1.- Click on your application with right button and select properties
2.- Go to Framework target and change Framework 4.0 Client Profile to Framework 4.0
3.- Try to compile again again your project.
If it doesn't help you please, let me know.
Thanks,
In the case of VS2010 is possible you need check if is used .Net Framework 4.0. It is a important condition you must consider because can have effects directly to your compilations. To check it please follow next steps:
1.- Click on your application with right button and select properties
2.- Go to Framework target and change Framework 4.0 Client Profile to Framework 4.0
3.- Try to compile again again your project.
If it doesn't help you please, let me know.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Compiling TChart 4.1 2010 src in x86
Thanks Sandra that worked ...
For some strange reason x86 and framework 2 just ignored the compiler directives ... changed it to 4 .. then to 3.5 and the compiler directives got picked up and it works fine now.
Thanks
For some strange reason x86 and framework 2 just ignored the compiler directives ... changed it to 4 .. then to 3.5 and the compiler directives got picked up and it works fine now.
Thanks
Re: Compiling TChart 4.1 2010 src in x86
Hello Snarkle,
I have made a simple test using latest version of TeeChartFor.Net source code.
I have used the TeeChart20.csproj in an application where .NetFramework of project is 2.0 and I can debug the project and source code without problems. To make the test I only have next:
1.- I have clicked with right button in the WinformsProject and I have selected properties.
2.- I have changed, in Framework target, the Frameworks 4.0 to Framework 2.0.
3.- I have added in solution explorer, TeeChart20.csproj.
4.- I have added in Reference folder, the TeeChart20 reference.
5.- I have checked in configuration manager that the both projects are in x86.
6.- I have run project.
Is possible in your case, the problems are caused for an inconsistency of .NetFrameworks, for this reason, you can not debug your project when you compile the solution in x86.
Thanks,
On the other hand, I am glad your problem are solved and you can work without problems .
Thanks,
I have made a simple test using latest version of TeeChartFor.Net source code.
I have used the TeeChart20.csproj in an application where .NetFramework of project is 2.0 and I can debug the project and source code without problems. To make the test I only have next:
1.- I have clicked with right button in the WinformsProject and I have selected properties.
2.- I have changed, in Framework target, the Frameworks 4.0 to Framework 2.0.
3.- I have added in solution explorer, TeeChart20.csproj.
4.- I have added in Reference folder, the TeeChart20 reference.
5.- I have checked in configuration manager that the both projects are in x86.
6.- I have run project.
Is possible in your case, the problems are caused for an inconsistency of .NetFrameworks, for this reason, you can not debug your project when you compile the solution in x86.
Thanks,
On the other hand, I am glad your problem are solved and you can work without problems .
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |