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

C / C++ / MFC

 
GeneralRe: werwerwe Pin
ashwath200524-Aug-05 22:26
ashwath200524-Aug-05 22:26 
GeneralRe: werwerwe Pin
ThatsAlok24-Aug-05 23:31
ThatsAlok24-Aug-05 23:31 
GeneralRe: werwerwe Pin
toxcct25-Aug-05 0:08
toxcct25-Aug-05 0:08 
GeneralRe: werwerwe Pin
toxcct24-Aug-05 23:03
toxcct24-Aug-05 23:03 
QuestionManagedMFC? Pin
Uwe Keim24-Aug-05 20:11
sitebuilderUwe Keim24-Aug-05 20:11 
Generalreplies recived for"problems in file reading,Suggest best method"did not work Pin
a_david12324-Aug-05 20:02
a_david12324-Aug-05 20:02 
GeneralRe: replies recived for"problems in file reading,Suggest best method"did not work Pin
Rage24-Aug-05 20:37
professionalRage24-Aug-05 20:37 
GeneralRe: replies recived for"problems in file reading,Suggest best method"did not work Pin
MailtoGops24-Aug-05 21:00
MailtoGops24-Aug-05 21:00 
Use this code..

I used MFC...


CFile fRead;
if (fRead.Open ("test.txt",CFile::modeRead))
{
CArchive aRead(&fRead,CArchive::load);

BOOL bDataAvail;
CString csReadString;

while ((bDataAvail = aRead.ReadString(csReadString)))
{

// Don't display line with semicolon
// If you sure about the first char is semi colon
// then you can use this statment
// against current (csReadString.GetLength() > 0 && csReadString[0] == ';')

if (csReadString.GetLength () == 0 )
continue;

if(csReadString.Find(";") > -1)
{
// Don't do skipp this
continue;
}
else
{
cout << endl << endl << "Read is " << csReadString.GetBuffer (0) << endl;
int val1,val2,val3,val4;

sscanf(csReadString.GetBuffer(0),"%d%d%d",&val1,&val2,&val3);

cout << endl << "Val 1 is " << val1;
cout << endl << "Val 2 is " << val2;
cout << endl << "Val 3 is " << val3;

}

}

aRead.Close();
fRead.Close();
}





" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "

- Words from Nelson Mandela

Thanks & Regards,

Gopalakrishnan
Generaltutorial help Pin
Neelesh K J Jain24-Aug-05 19:51
Neelesh K J Jain24-Aug-05 19:51 
GeneralRe: tutorial help Pin
dharani25-Aug-05 17:43
dharani25-Aug-05 17:43 
GeneralRegarding InstallShield Pin
Neelesh K J Jain24-Aug-05 19:50
Neelesh K J Jain24-Aug-05 19:50 
GeneralFont Size Pin
TssPrasad24-Aug-05 18:22
sussTssPrasad24-Aug-05 18:22 
GeneralRe: Font Size Pin
MailtoGops24-Aug-05 19:29
MailtoGops24-Aug-05 19:29 
GeneralRe: Font Size Pin
TssPrasad24-Aug-05 19:54
sussTssPrasad24-Aug-05 19:54 
GeneralRe: Font Size Pin
Aamir Butt25-Aug-05 0:46
Aamir Butt25-Aug-05 0:46 
GeneralClearing the Buffer in a MFC View Pin
suzie10024-Aug-05 16:51
suzie10024-Aug-05 16:51 
GeneralRe: Clearing the Buffer in a MFC View Pin
Christian Graus24-Aug-05 17:31
protectorChristian Graus24-Aug-05 17:31 
GeneralRe: Clearing the Buffer in a MFC View Pin
suzie10024-Aug-05 18:50
suzie10024-Aug-05 18:50 
GeneralRe: Clearing the Buffer in a MFC View Pin
MailtoGops24-Aug-05 19:26
MailtoGops24-Aug-05 19:26 
QuestionHow to drag a customaze struct and drop? Pin
freehawk24-Aug-05 15:54
freehawk24-Aug-05 15:54 
GeneralERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite24-Aug-05 14:43
KingTermite24-Aug-05 14:43 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite25-Aug-05 4:28
KingTermite25-Aug-05 4:28 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
Blake Miller25-Aug-05 4:59
Blake Miller25-Aug-05 4:59 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
KingTermite25-Aug-05 5:15
KingTermite25-Aug-05 5:15 
GeneralRe: ERROR_MORE_DATA on RegQueryValueEx() Pin
Blake Miller25-Aug-05 5:37
Blake Miller25-Aug-05 5:37 

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.