Click here to Skip to main content
15,899,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerPlease continue on the same thread !! Pin
toxcct23-Aug-07 21:57
toxcct23-Aug-07 21:57 
AnswerRe: registry cleaner for window xp Pin
Hamid_RT24-Aug-07 2:51
Hamid_RT24-Aug-07 2:51 
AnswerRe: registry cleaner for window xp Pin
David Crow24-Aug-07 6:18
David Crow24-Aug-07 6:18 
QuestionMFC Dialog I/O Pin
alberthyc23-Aug-07 17:53
alberthyc23-Aug-07 17:53 
AnswerRe: MFC Dialog I/O Pin
Nishad S23-Aug-07 21:21
Nishad S23-Aug-07 21:21 
AnswerRe: MFC Dialog I/O Pin
toxcct23-Aug-07 22:00
toxcct23-Aug-07 22:00 
GeneralRe: MFC Dialog I/O Pin
alberthyc24-Aug-07 4:01
alberthyc24-Aug-07 4:01 
AnswerRe: MFC Dialog I/O Pin
ghle26-Aug-07 11:00
ghle26-Aug-07 11:00 
alberthyc wrote:
4 rows with 5 edit box with each row.

Note: your example data is 5 rows with 5 edit boxes each.Blush | :O

First time getting data from a file, eh?;P

<br />
if( FileDlg.DoModal() == IDOK )<br />
{<br />
  if( f.Open(FileDlg.GetFileName(), CFile::modeRead) == FALSE )<br />
  {<br />
    return;<br />
  }<br />

// Quick & dirty
  char cBuffer[MAX_SIZE];
  if (f.GetLength() > sizeof(cBuffer))
  {
    AfxMessageBox("I theenk I need a beegger box!", MB_OK|MB_ICONERROR|MB_SETFOREGROUND);
    // Error handling
  } else {
    // Buffer the data if there is some
    if (f.Read(cBuffer, sizeof(cBuffer)))
    {
      // Scan cBuffer for the data you want
      // Homework assignment - you make it proper
      int ia=0, ib=0, ic=0, id=0, ie=0;
      if (4 == sscanf(cBuffer, "%d,%d,%d,%d,%d\n", ia, ib, ic, id, ie))
      {
        // You have the data, go populate one row in the Dialog
        // Then do the next 3 rows.
      }
    }
  }
<br />
}<br />

Gary
QuestionHelp on creating .exe for another PC that has no Visual Studio Pin
Llasus23-Aug-07 16:01
Llasus23-Aug-07 16:01 
AnswerRe: Help on creating .exe for another PC that has no Visual Studio Pin
Llasus23-Aug-07 20:14
Llasus23-Aug-07 20:14 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
ShilpiP23-Aug-07 21:11
ShilpiP23-Aug-07 21:11 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
Arun krishnan23-Aug-07 21:34
Arun krishnan23-Aug-07 21:34 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
toxcct23-Aug-07 22:01
toxcct23-Aug-07 22:01 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
Llasus23-Aug-07 22:28
Llasus23-Aug-07 22:28 
AnswerRe: Help on creating .exe for another PC that has no Visual Studio Pin
Sameerkumar Namdeo23-Aug-07 21:33
Sameerkumar Namdeo23-Aug-07 21:33 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
Llasus23-Aug-07 22:30
Llasus23-Aug-07 22:30 
AnswerRe: Help on creating .exe for another PC that has no Visual Studio Pin
jhwurmbach23-Aug-07 22:11
jhwurmbach23-Aug-07 22:11 
GeneralRe: Help on creating .exe for another PC that has no Visual Studio Pin
Llasus23-Aug-07 22:31
Llasus23-Aug-07 22:31 
Questionstring::substr -- allocate on heap? Pin
devvvy23-Aug-07 15:45
devvvy23-Aug-07 15:45 
AnswerRe: string::substr -- allocate on heap? Pin
User 58385223-Aug-07 20:11
User 58385223-Aug-07 20:11 
QuestionCPU Time of a process Pin
DevMentor.org23-Aug-07 12:05
DevMentor.org23-Aug-07 12:05 
AnswerRe: CPU Time of a process Pin
DevMentor.org23-Aug-07 12:15
DevMentor.org23-Aug-07 12:15 
AnswerRe: CPU Time of a process Pin
aks.23-Aug-07 15:29
aks.23-Aug-07 15:29 
GeneralRe: CPU Time of a process Pin
DevMentor.org23-Aug-07 15:59
DevMentor.org23-Aug-07 15:59 
QuestionCan I enforce the IntelliSence databese rebuild in VS2005? Pin
oleg6323-Aug-07 11:40
professionaloleg6323-Aug-07 11:40 

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.