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

C / C++ / MFC

 
GeneralMAPISendDocuments on Win2K functioned not, with a CreateProcess call by a Printer PortMonitor Pin
Karl Bauer9-Feb-03 22:22
Karl Bauer9-Feb-03 22:22 
GeneralChange the IP Pin
Sonu Kapoor9-Feb-03 22:16
Sonu Kapoor9-Feb-03 22:16 
GeneralRe: Change the IP Pin
jhwurmbach9-Feb-03 23:23
jhwurmbach9-Feb-03 23:23 
GeneralTVM_GETISEARCHSTRING Pin
Tibor Blazko9-Feb-03 21:37
Tibor Blazko9-Feb-03 21:37 
Generalstd::sort(....) -> error C2039: 'sort' : is not a member of 'std' Pin
whofmans9-Feb-03 20:50
whofmans9-Feb-03 20:50 
GeneralRe: std::sort(....) -> error C2039: 'sort' : is not a member of 'std' Pin
Chris Losinger9-Feb-03 20:54
professionalChris Losinger9-Feb-03 20:54 
GeneralRe: std::sort(....) -> error C2039: 'sort' : is not a member of 'std' Pin
whofmans9-Feb-03 21:11
whofmans9-Feb-03 21:11 
GeneralThreading related question Pin
Shah Shehpori9-Feb-03 20:23
sussShah Shehpori9-Feb-03 20:23 
Hi,

Consider a thread function:

MyThreadFunc()
{
 // do something

        <code> Sleep(50000);</code>

 // do something

    return;
}


As can be seen above that my thread blocks in the middle. What i want is that whenever user close my application, all the threads no matter what are they doing should first end gracefully but immediately. But suppose that my thread is stick on some blocking operation as shown in above code. How can i immediately cancel this blocking call and ask the thread to exit properly?? Infact i am using events after every next statements to check their status and exit my threads, but under such situations where the thread is stuck in a long blocking call my application waits like a hell. I want to immediately finish this thread. How ???

Example: In MSN messenger there is an option of cancel sign in. If we select this option then the connecting thread "immediately" stops working. Of course this thread calls various blocking Winsock calls especially for domain resolving, but it ends immediately.
GeneralRe: Threading related question Pin
Arjan Schouten9-Feb-03 21:20
Arjan Schouten9-Feb-03 21:20 
GeneralRe: Threading related question Pin
Sparticus9-Feb-03 21:24
Sparticus9-Feb-03 21:24 
GeneralRe: Threading related question Pin
Jambolo9-Feb-03 21:25
Jambolo9-Feb-03 21:25 
GeneralRe: Threading related question Pin
Mike Nordell10-Feb-03 2:30
Mike Nordell10-Feb-03 2:30 
Generalsystem tray Pin
Member 1055909-Feb-03 19:14
Member 1055909-Feb-03 19:14 
GeneralRe: system tray Pin
JohnJ9-Feb-03 19:25
JohnJ9-Feb-03 19:25 
Generalthanks Pin
Member 1055909-Feb-03 19:33
Member 1055909-Feb-03 19:33 
GeneralRe: thanks Pin
Dreamsky9-Feb-03 20:26
Dreamsky9-Feb-03 20:26 
GeneralRichEdit control with links Pin
hongheo769-Feb-03 18:21
hongheo769-Feb-03 18:21 
Questionmultiple threaded dll?? Pin
xxhimanshu9-Feb-03 18:08
xxhimanshu9-Feb-03 18:08 
GeneralZOrder problems with CScrollView Pin
DominicG9-Feb-03 17:11
DominicG9-Feb-03 17:11 
GeneralRe: ZOrder problems with CScrollView Pin
KaЯl9-Feb-03 21:25
KaЯl9-Feb-03 21:25 
GeneralIs there any simple way to distribute Visual C++ 6.0 (work with DAO & MS Access 2000) Pin
Anh Truong9-Feb-03 17:07
Anh Truong9-Feb-03 17:07 
GeneralRe: Is there any simple way to distribute Visual C++ 6.0 (work with DAO & MS Access 2000) Pin
Pavel Klocek9-Feb-03 23:01
Pavel Klocek9-Feb-03 23:01 
GeneralCListCtrl not visible within nested PropertySheet Pin
Bonnie29-Feb-03 14:35
Bonnie29-Feb-03 14:35 
GeneralRe: CListCtrl not visible within nested PropertySheet Pin
Roger Allen10-Feb-03 6:27
Roger Allen10-Feb-03 6:27 
Generalplease help !! multiple document/views Pin
Perseus9-Feb-03 12:45
Perseus9-Feb-03 12:45 

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.