Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUnable to initialize DAO/Jet db engine error on clean win98 system Pin
Rob Bechamp16-May-01 3:29
Rob Bechamp16-May-01 3:29 
GeneralRe: Unable to initialize DAO/Jet db engine error on clean win98 system Pin
Tomasz Sowinski16-May-01 3:49
Tomasz Sowinski16-May-01 3:49 
GeneralRe: Unable to initialize DAO/Jet db engine error on clean win98 system Pin
Rob Bechamp16-May-01 4:30
Rob Bechamp16-May-01 4:30 
GeneralRe: Unable to initialize DAO/Jet db engine error on clean win98 system Pin
16-May-01 4:40
suss16-May-01 4:40 
GeneralRe: Unable to initialize DAO/Jet db engine error on clean win98 system Pin
Tomasz Sowinski16-May-01 4:42
Tomasz Sowinski16-May-01 4:42 
GeneralRe: Unable to initialize DAO/Jet db engine error on clean win98 system Pin
Rob Bechamp16-May-01 5:17
Rob Bechamp16-May-01 5:17 
GeneralSystem Specs Pin
16-May-01 3:20
suss16-May-01 3:20 
GeneralC++ Misery Pin
16-May-01 0:33
suss16-May-01 0:33 
Hi,
Help, I can't seem to get this code right.. it's part of a file loading routine, what I am trying to do is basically find the 'fieldname', and fill 'out' with the next line that comes after it.. It works if the fieldname is present, however, if the fieldname is not present in the input file, the routine just gets stuck in the do..while loop, all help is appreciated!!


bool pPolyhedra::getfield(char *fieldname, CString& out)
{

CString a;
// Eat lines untill we encounter the fieldname, or after we have exhausted the file

do
{
ifile->getline(linebuffer, 255, '\n');
a=linebuffer;
} while (a.Find(fieldname)==-1 || ifile->eof());

if (!ifile->eof())
{
ifile->getline(linebuffer, 255, '\n');
out=linebuffer;
out.TrimRight();
return true;
}

return false;
}
GeneralRe: C++ Misery Pin
#realJSOP16-May-01 0:51
professional#realJSOP16-May-01 0:51 
GeneralNT Service shutdown. Pin
Flit16-May-01 0:21
Flit16-May-01 0:21 
GeneralOwnerdrawn ListBox and Tab Stops Pin
Baz16-May-01 0:17
Baz16-May-01 0:17 
GeneralRe: Ownerdrawn ListBox and Tab Stops Pin
Tomasz Sowinski16-May-01 0:28
Tomasz Sowinski16-May-01 0:28 
GeneralRe: Ownerdrawn ListBox and Tab Stops Pin
Baz16-May-01 0:39
Baz16-May-01 0:39 
GeneralHiding the messageboxes that appear on file errors Pin
Joan M15-May-01 23:37
professionalJoan M15-May-01 23:37 
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Tomasz Sowinski16-May-01 0:03
Tomasz Sowinski16-May-01 0:03 
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Joan M16-May-01 4:58
professionalJoan M16-May-01 4:58 
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Tomasz Sowinski16-May-01 5:15
Tomasz Sowinski16-May-01 5:15 
GeneralFlushing data into the registry (How to?) Pin
Joan M15-May-01 23:21
professionalJoan M15-May-01 23:21 
Questionhow to change a char to an int Pin
hearties15-May-01 22:28
hearties15-May-01 22:28 
AnswerRe: how to change a char to an int Pin
Christian Graus15-May-01 22:31
protectorChristian Graus15-May-01 22:31 
GeneralRe: how to change a char to an int Pin
hearties15-May-01 22:36
hearties15-May-01 22:36 
GeneralRe: how to change a char to an int Pin
Christian Graus15-May-01 22:43
protectorChristian Graus15-May-01 22:43 
AnswerRe: how to change a char to an int Pin
Michael Dunn16-May-01 5:34
sitebuilderMichael Dunn16-May-01 5:34 
GeneralThe good use of AddDocTemplate() Pin
15-May-01 21:33
suss15-May-01 21:33 
GeneralSMTP - Client Pin
Gunnar Mätzler15-May-01 20:57
Gunnar Mätzler15-May-01 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.