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

C / C++ / MFC

 
GeneralRe: reduce the size of an array of chars.... Pin
jon-804-Sep-06 6:32
professionaljon-804-Sep-06 6:32 
GeneralRe: reduce the size of an array of chars.... Pin
Waldermort4-Sep-06 6:43
Waldermort4-Sep-06 6:43 
GeneralRe: reduce the size of an array of chars.... Pin
jon-804-Sep-06 8:11
professionaljon-804-Sep-06 8:11 
QuestionControl handles Pin
Oliver1234-Sep-06 6:17
Oliver1234-Sep-06 6:17 
AnswerRe: Control handles Pin
Waldermort4-Sep-06 6:26
Waldermort4-Sep-06 6:26 
AnswerRe: Control handles Pin
gregdolley4-Sep-06 22:21
gregdolley4-Sep-06 22:21 
AnswerRe: Control handles Pin
Hamid_RT11-Sep-06 9:52
Hamid_RT11-Sep-06 9:52 
Questionscanning until the EOF Pin
Desmo164-Sep-06 6:15
Desmo164-Sep-06 6:15 
Hi all,
I have the following code:

// CODE STARTS HERE //
int i,j;
std::fstream f_load;
char appoggio[20]; // carica il nan oppure il valore numerico
CString percorso;
CFileDialog fd(TRUE, NULL, percorso, OFN_FILEMUSTEXIST | OFN_HIDEREADONLY);
fd.m_pOFN->lpstrTitle = "Carica file di osservazioni";
if (fd.DoModal() == IDOK)
{
percorso = fd.GetPathName();
UpdateData(false);
f_load.open(percorso,std::ios::in);
int contatore = 0;
do{
f_load>>appoggio;
contatore++;
}
while(f_load!=EOF);
}

// CODE ENDS HERE //

but there's something wrong in the while condition.
Which is the right while condition to scan the file until its end ?
Thanx in advance,
Desmo16.
AnswerRe: scanning until the EOF Pin
Waldermort4-Sep-06 6:30
Waldermort4-Sep-06 6:30 
GeneralRe: scanning until the EOF Pin
Desmo164-Sep-06 6:40
Desmo164-Sep-06 6:40 
GeneralRe: scanning until the EOF Pin
Waldermort4-Sep-06 6:49
Waldermort4-Sep-06 6:49 
Questionneed help Pin
amzeus4-Sep-06 6:04
amzeus4-Sep-06 6:04 
AnswerRe: need help Pin
Cedric Moonen4-Sep-06 6:12
Cedric Moonen4-Sep-06 6:12 
AnswerRe: need help Pin
Hamid_RT4-Sep-06 22:32
Hamid_RT4-Sep-06 22:32 
QuestionSir,How Can Find or See WinMain Function in Simple MFC Application ? Pin
CodeVarma4-Sep-06 5:54
CodeVarma4-Sep-06 5:54 
AnswerRe: Sir,How Can Find or See WinMain Function in Simple MFC Application ? Pin
Hamid_RT11-Sep-06 9:46
Hamid_RT11-Sep-06 9:46 
QuestionAnimation of bitmaps Pin
Fernando A. Gomez F.4-Sep-06 5:40
Fernando A. Gomez F.4-Sep-06 5:40 
AnswerRe: Animation of bitmaps Pin
Waldermort4-Sep-06 6:22
Waldermort4-Sep-06 6:22 
AnswerRe: Animation of bitmaps Pin
Hamid_RT4-Sep-06 22:30
Hamid_RT4-Sep-06 22:30 
GeneralRe: Animation of bitmaps Pin
Fernando A. Gomez F.5-Sep-06 5:05
Fernando A. Gomez F.5-Sep-06 5:05 
QuestionProfiling in VS6.0 and VS.Net 2K5 Pin
cpp_prgmer4-Sep-06 4:45
cpp_prgmer4-Sep-06 4:45 
QuestionTWAIN sample Pin
majco3334-Sep-06 4:09
majco3334-Sep-06 4:09 
AnswerRe: TWAIN sample Pin
Hillmann-20234-Sep-06 4:32
Hillmann-20234-Sep-06 4:32 
GeneralRe: TWAIN sample Pin
majco3334-Sep-06 20:44
majco3334-Sep-06 20:44 
GeneralRe: TWAIN sample Pin
Hamid_RT4-Sep-06 22:32
Hamid_RT4-Sep-06 22:32 

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.