Click here to Skip to main content
13,000,982 members (57,644 online)

C / C++ / MFC

 
QuestionDeclaring a TBYTE in C. Pin
Member 41945938-Dec-12 15:04
memberMember 41945938-Dec-12 15:04 
AnswerRe: Declaring a TBYTE in C. Pin
manoranjan8-Dec-12 20:56
membermanoranjan8-Dec-12 20:56 
GeneralRe: Declaring a TBYTE in C. Pin
Member 41945939-Dec-12 3:29
memberMember 41945939-Dec-12 3:29 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan9-Dec-12 23:47
membermanoranjan9-Dec-12 23:47 
GeneralRe: Declaring a TBYTE in C. Pin
Member 419459310-Dec-12 12:11
memberMember 419459310-Dec-12 12:11 
GeneralRe: Declaring a TBYTE in C. Pin
manoranjan11-Dec-12 1:35
membermanoranjan11-Dec-12 1:35 
QuestionMethods bank account Pin
Magda63477-Dec-12 10:17
memberMagda63477-Dec-12 10:17 
AnswerRe: Methods bank account Pin
Richard MacCutchan7-Dec-12 21:56
mvpRichard MacCutchan7-Dec-12 21:56 
AnswerRe: Methods bank account Pin
Alan Balkany10-Dec-12 5:43
memberAlan Balkany10-Dec-12 5:43 
AnswerRe: Methods bank account Pin
PecuniousPete10-Dec-12 8:05
memberPecuniousPete10-Dec-12 8:05 
GeneralRe: Methods bank account Pin
Magda634713-Mar-13 11:36
memberMagda634713-Mar-13 11:36 
Questionread text file Pin
peoria1237-Dec-12 9:59
memberpeoria1237-Dec-12 9:59 
AnswerRe: read text file Pin
André Kraak7-Dec-12 20:56
memberAndré Kraak7-Dec-12 20:56 
AnswerRe: read text file Pin
sajeesh.c9-Dec-12 21:05
membersajeesh.c9-Dec-12 21:05 
I think first you should add a button in dialog and on handle of this button write the code below
void CReadFileDlg::OnReadFile() 
{
    CEdit* m_EditArray[10];
    CStringArray FileArray;
    char cTemp[256];
    ifstream fin;
    fin.open( _T("C:\\FileRead.txt"), ios::in|ios::nocreate );
    while( !fin.eof() )
    {
        // The getline function is used to read an entire line
        fin.getline( cTemp, 256, '\n' );
        CString csChartoString;
        csChartoString.Format( "%s", cTemp );
        if( csChartoString != "" )
        {
            FileArray.Add( csChartoString );
        }
     }
    int top = 10;
    int bottom = 30;
    for(int i = 0; i < 10; i++)
    {
        m_EditArray[i] = new CEdit;
        DWORD dwStyle = WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON;
        m_EditArray[i]->Create(dwStyle, CRect(10,top,100,bottom), this,100+i);
        m_EditArray[i]->ShowWindow(TRUE);
        top += 30;
        bottom += 30;
    }
    int nArraySize = FileArray.GetSize();
    int nPos = 0;
    for( int nIdx= 0; nIdx < nArraySize; ++nIdx )
    {
        m_EditArray[nIdx]->SetWindowText( FileArray.GetAt( nIdx ));
    }
}

QuestionWM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 4:10
memberVaclav_Sal7-Dec-12 4:10 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Jochen Arndt7-Dec-12 5:56
memberJochen Arndt7-Dec-12 5:56 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
jeron17-Dec-12 5:59
memberjeron17-Dec-12 5:59 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal7-Dec-12 6:58
memberVaclav_Sal7-Dec-12 6:58 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Richard MacCutchan7-Dec-12 21:51
mvpRichard MacCutchan7-Dec-12 21:51 
GeneralRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
Vaclav_Sal9-Dec-12 5:47
memberVaclav_Sal9-Dec-12 5:47 
AnswerRe: WM_DEVICECHANGE sets wParam to unexpected value of 7 - how to troubleshoot this? Pin
PecuniousPete9-Dec-12 20:23
memberPecuniousPete9-Dec-12 20:23 
Questionhow to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 2:32
memberFalconapollo7-Dec-12 2:32 
AnswerRe: how to find out the codes who eat up my memory? Pin
Richard MacCutchan7-Dec-12 2:54
mvpRichard MacCutchan7-Dec-12 2:54 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 2:55
memberDavidCrow7-Dec-12 2:55 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:11
memberFalconapollo7-Dec-12 3:11 
QuestionRe: how to find out the codes who eat up my memory? Pin
DavidCrow7-Dec-12 3:25
memberDavidCrow7-Dec-12 3:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
Falconapollo7-Dec-12 3:28
memberFalconapollo7-Dec-12 3:28 
AnswerRe: how to find out the codes who eat up my memory? Pin
Joe Woodbury7-Dec-12 8:30
memberJoe Woodbury7-Dec-12 8:30 
AnswerRe: how to find out the codes who eat up my memory? Pin
vr9999999998-Dec-12 1:25
membervr9999999998-Dec-12 1:25 
AnswerRe: how to find out the codes who eat up my memory? Pin
PecuniousPete11-Dec-12 20:42
memberPecuniousPete11-Dec-12 20:42 
QuestionImage processing and converter Pin
Flaviu26-Dec-12 22:12
memberFlaviu26-Dec-12 22:12 
QuestionRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 22:18
mvpRichard MacCutchan6-Dec-12 22:18 
AnswerRe: Image processing and converter Pin
Flaviu26-Dec-12 22:26
memberFlaviu26-Dec-12 22:26 
GeneralRe: Image processing and converter Pin
Richard MacCutchan6-Dec-12 23:32
mvpRichard MacCutchan6-Dec-12 23:32 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 1:00
memberFlaviu27-Dec-12 1:00 
GeneralRe: Image processing and converter Pin
Richard MacCutchan7-Dec-12 1:11
mvpRichard MacCutchan7-Dec-12 1:11 
GeneralRe: Image processing and converter Pin
Flaviu27-Dec-12 1:44
memberFlaviu27-Dec-12 1:44 
GeneralRe: Image processing and converter Pin
Chris Losinger10-Dec-12 8:05
memberChris Losinger10-Dec-12 8:05 
AnswerRe: Image processing and converter Pin
Joe Woodbury7-Dec-12 8:39
memberJoe Woodbury7-Dec-12 8:39 
QuestionUniversal Patch Finder Native Plug-ins Pin
droopy66-Dec-12 20:41
memberdroopy66-Dec-12 20:41 
AnswerRe: Universal Patch Finder Native Plug-ins Pin
Richard MacCutchan6-Dec-12 22:16
mvpRichard MacCutchan6-Dec-12 22:16 
QuestionHow to detect window event : Log on, log off, standby... Pin
vunhutien6-Dec-12 16:27
membervunhutien6-Dec-12 16:27 
AnswerRe: How to detect window event : Log on, log off, standby... Pin
Richard MacCutchan6-Dec-12 22:14
mvpRichard MacCutchan6-Dec-12 22:14 
Question_ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 13:30
memberForNow6-Dec-12 13:30 
AnswerRe: _ApplicationPtr definition in OLE program Pin
Peter_in_27806-Dec-12 15:18
memberPeter_in_27806-Dec-12 15:18 
GeneralRe: _ApplicationPtr definition in OLE program Pin
ForNow6-Dec-12 16:00
memberForNow6-Dec-12 16:00 
GeneralRe: _ApplicationPtr definition in OLE program Pin
Richard MacCutchan6-Dec-12 22:11
mvpRichard MacCutchan6-Dec-12 22:11 
Questionsession description protocol Pin
mani2516195-Dec-12 18:33
membermani2516195-Dec-12 18:33 
AnswerRe: session description protocol Pin
Richard MacCutchan5-Dec-12 21:26
mvpRichard MacCutchan5-Dec-12 21:26 
QuestionRe: session description protocol Pin
DavidCrow6-Dec-12 2:50
memberDavidCrow6-Dec-12 2:50 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 25 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid