Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COCreateInstance() call failed Pin
toxcct22-Aug-05 0:24
toxcct22-Aug-05 0:24 
GeneralRe: COCreateInstance() call failed Pin
dharani22-Aug-05 0:25
dharani22-Aug-05 0:25 
GeneralRe: COCreateInstance() call failed Pin
MailtoGops22-Aug-05 19:08
MailtoGops22-Aug-05 19:08 
GeneralCobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 0:08
dharani22-Aug-05 0:08 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
Jack Puppy22-Aug-05 0:57
Jack Puppy22-Aug-05 0:57 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 1:49
dharani22-Aug-05 1:49 
Generalreading a data file n a specific format Pin
a_david12321-Aug-05 23:41
a_david12321-Aug-05 23:41 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 0:04
toxcct22-Aug-05 0:04 
hey David,

i saw you post, there was no need to repost :
1) the 1st one did not disapear from the screen
2) you didn't even gave me the time to answer...
3) i receive a mail when you answer to me
Frown | :( (Frown | :(

ok, now, the tests in the if will almost depend on how the file is formated, and what you want to make upon ...

as i didn't well understand what does the file contain (and as it is your job to think on it Big Grin | :-D ), i just provided a base of code which you can complete depending the file content :

CString strFile = "theFile.txt";
CString strLine;
std::ifstream SourceFile(strFile);
char buffer[50];
while (!SourceFile.eof() && ::PathFileExists(strFile)) {
    SourceFile.getline(buffer, sizeof(buffer));
    strLine = buffer;
    if (!strLine.GetLength()) break;  //Do not treat empty lines
    if (strLine[0] == ';')    break;  //Do not treat lines begining with a semicolon

    //Do what you want on the line read... -> strLine <-
}
SourceFile.close();



TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: reading a data file n a specific format Pin
David Crow22-Aug-05 5:01
David Crow22-Aug-05 5:01 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 5:57
toxcct22-Aug-05 5:57 
QuestionCan anyone help me ~please~~~!! Pin
ebinaini21-Aug-05 23:31
ebinaini21-Aug-05 23:31 
AnswerRe: Can anyone help me ~please~~~!! Pin
Aamir Butt21-Aug-05 23:46
Aamir Butt21-Aug-05 23:46 
AnswerRe: Can anyone help me ~please~~~!! Pin
toxcct22-Aug-05 0:13
toxcct22-Aug-05 0:13 
Generalcustom border Pin
Nishad S21-Aug-05 23:16
Nishad S21-Aug-05 23:16 
Questioncan anyone help me.... please Pin
moodsey21121-Aug-05 22:55
moodsey21121-Aug-05 22:55 
AnswerRe: can anyone help me.... please Pin
toxcct21-Aug-05 23:00
toxcct21-Aug-05 23:00 
GeneralRe: can anyone help me.... please Pin
moodsey21121-Aug-05 23:24
moodsey21121-Aug-05 23:24 
GeneralRe: can anyone help me.... please Pin
toxcct22-Aug-05 0:10
toxcct22-Aug-05 0:10 
GeneralRe: can anyone help me.... please Pin
moodsey21122-Aug-05 14:59
moodsey21122-Aug-05 14:59 
GeneralRe: can anyone help me.... please Pin
Anonymous22-Aug-05 0:12
Anonymous22-Aug-05 0:12 
GeneralRe: can anyone help me.... please Pin
moodsey21122-Aug-05 15:09
moodsey21122-Aug-05 15:09 
GeneralRe: can anyone help me.... please Pin
Rage22-Aug-05 1:42
professionalRage22-Aug-05 1:42 
GeneralRe: can anyone help me.... please Pin
moodsey21122-Aug-05 15:19
moodsey21122-Aug-05 15:19 
AnswerRe: can anyone help me.... please Pin
Trollslayer22-Aug-05 3:16
mentorTrollslayer22-Aug-05 3:16 
GeneralRe: can anyone help me.... please Pin
moodsey21122-Aug-05 17:45
moodsey21122-Aug-05 17:45 

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.