Click here to Skip to main content
15,927,699 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change caption of the menu item - quick question Pin
Nish Nishant16-Jul-02 8:27
sitebuilderNish Nishant16-Jul-02 8:27 
Generalquestion about modify menu - sort of works Pin
ns16-Jul-02 9:02
ns16-Jul-02 9:02 
GeneralRe: change caption of the menu item - quick question Pin
ns16-Jul-02 9:52
ns16-Jul-02 9:52 
Generalvalues not showing up in array Pin
John Aldrich16-Jul-02 7:59
John Aldrich16-Jul-02 7:59 
GeneralRe: values not showing up in array Pin
Nish Nishant16-Jul-02 8:11
sitebuilderNish Nishant16-Jul-02 8:11 
GeneralRe: values not showing up in array Pin
Nish Nishant16-Jul-02 8:13
sitebuilderNish Nishant16-Jul-02 8:13 
GeneralRe: values not showing up in array Pin
John Aldrich16-Jul-02 8:18
John Aldrich16-Jul-02 8:18 
GeneralRe: values not showing up in array Pin
Nish Nishant16-Jul-02 8:24
sitebuilderNish Nishant16-Jul-02 8:24 
John Aldrich wrote:
Just made that change. My dubug statement is still showing no values in the array. is there another check I can do to see if there actually are values?

That's because nElementValue is initially 0 and you assign it as the first value of your array. Strings are 0-terminated. Thus your MessageBox won't come up because it sees a null string. Start with nElementValue = 32. 32 is space and 32 upwards is legal characters and stop at 127. otherwise you have all kinds of funny control chasracters which might end up as boxes in the text on screen or might have other bad side effects.

Nish


Author of the romantic comedy

Summer Love and Some more Cricket [New Win]

Review by Shog9
Click here for review[NW]

GeneralQuick menu question..... Pin
Nitron16-Jul-02 7:43
Nitron16-Jul-02 7:43 
GeneralRe: Quick menu question..... Pin
Nish Nishant16-Jul-02 8:15
sitebuilderNish Nishant16-Jul-02 8:15 
GeneralRe: Quick menu question..... Pin
Nitron16-Jul-02 8:32
Nitron16-Jul-02 8:32 
GeneralRe: Quick menu question..... Pin
Nish Nishant16-Jul-02 8:39
sitebuilderNish Nishant16-Jul-02 8:39 
Questionemail, where are u? Pin
includeh1016-Jul-02 7:32
includeh1016-Jul-02 7:32 
AnswerRe: email, where are u? Pin
Shog916-Jul-02 7:44
sitebuilderShog916-Jul-02 7:44 
AnswerRe: email, where are u? Pin
Nish Nishant16-Jul-02 8:17
sitebuilderNish Nishant16-Jul-02 8:17 
Generalefficiency of list::push_back() Pin
moredip16-Jul-02 7:24
moredip16-Jul-02 7:24 
GeneralRe: efficiency of list::push_back() Pin
Philippe Mori16-Jul-02 7:31
Philippe Mori16-Jul-02 7:31 
GeneralRe: efficiency of list::push_back() Pin
Mike Nordell16-Jul-02 7:41
Mike Nordell16-Jul-02 7:41 
GeneralRe: efficiency of list::push_back() Pin
moredip16-Jul-02 8:01
moredip16-Jul-02 8:01 
GeneralRe: efficiency of list::push_back() Pin
Joaquín M López Muñoz16-Jul-02 8:26
Joaquín M López Muñoz16-Jul-02 8:26 
Questionwhat functions are used for ... Pin
includeh1016-Jul-02 7:17
includeh1016-Jul-02 7:17 
AnswerRe: what functions are used for ... Pin
Joaquín M López Muñoz16-Jul-02 8:29
Joaquín M López Muñoz16-Jul-02 8:29 
GeneralRe: what functions are used for ... Pin
includeh1016-Jul-02 9:10
includeh1016-Jul-02 9:10 
AnswerRe: what functions are used for ... Pin
Nish Nishant16-Jul-02 8:34
sitebuilderNish Nishant16-Jul-02 8:34 
AnswerRe: what functions are used for ... Pin
Joel Lucsy16-Jul-02 13:58
Joel Lucsy16-Jul-02 13:58 

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.