Click here to Skip to main content
15,917,620 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing Question Pin
Der M13-May-08 1:44
Der M13-May-08 1:44 
QuestionHow do I use MFC in MS VC++ 2008 Express? Pin
False Chicken8-May-08 23:41
False Chicken8-May-08 23:41 
AnswerRe: How do I use MFC in MS VC++ 2008 Express? Pin
Rajesh R Subramanian8-May-08 23:44
professionalRajesh R Subramanian8-May-08 23:44 
QuestionRe: How do I use MFC in MS VC++ 2008 Express? Pin
CPallini8-May-08 23:54
mveCPallini8-May-08 23:54 
JokeRe: How do I use MFC in MS VC++ 2008 Express? Pin
Rajesh R Subramanian8-May-08 23:56
professionalRajesh R Subramanian8-May-08 23:56 
GeneralRe: How do I use MFC in MS VC++ 2008 Express? Pin
CPallini9-May-08 0:01
mveCPallini9-May-08 0:01 
GeneralRe: How do I use MFC in MS VC++ 2008 Express? Pin
CPallini9-May-08 0:15
mveCPallini9-May-08 0:15 
GeneralRe: How do I use MFC in MS VC++ 2008 Express? Pin
Rajkumar R9-May-08 0:22
Rajkumar R9-May-08 0:22 
AnswerRe: How do I use MFC in MS VC++ 2008 Express? Pin
Rajkumar R9-May-08 0:03
Rajkumar R9-May-08 0:03 
GeneralRe: How do I use MFC in MS VC++ 2008 Express? Pin
CPallini9-May-08 0:07
mveCPallini9-May-08 0:07 
GeneralRe: How do I use MFC in MS VC++ 2008 Express? Pin
Rajkumar R9-May-08 0:19
Rajkumar R9-May-08 0:19 
AnswerRe: How do I use MFC in MS VC++ 2008 Express? Pin
Hamid_RT9-May-08 0:09
Hamid_RT9-May-08 0:09 
QuestionExit the thread after specified thread Pin
manju#1238-May-08 23:39
manju#1238-May-08 23:39 
QuestionRe: Exit the thread after specified thread Pin
CPallini8-May-08 23:55
mveCPallini8-May-08 23:55 
AnswerRe: Exit the thread after specified thread Pin
manju#1239-May-08 0:08
manju#1239-May-08 0:08 
GeneralRe: Exit the thread after specified thread Pin
CPallini9-May-08 0:11
mveCPallini9-May-08 0:11 
GeneralRe: Exit the thread after specified thread Pin
Hamid_RT9-May-08 0:23
Hamid_RT9-May-08 0:23 
GeneralRe: Exit the thread after specified thread Pin
CPallini9-May-08 0:37
mveCPallini9-May-08 0:37 
GeneralRe: Exit the thread after specified thread Pin
manju#1239-May-08 1:06
manju#1239-May-08 1:06 
GeneralRe: Exit the thread after specified thread Pin
CPallini9-May-08 1:56
mveCPallini9-May-08 1:56 
GeneralRe: Exit the thread after specified thread Pin
manju#1239-May-08 2:06
manju#1239-May-08 2:06 
GeneralRe: Exit the thread after specified thread Pin
CPallini9-May-08 2:15
mveCPallini9-May-08 2:15 
GeneralRe: Exit the thread after specified thread Pin
manju#1239-May-08 2:20
manju#1239-May-08 2:20 
here code.



////////////////////////

COleDateTime StartTime,CurrTime;
COleDateTime EndTime;
CString StTime,CurTime;

cDuration = _ttoi(linfo->sDuration);
StartTime = COleDateTime::GetCurrentTime();
CurrTime = COleDateTime::GetCurrentTime();
CurTime.Format("%02d:%02d:%02d",CurrTime.GetHour(),CurrTime.GetMinute(),CurrTime.GetSecond());
COleDateTimeSpan ts(0,0,cDuration,0);
EndTime = StartTime + ts;
StTime.Format("%02d:%02d:%02d",EndTime.GetHour(),EndTime.GetMinute(),EndTime.GetSecond());


if(linfo->bServerConnected==false)
{
if(CurTime <= StTime)
{
linfo->btimeOut = false;
}
else
linfo->btimeOut = true;


if(CurTime <= StTime)
while(linfo->btimeOut == false)
{
run the thread



if(CurTime == StTime)
{
linfo->btimeOut = true;
ExitThread(dwExitCode);
_endthread();

}
}

//////////////////////////////////////////////////////

thank you

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

GeneralRe: Exit the thread after specified thread Pin
CPallini9-May-08 3:19
mveCPallini9-May-08 3:19 
QuestionMic Detection Using mixer APIs Pin
pvn g8-May-08 23:14
pvn g8-May-08 23:14 

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.