Click here to Skip to main content
15,867,327 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating a SDI window from a dialog (MFC) Pin
Mark Salsbery1-Mar-07 7:28
Mark Salsbery1-Mar-07 7:28 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian1-Mar-07 8:32
sascha.billian1-Mar-07 8:32 
QuestionRe: Creating a SDI window from a dialog (MFC) Pin
Mark Salsbery1-Mar-07 8:53
Mark Salsbery1-Mar-07 8:53 
AnswerRe: Creating a SDI window from a dialog (MFC) Pin
led mike1-Mar-07 11:38
led mike1-Mar-07 11:38 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian5-Mar-07 2:08
sascha.billian5-Mar-07 2:08 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
led mike5-Mar-07 6:42
led mike5-Mar-07 6:42 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian6-Mar-07 19:41
sascha.billian6-Mar-07 19:41 
QuestionRead from file into array Pin
JBAK_CP1-Mar-07 3:42
JBAK_CP1-Mar-07 3:42 
I'm currently using 'fgets' to read a file like the sample below, and need to do some processing on it.....My first question is, is there a way for me to read the X,Y & Z data and store them into a multi-dimensional array? Secondly, the number of entries for the X,Y & Z data can vary from one file to another, so if an array is to be used, it has to be able to be sized dynamically.

using C++, Visual Studio 6.0

Any help would be greatly apperciated, thanks:

Sample File Data:

Name: Test
Date: mm/dd/yyyy

X Y Z

404.72 1064.42 60
402.224 1064.58 60
399.728 1064.75 60

Description: This is a test

//---------------------------------------------------------------------------------------------------------
Here is the code I have so far:

CFile importFile;
importFile.Open(fullName, CFile::modeRead);

CArchive ar (&importFile, CArchive::load);

if(!ar.ReadString(strLine))
{
importFile.Close();
return;
}

do // Repeat while there are lines in the file left to process
{
if( strLine.GetLength() == 0)
{ continue;

}

CString strText = strLine;

if(strText.GetLength() != 0)
MessageBox(strText,NULL,NULL);


}while(ar.ReadString(strLine));


AnswerRe: Read from file into array Pin
David Crow1-Mar-07 3:46
David Crow1-Mar-07 3:46 
GeneralRe: Read from file into array Pin
JBAK_CP1-Mar-07 3:53
JBAK_CP1-Mar-07 3:53 
GeneralRe: Read from file into array Pin
David Crow1-Mar-07 3:58
David Crow1-Mar-07 3:58 
QuestionProblems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 3:21
Asdef Jaker1-Mar-07 3:21 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 3:40
prasad_som1-Mar-07 3:40 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 4:27
Asdef Jaker1-Mar-07 4:27 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 5:34
prasad_som1-Mar-07 5:34 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Chris Losinger1-Mar-07 5:29
professionalChris Losinger1-Mar-07 5:29 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 5:54
sitebuilderMichael Dunn1-Mar-07 5:54 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 6:30
James R. Twine1-Mar-07 6:30 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 10:06
sitebuilderMichael Dunn1-Mar-07 10:06 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 6:24
James R. Twine1-Mar-07 6:24 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 6:47
Asdef Jaker1-Mar-07 6:47 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 7:05
James R. Twine1-Mar-07 7:05 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 7:19
Asdef Jaker1-Mar-07 7:19 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 8:46
James R. Twine1-Mar-07 8:46 
Questionstd::string Pin
LCI1-Mar-07 3:20
LCI1-Mar-07 3:20 

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.