Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: write vertical text using GDI+ Pin
Daniel Turini10-Oct-02 8:04
Daniel Turini10-Oct-02 8:04 
GeneralRe: write vertical text using GDI+ Pin
Anonymous10-Oct-02 8:50
Anonymous10-Oct-02 8:50 
GeneralThank you all for your help. Pin
Anonymous10-Oct-02 8:54
Anonymous10-Oct-02 8:54 
GeneralMessage Compiler Internationalization Pin
Le centriste10-Oct-02 3:31
Le centriste10-Oct-02 3:31 
GeneralTab does not work in my modeless Dialogs Pin
Anonymous10-Oct-02 3:29
Anonymous10-Oct-02 3:29 
GeneralRe: Tab does not work in my modeless Dialogs Pin
Paul M Watt10-Oct-02 5:22
mentorPaul M Watt10-Oct-02 5:22 
GeneralThreads Pin
Ruca10-Oct-02 2:59
Ruca10-Oct-02 2:59 
GeneralRe: Threads Pin
Daniel Turini10-Oct-02 3:02
Daniel Turini10-Oct-02 3:02 
Ruca wrote:
If I place the thread in Sleep, I cannot get it out of that mode until the Sleep ends.

You shouldn't be using Sleep for this. You have three choices:

1. The most complicated, but more elegant and powerful: Use WaitForSingleObject and use an event object with the timeout value being the Sleep period
2. I do not recommend, but easier: Use SuspendThread from the thread 2 for suspending thread 1. Then set some bool and ResumeThread for resuming the execution.
3. The most horrible: If the program is terminating, you can use TerminateThread

My latest articles:
XOR tricks for RAID data protection
Win32 process suspend/resume tool
GeneralRe: Threads Pin
Le centriste10-Oct-02 3:13
Le centriste10-Oct-02 3:13 
GeneralRe: Threads Pin
Daniel Turini10-Oct-02 3:12
Daniel Turini10-Oct-02 3:12 
GeneralRe: Threads Pin
Le centriste10-Oct-02 3:40
Le centriste10-Oct-02 3:40 
GeneralStrange crush Pin
Hans Ruck10-Oct-02 2:54
Hans Ruck10-Oct-02 2:54 
GeneralRe: Strange crush Pin
Daniel Turini10-Oct-02 3:54
Daniel Turini10-Oct-02 3:54 
GeneralRe: Strange crush Pin
Hans Ruck10-Oct-02 4:26
Hans Ruck10-Oct-02 4:26 
GeneralIs it a bird? Is it a plane? No! It's SuperUser Pin
Georg Haan10-Oct-02 2:46
Georg Haan10-Oct-02 2:46 
GeneralRe: Is it a bird? Is it a plane? No! It's SuperUser Pin
Daniel Turini10-Oct-02 2:51
Daniel Turini10-Oct-02 2:51 
Generalre: Pin
Georg Haan10-Oct-02 3:18
Georg Haan10-Oct-02 3:18 
GeneralRe: Is it a bird? Is it a plane? No! It's SuperUser Pin
Andreas Saurwein10-Oct-02 3:09
Andreas Saurwein10-Oct-02 3:09 
Generalre: Pin
Georg Haan10-Oct-02 3:27
Georg Haan10-Oct-02 3:27 
GeneralRe: re: Pin
Andreas Saurwein10-Oct-02 4:00
Andreas Saurwein10-Oct-02 4:00 
GeneralRe: re: Pin
Georg Haan10-Oct-02 4:18
Georg Haan10-Oct-02 4:18 
GeneralRe: re: Pin
Andreas Saurwein10-Oct-02 6:22
Andreas Saurwein10-Oct-02 6:22 
Generalabout function GetResize() Pin
Gérald Mercet10-Oct-02 2:08
Gérald Mercet10-Oct-02 2:08 
GeneralRe: about function GetResize() Pin
Stephane Rodriguez.10-Oct-02 3:17
Stephane Rodriguez.10-Oct-02 3:17 
GeneralMs Word / Office Properties and inplace grid... Pin
Braulio Dez10-Oct-02 1:10
Braulio Dez10-Oct-02 1: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.