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

C / C++ / MFC

 
GeneralRe: The main thing is to create pdbs for release build Pin
clintsinger9-Jan-03 8:27
clintsinger9-Jan-03 8:27 
QuestionMultidimensional arrays - am I doing it correctly? Pin
Dominik Reichl9-Jan-03 7:46
Dominik Reichl9-Jan-03 7:46 
AnswerRe: Multidimensional arrays - am I doing it correctly? Pin
AlexO9-Jan-03 7:56
AlexO9-Jan-03 7:56 
GeneralRe: Multidimensional arrays - am I doing it correctly? Pin
Dominik Reichl9-Jan-03 8:50
Dominik Reichl9-Jan-03 8:50 
GeneralRe: Multidimensional arrays - am I doing it correctly? Pin
AlexO9-Jan-03 9:26
AlexO9-Jan-03 9:26 
AnswerRe: Multidimensional arrays - am I doing it correctly? Pin
Alvaro Mendez9-Jan-03 8:52
Alvaro Mendez9-Jan-03 8:52 
GeneralRe: Multidimensional arrays - am I doing it correctly? Pin
Dominik Reichl9-Jan-03 9:09
Dominik Reichl9-Jan-03 9:09 
GeneralRe: Multidimensional arrays - am I doing it correctly? Pin
Alvaro Mendez9-Jan-03 9:26
Alvaro Mendez9-Jan-03 9:26 
Yeah, I just read your reply to AlexO. Smile | :)

Your code looks fine, although the static qualifier does not appear to be needed.

The only thing you may want to consider is that if your string values are always going to be literal strings (ie, "abc", "whatever"), then you don't even need to allocate extra space for them:

char* g_szCMOSInfo[NUM_CMOS_STRINGS];
 
g_szCMOSInfo[i++] = "Time - Seconds";
g_szCMOSInfo[i++] = "Alarm - Seconds";


Since the compiler has already allocated space for literal strings, all you need to do is point to them.

Regards,
Alvaro


Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
QuestionOUT OF MEMORY in RELEASE VERSION but OK in DEBUG ?? Pin
youssef9-Jan-03 7:42
youssef9-Jan-03 7:42 
AnswerRe: OUT OF MEMORY in RELEASE VERSION but OK in DEBUG ?? Pin
Chris Losinger9-Jan-03 8:02
professionalChris Losinger9-Jan-03 8:02 
GeneralRe: SetCurrentDirectory() not working?? Pin
Ted Ferenc9-Jan-03 6:48
Ted Ferenc9-Jan-03 6:48 
GeneralRe: SetCurrentDirectory() not working?? Pin
uandrej9-Jan-03 9:56
uandrej9-Jan-03 9:56 
GeneralRe: SetCurrentDirectory() not working?? Pin
Ted Ferenc9-Jan-03 21:31
Ted Ferenc9-Jan-03 21:31 
GeneralRe: SetCurrentDirectory() not working?? Pin
Anonymous9-Jan-03 23:49
Anonymous9-Jan-03 23:49 
GeneralSDK - MAPI .oft Files Pin
Harald Diel9-Jan-03 6:02
Harald Diel9-Jan-03 6:02 
GeneralRe: SDK - MAPI .oft Files Pin
Harald Diel12-Jan-03 22:50
Harald Diel12-Jan-03 22:50 
QuestionHow to create a menu item on the fly Pin
ns9-Jan-03 5:25
ns9-Jan-03 5:25 
AnswerRe: How to create a menu item on the fly Pin
Michael Dunn9-Jan-03 5:35
sitebuilderMichael Dunn9-Jan-03 5:35 
Generalsetting up a keyboard system wide hook (contains the code, if you would like to see it...) Pin
Joan M9-Jan-03 5:00
professionalJoan M9-Jan-03 5:00 
GeneralRe: setting up a keyboard system wide hook (contains the code, if you would like to see it...) Pin
Joan M9-Jan-03 5:15
professionalJoan M9-Jan-03 5:15 
GeneralNT Services and MFC Pin
henrik_stromberg9-Jan-03 4:49
henrik_stromberg9-Jan-03 4:49 
GeneralRe: NT Services and MFC Pin
Joan M9-Jan-03 5:03
professionalJoan M9-Jan-03 5:03 
GeneralRe: NT Services and MFC Pin
henrik_stromberg9-Jan-03 20:38
henrik_stromberg9-Jan-03 20:38 
GeneralRe: NT Services and MFC Pin
Carlos Antollini9-Jan-03 5:06
Carlos Antollini9-Jan-03 5:06 
QuestionLocking toolbars/control bars? Pin
Chris Hambleton9-Jan-03 3:57
Chris Hambleton9-Jan-03 3:57 

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.