Page 1 of 1
Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Sun Apr 18, 2010 12:19 pm
by DJBobo
Hi,
I migrated form VC 2008 EE successfully, all my projects from VC 2008EE now work OK on CodeLite.
But there is two tiny issue I'd like to resolve.
1. When I open *.cpp and *.h-files created in VC 2008EE, russian strings look like "abracadabra".
I suppose something goes wrong with charset codding... Does anyone know, how to fix it?
2. Output files generated by CodeLite don't look like native Win XP, i.e. like oldfashioned Win 95-98,
of course I added myprog.exe.manifest file in folder with my exe-file, it works OK, but in VC2008EE I don't have to add any manifest-files.
So I'd like to ask, is it possibly to integrate manifest-files into CL output files while compiling by default?
I.e. without need to put manifest-files into output folder.
Thanks in advance.
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Sun Apr 18, 2010 1:02 pm
by eranif
DJBobo wrote:of course I added myprog.exe.manifest file in folder with my exe-file, it works OK, but in VC2008EE I don't have to add any manifest-files.
Are you still using VC as the compiler, or did you switch to use MinGW?
Also: are you using wxWidgets for GUI development?
If the answer to the above is "I am using MinGW and wxWidgets"
Then you can add this small file resource file into codelite:
Code: Select all
#include "wx/msw/wx.rc"
1 24 "wx/msw/wx.manifest"
name it:
resources.rc
compile your project and should work.
DJBobo wrote:1. When I open *.cpp and *.h-files created in VC 2008EE, russian strings look like "abracadabra".
Try changing the editor's page encoding from 'settings -> global editor preferences -> misc' into 'ISO-8859-1' and see if it helps
If it does not, try other encoding
Eran
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Sun Apr 18, 2010 2:52 pm
by DJBobo
eranif wrote:
Are you still using VC as the compiler, or did you switch to use MinGW?
Also: are you using wxWidgets for GUI development?
If the answer to the above is "I am using MinGW and wxWidgets"
Then you can add this small file resource file into codelite:
Code: Select all
#include "wx/msw/wx.rc"
1 24 "wx/msw/wx.manifest"
name it:
resources.rc
compile your project and should work.
Thanks Eran,
yes, I am using MinGW and wxWidgets, but VC2008EE still installed.
I created resources.rc with
Code: Select all
#include "wx/msw/wx.rc"
1 24 "wx/msw/wx.manifest"
added it into my proj
compiled my proj, but nothing changed
Should I include resources.rc into any *.h-file?
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Sun Apr 18, 2010 3:13 pm
by eranif
DJBobo wrote:compiled my proj, but nothing changed
Have a look here for more info (the previous method is working find for codelite itself)
http://wiki.wxwidgets.org/FAQ#Why_does_ ... indows_.3F
Eran
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Tue Apr 20, 2010 4:05 pm
by DJBobo
Thanks Eran,
I tried all methods,but still failed to build XP-looking exe-file.
Maybe it takes to set any Settings? cause the same project builds in Code::Blocks OK.
But anyway CodeLite is wonderful.
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Tue Apr 20, 2010 6:06 pm
by frank_frl
Hi DJBobo
DJBobo wrote:
Maybe it takes to set any Settings? cause the same project builds in Code::Blocks OK.
There is no magic setting, I only add
to my rc files and it works.
Maybe you forgot to add this rc file to your project.
Do you have a line like this in your compiler output ?
Code: Select all
windres -i "E:/WxWindows/projects_gnu/LdnServer/LdnServer.rc" -o ./MinGWRelease/LdnServer.rc.o "-IE:/wxWidgets-2.8.10/include"
Frank
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Tue Apr 20, 2010 11:39 pm
by DJBobo
Thanks Frank for your reply.
frank_frl wrote:
There is no magic setting, I only add
to my rc files and it works.
Of course I added this to my resource.rc file too, I attached even the pic upper.
But it didn't help me, although it works OK on Code::Blocks but doesn't on CodeLite.
frank_frl wrote:
Maybe you forgot to add this rc file to your project.
It seems to me, I didn't forget to add my rc file to my project, cause judging by pic I attached before, my resource.rc file added to project successfully. ))
frank_frl wrote:
Do you have a line like this in your compiler output ?
Code: Select all
windres -i "E:/WxWindows/projects_gnu/LdnServer/LdnServer.rc" -o ./MinGWRelease/LdnServer.rc.o "-IE:/wxWidgets-2.8.10/include"
Wow, I guess this is what I miss, could you clarify please, where should I set the line in my compiler output?
Is this right way: "Settings->Build Settings->gnu g++" ? or "Settings->Build Settings->gnu gcc"? OR "MyProject Settings->Compiler" or somewhere else?
Thanks in advance.
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Wed Apr 21, 2010 12:00 am
by frank_frl
Hi DJBobo,
sorry that I missed your screenshot.
DJBobo wrote:
Wow, I guess this is what I miss, could you clarify please, where should I set the line in my compiler output?
Is this right way: "Settings->Build Settings->gnu g++" ? or "Settings->Build Settings->gnu gcc"? OR "MyProject Settings->Compiler" or somewhere else?
In your build settings->compilers->gnu g++->Tools should be a line 'resource compiler: windres'
In build settings->compilers->gnu g++->File Type should be an entry for rc resource.
Then take a look in your project settings->Resources tab. There is a checkbox 'Resource compiler is not needed'. This should be unchecked.
Don't forget to add the wxWidgets include path here '$(WXWIN)/include'
That should actually do it.
Regards,
Frank
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Posted: Wed Apr 21, 2010 12:12 am
by DJBobo
frank_frl wrote:Hi DJBobo,
sorry that I missed your screenshot.
DJBobo wrote:
Wow, I guess this is what I miss, could you clarify please, where should I set the line in my compiler output?
Is this right way: "Settings->Build Settings->gnu g++" ? or "Settings->Build Settings->gnu gcc"? OR "MyProject Settings->Compiler" or somewhere else?
In your build settings->compilers->gnu g++->Tools should be a line 'resource compiler: windres'
In build settings->compilers->gnu g++->File Type should be an entry for rc resource.
Then take a look in your project settings->Resources tab. There is a checkbox 'Resource compiler is not needed'. This should be unchecked.
Don't forget to add the wxWidgets include path here '$(WXWIN)/include'
That should actually do it.
Regards,
Frank
Wow! Bingo!
I had OK - "build settings->compilers->gnu g++->Tools should be a line 'resource compiler: windres' "
and "In build settings->compilers->gnu g++->File Type should be an entry for rc resource."
BUT I hadn't unchecked 'Resource compiler is not needed'.
I unchecked it and now all works OK!
Thank you very much Frank, you really helped me.