Click here to Skip to main content
15,902,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem of Dll Pin
Abhijit A8-May-08 20:40
Abhijit A8-May-08 20:40 
AnswerRe: Problem of Dll Pin
Cedric Moonen8-May-08 20:52
Cedric Moonen8-May-08 20:52 
AnswerRe: Problem of Dll [modified] Pin
Rajkumar R8-May-08 20:59
Rajkumar R8-May-08 20:59 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 21:36
Nitheesh George8-May-08 21:36 
JokeRe: Problem of Dll Pin
Rajkumar R8-May-08 21:41
Rajkumar R8-May-08 21:41 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 21:38
Nitheesh George8-May-08 21:38 
AnswerRe: Problem of Dll Pin
Nitheesh George8-May-08 22:39
Nitheesh George8-May-08 22:39 
QuestionFind the specified string and increment Pin
manju#1238-May-08 20:36
manju#1238-May-08 20:36 
Hi all..
I am TRYING TO write to a log file if any ERROR or information or warning messages in theformat

TSI0001 "iNFORMATION Message".
TSW0001 "WARNING Message".
TSE0001 "WARNING Message"...

so each time if any information or error message comes i should find the last inforamtion or erroe message and increment that no

example

TSI0001 "iNFORMATION Message".
TSW0001 "WARNING Message".
TSE0001 "WARNING Message"...
TSI0002 "iNFORMATION Message".
TSW0002 "WARNING Message".
TSE0002 "WARNING Message"...

please help me....


I am trying this code.
///////////////////////////////////////

switch(cType)
{
case 'W':
{
int iTSWCount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSW",0); if(iWPos!= 0)
{
iTSWCount++;
}



}
iCount = iTSWCount;
logfile<<"TSWOO"<<Warning;
break;
}
case 'I':
{
int iTSICount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSI",0);
if(iWPos != 0)
{
iTSICount++;
}

}
iCount = iTSICount;
logfile<<"TSWOO"<<Warning;

break;
}
case 'E':
{
int iTSECount = 0;
while(!inFile.eof())
{
inFile.getline(aLine,1000);
int iWPos = strLine.Find("TSE",0);
if(iWPos!= 0)
{
iTSECount++;
}
iCount = iTSECount;

}
iCount = iTSECount;
logfile<<"TSWOO"<<Warning;

break;
}
//////////////////////////////////////////////////////////////////////

thank you in advance

manju

Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju

AnswerRe: Find the specified string and increment Pin
Nitheesh George8-May-08 21:19
Nitheesh George8-May-08 21:19 
GeneralRe: Find the specified string and increment Pin
manju#1238-May-08 23:08
manju#1238-May-08 23:08 
AnswerRe: Find the specified string and increment Pin
Nitheesh George8-May-08 21:28
Nitheesh George8-May-08 21:28 
GeneralRe: Find the specified string and increment Pin
manju#1238-May-08 23:34
manju#1238-May-08 23:34 
QuestionIs there any method to check for a valid hwnd from an another thread? Pin
namaskaaram8-May-08 19:44
namaskaaram8-May-08 19:44 
AnswerRe: Is there any method to check for a valid hwnd from an another thread? Pin
Stephen Hewitt8-May-08 19:52
Stephen Hewitt8-May-08 19:52 
AnswerRe: Is there any method to check for a valid hwnd from an another thread? Pin
asrelu10-May-08 22:52
asrelu10-May-08 22:52 
QuestionHow to Save Text File in SDI application Pin
phanindra varma8-May-08 19:05
phanindra varma8-May-08 19:05 
QuestionRe: How to Save Text File in SDI application Pin
Rajesh R Subramanian8-May-08 19:20
professionalRajesh R Subramanian8-May-08 19:20 
GeneralRe: How to Save Text File in SDI application Pin
Rajkumar R8-May-08 20:07
Rajkumar R8-May-08 20:07 
GeneralRe: How to Save Text File in SDI application Pin
Hamid_RT8-May-08 20:34
Hamid_RT8-May-08 20:34 
GeneralRe: How to Save Text File in SDI application Pin
Rajesh R Subramanian8-May-08 20:36
professionalRajesh R Subramanian8-May-08 20:36 
GeneralRe: How to Save Text File in SDI application Pin
Rajkumar R8-May-08 21:05
Rajkumar R8-May-08 21:05 
AnswerRe: How to Save Text File in SDI application Pin
Nitheesh George8-May-08 19:38
Nitheesh George8-May-08 19:38 
AnswerRe: How to Save Text File in SDI application Pin
Rajkumar R8-May-08 20:22
Rajkumar R8-May-08 20:22 
GeneralRe: How to Save Text File in SDI application Pin
phanindra varma9-May-08 1:13
phanindra varma9-May-08 1:13 
GeneralRe: How to Save Text File in SDI application Pin
Rajkumar R9-May-08 4:08
Rajkumar R9-May-08 4:08 

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.