Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to tokenize the string Pin
David Crow5-Oct-04 5:08
David Crow5-Oct-04 5:08 
GeneralConvert to Unicode Pin
parths4-Oct-04 21:48
parths4-Oct-04 21:48 
GeneralRe: Convert to Unicode Pin
Robert A. T. Káldy5-Oct-04 0:27
Robert A. T. Káldy5-Oct-04 0:27 
GeneralRe: Convert to Unicode Pin
parths5-Oct-04 0:54
parths5-Oct-04 0:54 
GeneralRe: Convert to Unicode Pin
Robert A. T. Káldy5-Oct-04 6:09
Robert A. T. Káldy5-Oct-04 6:09 
GeneralRe: Convert to Unicode Pin
parths5-Oct-04 23:32
parths5-Oct-04 23:32 
GeneralRe: Convert to Unicode Pin
Robert A. T. Káldy8-Oct-04 4:29
Robert A. T. Káldy8-Oct-04 4:29 
GeneralThreading Question Pin
raed4-Oct-04 21:41
raed4-Oct-04 21:41 
Hello:
I have MFC Dialogue based application , In the application I need to check the system time say for (12:00 AM) while the application is running , to do some code . I see that i should use worker threads , I read about it and tried to implement but with no avail.

I will wrote what i did :

in OnInitDialog()
_beginthreadex(NULL,0,myThread,NULL,0,0);

and my thread is :

UINT uCheckTime(LPVOID)
{
CCriticalSection cs;
cs.Lock();
SYSTEMTIME SystemTime;
GetSystemTime(&SystemTime);
DWORD dwHour = SystemTime.wHour + 2 ;

if(dwHour >= 13 )
{
//Do some work......
}
cs.Unlock();
return 0;
}
here this thread never fired!!

What can I do ?

Regards
GeneralRe: Threading Question Pin
Sujan Christo4-Oct-04 22:00
Sujan Christo4-Oct-04 22:00 
GeneralRe: Threading Question Pin
Niklas L4-Oct-04 22:05
Niklas L4-Oct-04 22:05 
GeneralRe: Threading Question Pin
Bob Stanneveld4-Oct-04 22:25
Bob Stanneveld4-Oct-04 22:25 
GeneralRe: Threading Question Pin
digwizfox5-Oct-04 6:35
digwizfox5-Oct-04 6:35 
GeneralRe: Threading Question Pin
Bob Stanneveld5-Oct-04 8:15
Bob Stanneveld5-Oct-04 8:15 
GeneralCheck box in Grid Pin
Cedric Moonen4-Oct-04 20:24
Cedric Moonen4-Oct-04 20:24 
Questionhow to include classes written by other in my project? Pin
tip23104-Oct-04 19:45
tip23104-Oct-04 19:45 
AnswerRe: how to include classes written by other in my project? Pin
2249174-Oct-04 20:13
2249174-Oct-04 20:13 
GeneralFloat/Double rounding off Pin
Imtiaz Murtaza4-Oct-04 19:35
Imtiaz Murtaza4-Oct-04 19:35 
GeneralRe: Float/Double rounding off Pin
mahade14-Oct-04 20:10
mahade14-Oct-04 20:10 
Generalplease C++ expert help me. Pin
Anonymous4-Oct-04 18:36
Anonymous4-Oct-04 18:36 
GeneralRe: please C++ expert help me. Pin
toxcct4-Oct-04 23:08
toxcct4-Oct-04 23:08 
GeneralRe: please C++ expert help me. Pin
Ravi Bhavnani5-Oct-04 2:36
professionalRavi Bhavnani5-Oct-04 2:36 
Generalplease C++ expert help me. Pin
Anonymous4-Oct-04 18:35
Anonymous4-Oct-04 18:35 
GeneralColor gradients question Pin
alex.barylski4-Oct-04 17:12
alex.barylski4-Oct-04 17:12 
GeneralRe: Color gradients question Pin
Ryan Binns4-Oct-04 18:09
Ryan Binns4-Oct-04 18:09 
GeneralRe: Color gradients question Pin
alex.barylski4-Oct-04 20:04
alex.barylski4-Oct-04 20:04 

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.