Migrate from Visual C++ 2008 Express Edition to CodeLite.
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sun Apr 05, 2009 9:46 am
- Genuine User: Yes
- IDE Question: C++
- Location: Southern Russia
- Contact:
Migrate from Visual C++ 2008 Express Edition to CodeLite.
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.
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.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Are you still using VC as the compiler, or did you switch to use MinGW?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.
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"
resources.rc
compile your project and should work.
Try changing the editor's page encoding from 'settings -> global editor preferences -> misc' into 'ISO-8859-1' and see if it helpsDJBobo wrote:1. When I open *.cpp and *.h-files created in VC 2008EE, russian strings look like "abracadabra".
If it does not, try other encoding
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sun Apr 05, 2009 9:46 am
- Genuine User: Yes
- IDE Question: C++
- Location: Southern Russia
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Thanks Eran,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:
name it:Code: Select all
#include "wx/msw/wx.rc" 1 24 "wx/msw/wx.manifest"
resources.rc
compile your project and should work.
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"
compiled my proj, but nothing changed
Should I include resources.rc into any *.h-file?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Have a look here for more info (the previous method is working find for codelite itself)DJBobo wrote:compiled my proj, but nothing changed
http://wiki.wxwidgets.org/FAQ#Why_does_ ... indows_.3F
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sun Apr 05, 2009 9:46 am
- Genuine User: Yes
- IDE Question: C++
- Location: Southern Russia
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
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.
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.
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Hi DJBobo
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 ?
Frank
There is no magic setting, I only addDJBobo wrote: Maybe it takes to set any Settings? cause the same project builds in Code::Blocks OK.
Code: Select all
#include "wx/msw/wx.rc"
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"
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sun Apr 05, 2009 9:46 am
- Genuine User: Yes
- IDE Question: C++
- Location: Southern Russia
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Thanks Frank for your reply.
But it didn't help me, although it works OK on Code::Blocks but doesn't on CodeLite.
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.
Of course I added this to my resource.rc file too, I attached even the pic upper.frank_frl wrote: There is no magic setting, I only addto my rc files and it works.Code: Select all
#include "wx/msw/wx.rc"
But it didn't help me, although it works OK on Code::Blocks but doesn't on CodeLite.
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: Maybe you forgot to add this rc file to your project.
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"
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.
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Hi DJBobo,
sorry that I missed your screenshot.
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
sorry that I missed your screenshot.
In your build settings->compilers->gnu g++->Tools should be a line 'resource compiler: windres'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 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
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Sun Apr 05, 2009 9:46 am
- Genuine User: Yes
- IDE Question: C++
- Location: Southern Russia
- Contact:
Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.
Wow! Bingo!frank_frl wrote:Hi DJBobo,
sorry that I missed your screenshot.
In your build settings->compilers->gnu g++->Tools should be a line 'resource compiler: windres'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 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
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.