Re: [Dev-C++] Preprocessor and rc files
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2008-05-08 11:03:24
|
If the preprocessor picks up the ENGLISH part, that means that you somewhere have that symbol defined. Without any symbol at all, you should get the default, i.e. your Czech text. You have to look into your Makefile to see what preprocessor defines that are used when processing the RC file. /pwm On Thu, 8 May 2008, Jan Mura wrote: > Hello, > > I would like to ask if it is possible to work with preprocessor directives > in resource files, I actually use for defining some window menu. It means > .rc files. > > In main.c I've got > > #define LANG CZECH > > and in the rc file I have got something like: > > #if LANG == ENGLISH > ...Code for english... > #else > ...Code for czech... > #endif > > But only the code for english is done. > I suppose it should work even in rc file because I made some mistakes there > and the errors has been showed. > > Thank you for suggestions. > > Jan Mura > jan...@vo... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |