Click here to Skip to main content
16,011,849 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchanging text on menu item Pin
ns16-Jul-02 8:33
ns16-Jul-02 8:33 
GeneralRe: changing text on menu item Pin
Nish Nishant16-Jul-02 8:44
sitebuilderNish Nishant16-Jul-02 8:44 
Generalsorry for two threads - my browser was acting up Pin
ns16-Jul-02 9:03
ns16-Jul-02 9:03 
Generalchange caption of the menu item - quick question Pin
ns16-Jul-02 8:24
ns16-Jul-02 8:24 
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 
I'm writting code which fills up a character array with numeric values which will later be converted in to character values for use with an encryption function. The problem I'm having is that the array values do not seem to be making it into the array, and I'm pulling my hair out trying to figure what's going wrong. Source Code Follows

// make a 256 element alphanumeric string

int nElementCount = 0;
int nElementValue = 0;

char szStringArray[] = "\0";


    // length check

    while ( nElementCount < 255 )

    {

        szStringArray[nElementCount] = nElementValue;

        // post increment so that we go to the next
        // element number and value pair.

        nElementCount++;
        nElementValue++;

    }

// debug message
//
// should list the entire range of elements in the array

MessageBox(NULL, szStringArray, "Debug Message", MB_OK);


As can see the code is pretty straight forward, but I just seem to not be able to get values into the array. It's probably something simple that I'm missing due to newbie-itis. If someone could point out what's wrong with my code and how to fix it, I'd appreciate it.

It's good to see kids turning their minds to wholesum activities such as programming, instead of wasting their lives in the hedonistic disciplines of Sex, Drugs, & Rock & Roll... or Sex with Drugs, or Sex with Rocks while Rolling in Drugs, or whatever new-fangled perversions you little monsters have thought up now...

[Shog9 on Kid Programmers]
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 
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 

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.