Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: You're right Pin
George_George22-Nov-07 22:07
George_George22-Nov-07 22:07 
GeneralRe: You're right Pin
CPallini22-Nov-07 22:11
mveCPallini22-Nov-07 22:11 
GeneralRe: You're right Pin
George_George22-Nov-07 22:04
George_George22-Nov-07 22:04 
AnswerRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach21-Nov-07 21:09
jhwurmbach21-Nov-07 21:09 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George21-Nov-07 21:19
George_George21-Nov-07 21:19 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach21-Nov-07 21:32
jhwurmbach21-Nov-07 21:32 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George21-Nov-07 21:50
George_George21-Nov-07 21:50 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach21-Nov-07 21:55
jhwurmbach21-Nov-07 21:55 
George_George wrote:
if we could determine the values at compile time the performance of runtime will be better.


So, you have some code-file where a long, long list of strings is added into an array?
Or do you read some sort of text file at startup?
Sorry, I can only give vague suggestions, but you are not providing enough information.
You have a fixed-size array of TCHARs.
When is this array filled?
From where is it filled?
How often is is accessed? At different code locations?






Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George21-Nov-07 23:56
George_George21-Nov-07 23:56 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 0:41
jhwurmbach22-Nov-07 0:41 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 1:27
George_George22-Nov-07 1:27 
AnswerRe: Smarter ways to define MACRO to strings? Pin
Jonathan [Darka]21-Nov-07 21:41
professionalJonathan [Darka]21-Nov-07 21:41 
GeneralRe: Smarter ways to define MACRO to strings? Pin
CPallini21-Nov-07 21:51
mveCPallini21-Nov-07 21:51 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George21-Nov-07 21:52
George_George21-Nov-07 21:52 
AnswerRe: Smarter ways to define MACRO to strings? Pin
toxcct21-Nov-07 21:58
toxcct21-Nov-07 21:58 
GeneralRe: Smarter ways to define MACRO to strings? Pin
CPallini21-Nov-07 22:32
mveCPallini21-Nov-07 22:32 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct21-Nov-07 22:35
toxcct21-Nov-07 22:35 
GeneralRe: Smarter ways to define MACRO to strings? Pin
CPallini21-Nov-07 22:46
mveCPallini21-Nov-07 22:46 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 0:38
jhwurmbach22-Nov-07 0:38 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 1:26
George_George22-Nov-07 1:26 
GeneralRe: Smarter ways to define MACRO to strings? [modified] Pin
jhwurmbach22-Nov-07 2:08
jhwurmbach22-Nov-07 2:08 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 2:48
toxcct22-Nov-07 2:48 
GeneralRe: Smarter ways to define MACRO to strings? Pin
jhwurmbach22-Nov-07 2:51
jhwurmbach22-Nov-07 2:51 
GeneralRe: Smarter ways to define MACRO to strings? Pin
toxcct22-Nov-07 4:18
toxcct22-Nov-07 4:18 
GeneralRe: Smarter ways to define MACRO to strings? Pin
George_George22-Nov-07 18:21
George_George22-Nov-07 18:21 

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.