Posts: 1,849
Threads: 96
Joined: Apr 2010
Reputation:
0
Strings and Integers? Both are used for different things. Why do you even want to compare whos faster in it?
Posts: 107
Threads: 8
Joined: Sep 2012
Reputation:
0
^
You're kind of confusing...Why are you comparing them in the first place?
Posts: 108
Threads: 15
Joined: Apr 2011
Reputation:
0
I have edited the thread, now you understand me?
Posts: 107
Threads: 8
Joined: Sep 2012
Reputation:
0
Use the "GetTickCount" function, very simplistic.
Posts: 108
Threads: 15
Joined: Apr 2011
Reputation:
0
I don't mean faster, I mean efficient and effective, please someone who know could tell me please?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I know that having many macros affects the compile time. I also know that literals are faster than variables. But I honestly doubt it would have any effect at runtime if you chose to use constant variables.
In any case, using const instead of new is better if you know that the value of the variable is never to change. There are also instances where macros cannot be used. For example declaring a large array of floats.
As for keeping track of dialog ids, I use an enumerator. Guaranteed to never have a duplicate id.
Posts: 108
Threads: 15
Joined: Apr 2011
Reputation:
0
Oh, Thanks ******. Where I can find a lot of code improvements?