Click here to Skip to main content
15,898,987 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do i assign a path to each item? Pin
dazinith15-May-02 8:26
dazinith15-May-02 8:26 
GeneralRe: How do i assign a path to each item? Pin
redeemer15-May-02 8:29
redeemer15-May-02 8:29 
GeneralRe: How do i assign a path to each item? Pin
Paul M Watt15-May-02 8:35
mentorPaul M Watt15-May-02 8:35 
GeneralCan i assign an entire string to lParam? Pin
redeemer15-May-02 8:37
redeemer15-May-02 8:37 
GeneralRe: How do i assign a path to each item? Pin
Paul M Watt15-May-02 8:34
mentorPaul M Watt15-May-02 8:34 
GeneralCan i assign an entire string to lParam? Pin
redeemer15-May-02 8:37
redeemer15-May-02 8:37 
Generalwinsock servers ... console apps... Pin
l a u r e n15-May-02 7:30
l a u r e n15-May-02 7:30 
GeneralRe: winsock servers ... console apps... Pin
Paul M Watt15-May-02 8:02
mentorPaul M Watt15-May-02 8:02 
You still have access to the synchronization functions like WaitForSingleObject. So if there is some sort of event that you can set to wake up your thread that would be the best solution. The types of objects you can use are:


  • Change notification

  • Console input

  • Event

  • Job

  • Mutex

  • Process

  • Semaphore

  • Thread

  • Waitable timer



You can also set a timeout value so that your thread wakes up automatically if the timeout expires. Just remember to include Windows.h if you want to go this route.

Or you could simply tell your program to sleep, but that still takes up a lot of processing power depending on how long you tell your app to sleep.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: winsock servers ... console apps... Pin
Anders Molin15-May-02 8:03
professionalAnders Molin15-May-02 8:03 
GeneralRe: winsock servers ... console apps... Pin
Nemanja Trifunovic15-May-02 8:17
Nemanja Trifunovic15-May-02 8:17 
GeneralRe: winsock servers ... console apps... Pin
Amit Dey15-May-02 10:19
Amit Dey15-May-02 10:19 
Generalpopup menu font sizing Pin
jimNLX15-May-02 7:10
jimNLX15-May-02 7:10 
GeneralRe: popup menu font sizing Pin
Paul M Watt15-May-02 8:12
mentorPaul M Watt15-May-02 8:12 
GeneralOnly if WTL had AfxGetMainWnd Pin
Mike.NET15-May-02 7:13
Mike.NET15-May-02 7:13 
GeneralRe: Only if WTL had AfxGetMainWnd Pin
Paul M Watt15-May-02 7:47
mentorPaul M Watt15-May-02 7:47 
GeneralDisplaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Dean Michaud15-May-02 6:34
Dean Michaud15-May-02 6:34 
GeneralRe: Displaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Paul M Watt15-May-02 7:05
mentorPaul M Watt15-May-02 7:05 
GeneralRe: Displaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Dean Michaud15-May-02 7:22
Dean Michaud15-May-02 7:22 
Generalwebbrowser control question Pin
Jason Henderson15-May-02 6:30
Jason Henderson15-May-02 6:30 
GeneralRe: webbrowser control question Pin
Paul M Watt15-May-02 7:19
mentorPaul M Watt15-May-02 7:19 
GeneralPassing PVOID through VARIANT Pin
Hans Ruck15-May-02 6:25
Hans Ruck15-May-02 6:25 
GeneralRe: Passing PVOID through VARIANT Pin
Chris Losinger15-May-02 11:48
professionalChris Losinger15-May-02 11:48 
GeneralProgram only runs within IDE Pin
David Chamberlain15-May-02 6:11
David Chamberlain15-May-02 6:11 
GeneralRe: Program only runs within IDE Pin
Paul M Watt15-May-02 6:18
mentorPaul M Watt15-May-02 6:18 
GeneralRe: Program only runs within IDE Pin
David Chamberlain15-May-02 6:51
David Chamberlain15-May-02 6:51 

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.