Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fatal error c1020: unexpected #endif Pin
Luc Pattyn16-Sep-10 0:57
sitebuilderLuc Pattyn16-Sep-10 0:57 
GeneralRe: fatal error c1020: unexpected #endif Pin
David Crow16-Sep-10 2:51
David Crow16-Sep-10 2:51 
AnswerRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 8:37
mveRichard MacCutchan15-Sep-10 8:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 19:11
AmbiguousName15-Sep-10 19:11 
GeneralRe: fatal error c1020: unexpected #endif Pin
Richard MacCutchan15-Sep-10 21:56
mveRichard MacCutchan15-Sep-10 21:56 
AnswerRe: fatal error c1020: unexpected #endif Pin
Emilio Garavaglia15-Sep-10 21:37
Emilio Garavaglia15-Sep-10 21:37 
GeneralRe: fatal error c1020: unexpected #endif Pin
AmbiguousName15-Sep-10 23:17
AmbiguousName15-Sep-10 23:17 
QuestionBest practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 4:17
Maximilien15-Sep-10 4:17 
We come to a point where we have a lot of hard-coded string in our application (because laziness, design issues, release-scheduling, ...).

Most of our string are in the resources (string tables) and are used in the UI part of the application, but some of them are in the non-UI part (libraries) that does not have a direct access to the resources, and we don't want to have a dependence on the resources.

Is there a best-practice way to deal with large quantity of string ?

Simple header file with <code>const char*</code> ?
const char* myString = "my string";

or with <code>#define</code> ? Easy but not user friendly for potential localization.
#define myString "my string"


or an XML file with something like that (rough idea)?
<string ID="myString">
my string
</string&g


Or stick with the main resource file and string tables ? or one new resource for each libraries and include them in the main application resource ? possible issues with ID conflicts ?

Thanks.

Max.
Watched code never compiles.

AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Aescleal15-Sep-10 5:28
Aescleal15-Sep-10 5:28 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Maximilien15-Sep-10 8:19
Maximilien15-Sep-10 8:19 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Aescleal15-Sep-10 11:19
Aescleal15-Sep-10 11:19 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Eugen Podsypalnikov15-Sep-10 9:19
Eugen Podsypalnikov15-Sep-10 9:19 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Sameerkumar Namdeo15-Sep-10 19:26
Sameerkumar Namdeo15-Sep-10 19:26 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. Pin
Shivanand Gupta15-Sep-10 20:24
Shivanand Gupta15-Sep-10 20:24 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
David Crow16-Sep-10 5:44
David Crow16-Sep-10 5:44 
GeneralRe: Best practice for managing large quantity of hard-coded string in application. Pin
Shivanand Gupta16-Sep-10 10:27
Shivanand Gupta16-Sep-10 10:27 
AnswerRe: Best practice for managing large quantity of hard-coded string in application. [modified] Pin
Alain Rist16-Sep-10 0:02
Alain Rist16-Sep-10 0:02 
QuestionHow can remove dotted gray line that is display in row of ListCtrl? Pin
Le@rner14-Sep-10 23:36
Le@rner14-Sep-10 23:36 
AnswerRe: How can remove dotted gray line that is display in row of ListCtrl? Pin
Niklas L15-Sep-10 0:19
Niklas L15-Sep-10 0:19 
GeneralRe: How can remove dotted gray line that is display in row of ListCtrl? Pin
Le@rner15-Sep-10 0:31
Le@rner15-Sep-10 0:31 
GeneralRe: How can remove dotted gray line that is display in row of ListCtrl? Pin
Niklas L15-Sep-10 0:40
Niklas L15-Sep-10 0:40 
GeneralRe: How can remove dotted gray line that is display in row of ListCtrl? Pin
Cool_Dev15-Sep-10 3:17
Cool_Dev15-Sep-10 3:17 
QuestionDisplaying Greek text on a button in windows-xp Pin
msr_codeproject14-Sep-10 23:29
msr_codeproject14-Sep-10 23:29 
QuestionRe: Displaying Greek text on a button in windows-xp Pin
Cool_Dev15-Sep-10 3:22
Cool_Dev15-Sep-10 3:22 
AnswerRe: Displaying Greek text on a button in windows-xp Pin
Code-o-mat15-Sep-10 6:11
Code-o-mat15-Sep-10 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.