Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to avoid flickering in CListCtrl Pin
David Crow21-Sep-07 2:40
David Crow21-Sep-07 2:40 
QuestionHelp me convert Pin
monsieur_jj19-Sep-07 16:15
monsieur_jj19-Sep-07 16:15 
AnswerRe: Help me convert Pin
monsieur_jj19-Sep-07 17:07
monsieur_jj19-Sep-07 17:07 
QuestionMemory Corruption [modified] Pin
devvvy19-Sep-07 15:59
devvvy19-Sep-07 15:59 
AnswerRe: Memory Corruption Pin
Roger Broomfield19-Sep-07 18:07
Roger Broomfield19-Sep-07 18:07 
GeneralRe: Memory Corruption Pin
devvvy19-Sep-07 18:10
devvvy19-Sep-07 18:10 
QuestionHow to Monitor an application which required kill and regenerate if hang Pin
littlecheer19-Sep-07 15:18
littlecheer19-Sep-07 15:18 
AnswerRe: Monitor an application - kill and regenerate if hang Pin
Nathan Holt at EMOM19-Sep-07 15:42
Nathan Holt at EMOM19-Sep-07 15:42 
GeneralRe: Monitor an application - kill and regenerate if hang Pin
littlecheer19-Sep-07 15:55
littlecheer19-Sep-07 15:55 
GeneralRe: Monitor an application - kill and regenerate if hang Pin
devvvy19-Sep-07 18:49
devvvy19-Sep-07 18:49 
GeneralRe: Monitor an application - kill and regenerate if hang Pin
ThatsAlok19-Sep-07 20:35
ThatsAlok19-Sep-07 20:35 
GeneralRe: Monitor an application - kill and regenerate if hang Pin
devvvy19-Sep-07 20:43
devvvy19-Sep-07 20:43 
GeneralRe: Monitor an application - kill and regenerate if hang Pin
littlecheer19-Sep-07 22:26
littlecheer19-Sep-07 22:26 
QuestionMessage Removed Pin
19-Sep-07 12:01
Armond Sarkisian19-Sep-07 12:01 
AnswerRe: Checking for downloadable link Pin
Mark Salsbery19-Sep-07 12:13
Mark Salsbery19-Sep-07 12:13 
GeneralMessage Removed Pin
19-Sep-07 12:16
Armond Sarkisian19-Sep-07 12:16 
GeneralRe: Checking for downloadable link Pin
ThatsAlok19-Sep-07 20:36
ThatsAlok19-Sep-07 20:36 
QuestionGPS Open just right after Close=> Error Pin
shpid3r19-Sep-07 11:04
shpid3r19-Sep-07 11:04 
AnswerRe: GPS Open just right after Close=> Error Pin
Nathan Holt at EMOM19-Sep-07 11:34
Nathan Holt at EMOM19-Sep-07 11:34 
shpid3r wrote:
Because I don`t want it to just ignore the push of the button, I did
do {}while(flagThreadStopped!=true)
so now, everything stops if the user starts the gps in those critical 5 seconds. It resumes, after the flag gets set, but I think if there could be another solution.
It's not a critical problem now, as I'm developing the concept, but... later on, it could be. Ideas ?


I would add a status message to indicate whether the GPS is off, on, or turning off. I would also set it up to disable the "on" button when turning the GPS on isn't workable. I would set up a timer to update the UI a few times a second, as well as updating it whenever a button is pressed. Also, there's no need to set a flag if the background thread is really exiting. You can call a wait function (WaitSingleObject etc.) on the thread handle, which is considered signaled when the thread exits. When updating your UI, you can do the wait with a time out of 0, and check the return value for status info.

Nathan
AnswerRe: GPS Open just right after Close=> Error Pin
shpid3r19-Sep-07 15:00
shpid3r19-Sep-07 15:00 
GeneralRe: GPS Open just right after Close=> Error Pin
Nathan Holt at EMOM19-Sep-07 15:12
Nathan Holt at EMOM19-Sep-07 15:12 
GeneralRe: GPS Open just right after Close=> Error Pin
shpid3r19-Sep-07 15:29
shpid3r19-Sep-07 15:29 
GeneralRe: GPS Open just right after Close=> Error Pin
Nathan Holt at EMOM19-Sep-07 15:37
Nathan Holt at EMOM19-Sep-07 15:37 
Questionhow to get a memory address into a CString Pin
USAFHokie8019-Sep-07 10:46
USAFHokie8019-Sep-07 10:46 
QuestionRe: how to get a memory address into a CString Pin
David Crow19-Sep-07 10:58
David Crow19-Sep-07 10:58 

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.