Migrate from Visual C++ 2008 Express Edition to CodeLite.

CodeLite installation/troubleshooting forum
DJBobo
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.

Post 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.
User avatar
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.

Post 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
Make sure you have read the HOW TO POST thread
DJBobo
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.

Post 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

Image

compiled my proj, but nothing changed :(

Should I include resources.rc into any *.h-file?
User avatar
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.

Post 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
Make sure you have read the HOW TO POST thread
DJBobo
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.

Post 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.
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.

Post 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

Code: Select all

#include "wx/msw/wx.rc"
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
DJBobo
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.

Post by DJBobo »

Thanks Frank for your reply.
frank_frl wrote: There is no magic setting, I only add

Code: Select all

#include "wx/msw/wx.rc"
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.
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Migrate from Visual C++ 2008 Express Edition to CodeLite.

Post 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
DJBobo
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.

Post 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.
Post Reply