Click here to Skip to main content
15,892,746 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Visual C++ 2005 Express Edition SP1 Pin
Epi14-Mar-07 3:51
Epi14-Mar-07 3:51 
Questioncrossing thread boundary Pin
aljodav4-Mar-07 11:35
aljodav4-Mar-07 11:35 
AnswerRe: crossing thread boundary Pin
User 5838524-Mar-07 13:44
User 5838524-Mar-07 13:44 
QuestionWhat is wrong with this ? ? ? Pin
Zealous_Me4-Mar-07 9:43
Zealous_Me4-Mar-07 9:43 
AnswerRe: What is wrong with this ? ? ? Pin
Newbie004-Mar-07 10:06
Newbie004-Mar-07 10:06 
AnswerRe: What is wrong with this ? ? ? [modified] Pin
prasad_som4-Mar-07 16:56
prasad_som4-Mar-07 16:56 
AnswerRe: What is wrong with this ? ? ? Pin
toxcct5-Mar-07 5:18
toxcct5-Mar-07 5:18 
QuestionStrings......Okay this is probably well known, but.... Pin
Giles4-Mar-07 4:37
Giles4-Mar-07 4:37 
AnswerRe: Strings......Okay this is probably well known, but.... Pin
Newbie004-Mar-07 5:08
Newbie004-Mar-07 5:08 
GeneralRe: Strings......Okay this is probably well known, but.... Pin
Giles4-Mar-07 5:13
Giles4-Mar-07 5:13 
QuestionI need help about multithreading in TCPListener ... Pin
Nonreturn1-Mar-07 16:49
Nonreturn1-Mar-07 16:49 
AnswerRe: I need help about multithreading in TCPListener ... Pin
led mike2-Mar-07 6:01
led mike2-Mar-07 6:01 
GeneralRe: I need help about multithreading in TCPListener ... Pin
Nonreturn5-Mar-07 14:09
Nonreturn5-Mar-07 14:09 
GeneralRe: I need help about multithreading in TCPListener ... Pin
led mike6-Mar-07 4:28
led mike6-Mar-07 4:28 
Questionsomethings wrong Pin
Kiethnt1-Mar-07 16:34
Kiethnt1-Mar-07 16:34 
GeneralRe: somethings wrong Pin
prasad_som1-Mar-07 17:14
prasad_som1-Mar-07 17:14 
Questioncomplete Pin
Kiethnt1-Mar-07 16:22
Kiethnt1-Mar-07 16:22 
GeneralRe: complete Pin
prasad_som1-Mar-07 17:11
prasad_som1-Mar-07 17:11 
QuestionHelp Pin
Spartan161-Mar-07 9:54
Spartan161-Mar-07 9:54 
AnswerRe: Help Pin
Newbie001-Mar-07 11:11
Newbie001-Mar-07 11:11 
AnswerRe: Help Pin
Mark Salsbery1-Mar-07 11:32
Mark Salsbery1-Mar-07 11:32 
AnswerRe: Help Pin
led mike1-Mar-07 11:41
led mike1-Mar-07 11:41 
AnswerRe: Help Pin
Christian Graus1-Mar-07 13:03
protectorChristian Graus1-Mar-07 13:03 
GeneralRe: Help Pin
Spartan162-Mar-07 6:32
Spartan162-Mar-07 6:32 
QuestionRead from file into array Pin
JBAK_CP1-Mar-07 2:33
JBAK_CP1-Mar-07 2:33 
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));

//---------------------------------------------------------------------------------------------------------

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.