Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw20-Nov-04 11:03
John R. Shaw20-Nov-04 11:03 
GeneralCEdit subclass question Pin
nguyenvhn13-Nov-04 6:48
nguyenvhn13-Nov-04 6:48 
GeneralRe: CEdit subclass question Pin
BlackDice13-Nov-04 11:39
BlackDice13-Nov-04 11:39 
GeneralRe: CEdit subclass question Pin
nguyenvhn13-Nov-04 14:46
nguyenvhn13-Nov-04 14:46 
GeneralRe: CEdit subclass question Pin
John R. Shaw13-Nov-04 17:29
John R. Shaw13-Nov-04 17:29 
GeneralRe: CEdit subclass question Pin
Ravi Bhavnani13-Nov-04 23:21
professionalRavi Bhavnani13-Nov-04 23:21 
GeneralCAsyncSocket Question Pin
Rassul Yunussov13-Nov-04 0:01
Rassul Yunussov13-Nov-04 0:01 
Generaltime critical thread Pin
LeeeNN12-Nov-04 20:17
LeeeNN12-Nov-04 20:17 
In my projrct. I create a thread to poll data at about 100ms interval.
MyThread()
{
for(;;)
{
polling port;
process data;
Sleep(100);
}
}
Normally it runs OK. but when there is a operation like open a IDE with many files. the data is lost. that means MyThread did not poll port for more than 150ms. I know Windows is multi-tasking, Sleep() is not guranteed. But I want to try rise this MyThread's priority as TIME_CRITICAL, it still lost data, and then I know the thread priority changes dynamically. Well How Could I let this piece of code (MyThread) run at a about contain interval. I think many people have this knid of problem, There must a certain way.
Thank u in advance.Confused | :confused: Confused | :confused: Sigh | :sigh: Sigh | :sigh:
GeneralRe: time critical thread Pin
Michael Dunn13-Nov-04 5:39
sitebuilderMichael Dunn13-Nov-04 5:39 
GeneralRe: time critical thread Pin
Anonymous13-Nov-04 9:57
Anonymous13-Nov-04 9:57 
GeneralRe: time critical thread Pin
John R. Shaw13-Nov-04 17:49
John R. Shaw13-Nov-04 17:49 
GeneralPostThreadMessage Pin
includeh1012-Nov-04 19:17
includeh1012-Nov-04 19:17 
GeneralRe: PostThreadMessage Pin
peterchen12-Nov-04 19:50
peterchen12-Nov-04 19:50 
Questionemail ? Pin
BaldwinMartin12-Nov-04 18:25
BaldwinMartin12-Nov-04 18:25 
GeneralCTreeCtrl item display limit or multiline Pin
Pakosan12-Nov-04 18:02
Pakosan12-Nov-04 18:02 
GeneralHelp :: can't include afximpl.h in VC++.NET Pin
TooLeeDiN12-Nov-04 17:19
TooLeeDiN12-Nov-04 17:19 
GeneralOpen a specific file in a MFC single document Pin
Iceberg7612-Nov-04 17:05
Iceberg7612-Nov-04 17:05 
GeneralRe: Open a specific file in a MFC single document Pin
pubududilena12-Nov-04 20:36
pubududilena12-Nov-04 20:36 
GeneralRe: Open a specific file in a MFC single document Pin
Iceberg7613-Nov-04 11:29
Iceberg7613-Nov-04 11:29 
QuestionHow to add Picture to Label or Edit Control? Pin
pubududilena12-Nov-04 16:54
pubududilena12-Nov-04 16:54 
QuestionWhat to replace TcpListener? Pin
Link260012-Nov-04 16:53
Link260012-Nov-04 16:53 
QuestionHow to get a the file created or modified date Pin
Anonymous12-Nov-04 14:05
Anonymous12-Nov-04 14:05 
AnswerRe: How to get a the file created or modified date Pin
gamitech13-Nov-04 12:08
gamitech13-Nov-04 12:08 
AnswerRe: How to get a the file created or modified date Pin
Ravi Bhavnani13-Nov-04 23:25
professionalRavi Bhavnani13-Nov-04 23:25 
AnswerRe: How to get a the file created or modified date Pin
Michael Dunn14-Nov-04 5:55
sitebuilderMichael Dunn14-Nov-04 5:55 

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.