Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan you simplify the function by #define? [modified] Pin
includeh1021-Dec-09 0:16
includeh1021-Dec-09 0:16 
AnswerRe: can you simplify the function by #define? Pin
Richard MacCutchan21-Dec-09 0:36
mveRichard MacCutchan21-Dec-09 0:36 
GeneralRe: can you simplify the function by #define? Pin
includeh1021-Dec-09 1:30
includeh1021-Dec-09 1:30 
GeneralRe: can you simplify the function by #define? Pin
Richard MacCutchan21-Dec-09 1:50
mveRichard MacCutchan21-Dec-09 1:50 
GeneralRe: can you simplify the function by #define? Pin
includeh1021-Dec-09 3:21
includeh1021-Dec-09 3:21 
GeneralRe: can you simplify the function by #define? Pin
Richard MacCutchan21-Dec-09 5:54
mveRichard MacCutchan21-Dec-09 5:54 
QuestionRe: can you simplify the function by #define? Pin
CPallini21-Dec-09 1:55
mveCPallini21-Dec-09 1:55 
AnswerRe: can you simplify the function by #define? Pin
Maximilien21-Dec-09 2:38
Maximilien21-Dec-09 2:38 
You cannot "#include" files at runtime.

Me think you need to review your language pack approach.

either generate resource only DLL, one for every language that will each share the same ID that will be referenced in the code; and have the DLL loaded when the application starts (or on demand)
or
have one language header file that contains all languages in a table, one line per word to be translated; and strings ID that will be references in the code; different than STRING resource id.

ID french english german ...
-------------------
123 "allo" "hello" "hallo"
...


...

YMMV.
Max

This signature was proudly tested on animals.

GeneralRe: can you simplify the function by #define? Pin
Nelek21-Dec-09 3:09
protectorNelek21-Dec-09 3:09 
GeneralRe: can you simplify the function by #define? Pin
Abhi Lahare21-Dec-09 5:41
Abhi Lahare21-Dec-09 5:41 
GeneralRe: can you simplify the function by #define? Pin
Nelek21-Dec-09 7:04
protectorNelek21-Dec-09 7:04 
Questionfread() for file system Pin
hrishiS20-Dec-09 23:26
hrishiS20-Dec-09 23:26 
AnswerRe: fread() for file system Pin
CPallini21-Dec-09 0:25
mveCPallini21-Dec-09 0:25 
QuestionHow to save Images in none compression images Pin
Game-point20-Dec-09 23:15
Game-point20-Dec-09 23:15 
AnswerRe: How to save Images in none compression images Pin
CPallini21-Dec-09 0:58
mveCPallini21-Dec-09 0:58 
AnswerRe: How to save Images in none compression images Pin
Code-o-mat21-Dec-09 10:19
Code-o-mat21-Dec-09 10:19 
QuestionOver Writing in File System... Pin
hrishiS20-Dec-09 20:54
hrishiS20-Dec-09 20:54 
QuestionRe: Over Writing in File System... Pin
CPallini20-Dec-09 21:25
mveCPallini20-Dec-09 21:25 
AnswerRe: Over Writing in File System... Pin
hrishiS20-Dec-09 21:29
hrishiS20-Dec-09 21:29 
GeneralRe: Over Writing in File System... Pin
CPallini20-Dec-09 21:38
mveCPallini20-Dec-09 21:38 
QuestionRe: Over Writing in File System... Pin
Ahmed Charfeddine20-Dec-09 21:27
Ahmed Charfeddine20-Dec-09 21:27 
AnswerRe: Over Writing in File System... Pin
hrishiS20-Dec-09 21:30
hrishiS20-Dec-09 21:30 
GeneralRe: Over Writing in File System... Pin
Ahmed Charfeddine20-Dec-09 21:34
Ahmed Charfeddine20-Dec-09 21:34 
GeneralDo not surrender Pin
Ahmed Charfeddine20-Dec-09 21:36
Ahmed Charfeddine20-Dec-09 21:36 
GeneralRe: Do not surrender Pin
hrishiS20-Dec-09 21:45
hrishiS20-Dec-09 21:45 

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.