Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialogue container Pin
mansour_ahmadian17-Aug-04 22:44
mansour_ahmadian17-Aug-04 22:44 
GeneralRasEnumConnections Problem Pin
Muhammad Asif Khan17-Aug-04 21:27
Muhammad Asif Khan17-Aug-04 21:27 
GeneralRe: RasEnumConnections Problem Pin
Antti Keskinen18-Aug-04 1:24
Antti Keskinen18-Aug-04 1:24 
QuestionHow to write algorithms of WIN32 API.? Pin
Rajesh_K_Sharma17-Aug-04 19:54
Rajesh_K_Sharma17-Aug-04 19:54 
AnswerRe: How to write algorithms of WIN32 API.? Pin
Antti Keskinen18-Aug-04 1:09
Antti Keskinen18-Aug-04 1:09 
GeneralConverting Buffer image to DC Pin
uus9917-Aug-04 19:38
uus9917-Aug-04 19:38 
Generalreal time Pin
Michae_geffen17-Aug-04 19:26
Michae_geffen17-Aug-04 19:26 
GeneralRe: real time Pin
Ryan Binns17-Aug-04 19:38
Ryan Binns17-Aug-04 19:38 
Michael geffen wrote:
I need a solution to lock the system such this two command will be always execute together without any interference.

You can't unless you use a third-party real-time extensions program. You can use SetThreadPriority() and SetPriorityClass() to give your thread realtime priority, which will give your application basically all of the CPU time. Just make sure you set the priority back to normal, or else the entire system will hang (even the clock will stop, and the mouse will become unresponsive). But even this doesn't guarantee that there won't be a context-switch in between those commands. There is nothing you can do without third-party extensions to guarantee this. Changing the thread's priority is the closest you'll get.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 3:09
Bob Stanneveld18-Aug-04 3:09 
GeneralRe: real time Pin
Ryan Binns18-Aug-04 3:26
Ryan Binns18-Aug-04 3:26 
GeneralRe: real time Pin
Bob Stanneveld18-Aug-04 7:21
Bob Stanneveld18-Aug-04 7:21 
GeneralRe: real time Pin
Michael Dunn17-Aug-04 21:03
sitebuilderMichael Dunn17-Aug-04 21:03 
QuestionHow to Record TV into PVR Pin
gao200417-Aug-04 16:42
gao200417-Aug-04 16:42 
AnswerRe: How to Record TV into PVR Pin
Antti Keskinen18-Aug-04 0:51
Antti Keskinen18-Aug-04 0:51 
GeneralRe: How to Record TV into PVR Pin
gao200418-Aug-04 15:47
gao200418-Aug-04 15:47 
GeneralRe: How to Record TV into PVR Pin
Antti Keskinen18-Aug-04 23:29
Antti Keskinen18-Aug-04 23:29 
AnswerRe: How to Record TV into PVR Pin
Henry miller18-Aug-04 4:16
Henry miller18-Aug-04 4:16 
GeneralRe: How to Record TV into PVR Pin
gao200418-Aug-04 15:49
gao200418-Aug-04 15:49 
GeneralWhich Comes First: The C or The C++ Pin
---Mark---17-Aug-04 16:12
---Mark---17-Aug-04 16:12 
GeneralRe: Which Comes First: The C or The C++ Pin
Nemanja Trifunovic17-Aug-04 16:26
Nemanja Trifunovic17-Aug-04 16:26 
GeneralRe: Which Comes First: The C or The C++ Pin
Henry miller18-Aug-04 4:24
Henry miller18-Aug-04 4:24 
GeneralNeed help! Pin
donew17-Aug-04 16:03
donew17-Aug-04 16:03 
GeneralRe: Need help! Pin
donew17-Aug-04 16:10
donew17-Aug-04 16:10 
GeneralRe: Need help! Pin
Ryan Binns17-Aug-04 19:04
Ryan Binns17-Aug-04 19:04 
GeneralRe: Need help! Pin
donew20-Aug-04 14:10
donew20-Aug-04 14:10 

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.