Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 10:09
mveCPallini25-Mar-09 10:09 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 10:25
Aljaz11125-Mar-09 10:25 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 11:25
Aljaz11125-Mar-09 11:25 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 11:49
mveCPallini25-Mar-09 11:49 
GeneralRe: "game" fast fingers [modified] Pin
Aljaz11125-Mar-09 13:04
Aljaz11125-Mar-09 13:04 
GeneralRe: "game" fast fingers Pin
CPallini25-Mar-09 22:33
mveCPallini25-Mar-09 22:33 
GeneralRe: "game" fast fingers Pin
Niklas L26-Mar-09 1:33
Niklas L26-Mar-09 1:33 
GeneralRe: "game" fast fingers Pin
Aljaz11126-Mar-09 3:35
Aljaz11126-Mar-09 3:35 
I have two functions for randomsymbol..first for char second for number from 1-10.. Here i am adding it to edit box..
for(int i=0; i<10; i++)
{

    int j= (rand()%2)+1;
    if(j==1)
    {
        m_sEdit=getRandomSymbol1();
        AppendTextToEditCtrl(editbox, m_sEdit);

    }
    else
    {

        m_number=getRandomSymbol2();
        char c[10];
        itoa(m_number,c,10);
        CString MFCString;
        MFCString = c;
        AppendTextToEditCtrl(editbox, MFCString);
    }
    CString dod;
    dod=" ";
    AppendTextToEditCtrl(editbox, dod);
}


1. How now to use onchar to compare each element in editbox and one pressed on keyboard... Later i will deal with timing...but for now..how to compare those two?
GeneralRe: "game" fast fingers Pin
CPallini26-Mar-09 4:03
mveCPallini26-Mar-09 4:03 
GeneralRe: "game" fast fingers [modified] Pin
Aljaz11126-Mar-09 5:31
Aljaz11126-Mar-09 5:31 
GeneralRe: "game" fast fingers Pin
CPallini26-Mar-09 7:20
mveCPallini26-Mar-09 7:20 
GeneralRe: "game" fast fingers Pin
Aljaz11126-Mar-09 7:53
Aljaz11126-Mar-09 7:53 
QuestionRe: "game" fast fingers Pin
CPallini26-Mar-09 8:48
mveCPallini26-Mar-09 8:48 
GeneralRe: "game" fast fingers Pin
David Crow25-Mar-09 9:26
David Crow25-Mar-09 9:26 
AnswerRe: "game" fast fingers Pin
led mike25-Mar-09 9:40
led mike25-Mar-09 9:40 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 9:47
Aljaz11125-Mar-09 9:47 
GeneralRe: "game" fast fingers [modified] Pin
CPallini25-Mar-09 10:11
mveCPallini25-Mar-09 10:11 
GeneralRe: "game" fast fingers Pin
led mike26-Mar-09 5:37
led mike26-Mar-09 5:37 
QuestionSerial Mouse data to Mouse driver [modified] Pin
THAQCD25-Mar-09 7:42
THAQCD25-Mar-09 7:42 
QuestionGetting notification from CRichEditView Pin
rp_suman25-Mar-09 6:20
rp_suman25-Mar-09 6:20 
AnswerRe: Getting notification from CRichEditView Pin
Iain Clarke, Warrior Programmer25-Mar-09 6:50
Iain Clarke, Warrior Programmer25-Mar-09 6:50 
Questionwinamp c++ class Pin
Jacavienna25-Mar-09 5:47
Jacavienna25-Mar-09 5:47 
QuestionDevPartner problem Pin
RedSonja25-Mar-09 5:11
RedSonja25-Mar-09 5:11 
AnswerRe: DevPartner problem Pin
Eytukan25-Mar-09 5:32
Eytukan25-Mar-09 5:32 
GeneralRe: DevPartner problem [modified] Pin
RedSonja25-Mar-09 20:57
RedSonja25-Mar-09 20: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.