Click here to Skip to main content
15,920,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XML to header Pin
Andre xxxxxxx22-Jan-06 12:09
Andre xxxxxxx22-Jan-06 12:09 
AnswerRe: XML to header Pin
Ryan Binns22-Jan-06 17:23
Ryan Binns22-Jan-06 17:23 
GeneralRe: XML to header Pin
Andre xxxxxxx23-Jan-06 1:26
Andre xxxxxxx23-Jan-06 1:26 
GeneralRe: XML to header Pin
Ryan Binns23-Jan-06 21:55
Ryan Binns23-Jan-06 21:55 
QuestionString table in SQL database? Pin
Andre xxxxxxx22-Jan-06 10:42
Andre xxxxxxx22-Jan-06 10:42 
AnswerRe: String table in SQL database? Pin
PJ Arends22-Jan-06 11:03
professionalPJ Arends22-Jan-06 11:03 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:26
Andre xxxxxxx22-Jan-06 11:26 
GeneralRe: String table in SQL database? Pin
PJ Arends22-Jan-06 11:52
professionalPJ Arends22-Jan-06 11:52 
ABuenger wrote:
Do you have all string in one file or one file for each language? The big advantage of a table in a database would be that during development i can just append the strings in english and later i can fill the empty cells with translations.


One language per file.

Actually I currently have only English files, but it is simply a matter of making a copy of the file, translating it, and distributing the translated ini file with the app. Or distributing all the language files and having the installer rename the correct one for the language used. Using this method also makes it easier for me (or anyone else) to correct any spelling mistakes or ambiguities that I may have missed when writing the app without having to recompile.

One thing I did do though is put all the default strings into the app's string table in English just in case the ini file can not be found or is corrupted some how.


ABuenger wrote:
Would you use an integer or string as primary key of the table? An integer (auto increment id) would have the disadvantage that i also need an enum with the ids.

I thought about something like this:

CString sString = QueryString ("ID_FILE");


That would be my prefered method. Makes it easier to associate strings with controls, menu items, etc. if they all have the same ID strings. Numbers just are not descriptive enough.





"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
AnswerRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 11:15
Stephen Hewitt22-Jan-06 11:15 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:19
Andre xxxxxxx22-Jan-06 11:19 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 11:26
Stephen Hewitt22-Jan-06 11:26 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:36
Andre xxxxxxx22-Jan-06 11:36 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 11:41
Stephen Hewitt22-Jan-06 11:41 
GeneralRe: String table in SQL database? Pin
Andre xxxxxxx22-Jan-06 11:57
Andre xxxxxxx22-Jan-06 11:57 
GeneralRe: String table in SQL database? Pin
Stephen Hewitt22-Jan-06 12:05
Stephen Hewitt22-Jan-06 12:05 
GeneralRe: String table in SQL database? Pin
PJ Arends22-Jan-06 11:56
professionalPJ Arends22-Jan-06 11:56 
AnswerRe: String table in SQL database? Pin
JonEngle22-Jan-06 19:43
JonEngle22-Jan-06 19:43 
QuestionIcon not showing in CStatic Control Pin
Tom Moore22-Jan-06 10:09
Tom Moore22-Jan-06 10:09 
AnswerRe: Icon not showing in CStatic Control Pin
PJ Arends22-Jan-06 11:21
professionalPJ Arends22-Jan-06 11:21 
GeneralRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
AnswerRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
Questionwhat do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 4:57
tom_dx22-Jan-06 4:57 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Cedric Moonen22-Jan-06 7:29
Cedric Moonen22-Jan-06 7:29 
GeneralRe: what do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 7:59
tom_dx22-Jan-06 7:59 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Stephen Hewitt22-Jan-06 11:19
Stephen Hewitt22-Jan-06 11:19 

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.