Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralF1 invoke WinHelp, which I don't want it to Pin
lucy21-Aug-02 3:07
lucy21-Aug-02 3:07 
GeneralRe: F1 invoke WinHelp, which I don't want it to Pin
-Dy21-Aug-02 3:13
-Dy21-Aug-02 3:13 
GeneralRe: F1 invoke WinHelp, which I don't want it to Pin
lucy21-Aug-02 3:39
lucy21-Aug-02 3:39 
GeneralRe: F1 invoke WinHelp, which I don't want it to Pin
Tomasz Sowinski21-Aug-02 3:22
Tomasz Sowinski21-Aug-02 3:22 
GeneralRe: F1 invoke WinHelp, which I don't want it to Pin
lucy21-Aug-02 3:34
lucy21-Aug-02 3:34 
GeneralRasDial Pin
Anonymous21-Aug-02 3:07
Anonymous21-Aug-02 3:07 
GeneralRe: RasDial Pin
Victor Vogelpoel21-Aug-02 5:13
Victor Vogelpoel21-Aug-02 5:13 
QuestionCSocket -> not thread-safe ? Pin
Niko Tanghe21-Aug-02 3:07
Niko Tanghe21-Aug-02 3:07 
According to my experiences and some sources on the net the MFC class CSocket does not seem to be very thread-safe.
Creating the sockets (listen sockets & accepted sockets) in the main-thread and using them in another thread gives troubles...

So I tried to create all sockets in the thread function.
After calling AfxSocketInit() in the thread function (I don't know if this is correct ...) Everything seems to be fine, But the virtual functions OnAccept(), OnReceive(), ... are not called.

The attach/detach trick is not an option, because both mainthread and other thread use the sockets.

How should I handle this problem ?
Any help appreciated.

Greetings,
Niko

AnswerRe: CSocket -> not thread-safe ? Pin
Rob Caldecott21-Aug-02 3:54
Rob Caldecott21-Aug-02 3:54 
GeneralRe: CSocket -> not thread-safe ? Pin
Niko Tanghe21-Aug-02 5:51
Niko Tanghe21-Aug-02 5:51 
GeneralDebug Application Pin
Anonymous21-Aug-02 2:58
Anonymous21-Aug-02 2:58 
GeneralRe: Debug Application Pin
Tomasz Sowinski21-Aug-02 3:07
Tomasz Sowinski21-Aug-02 3:07 
GeneralRe: Debug Application Pin
fheyn21-Aug-02 3:23
fheyn21-Aug-02 3:23 
GeneralRe: Debug Application Pin
Tomasz Sowinski21-Aug-02 3:26
Tomasz Sowinski21-Aug-02 3:26 
GeneralRe: Debug Application Pin
Jason Henderson21-Aug-02 3:30
Jason Henderson21-Aug-02 3:30 
GeneralRe: Debug Application Pin
Anonymous21-Aug-02 4:01
Anonymous21-Aug-02 4:01 
Questionchart of the stock? Pin
dxhdxh21-Aug-02 2:22
dxhdxh21-Aug-02 2:22 
GeneralSet the size of the thumb of the scrollbar Pin
Eugene Pustovoyt21-Aug-02 1:52
Eugene Pustovoyt21-Aug-02 1:52 
GeneralRe: Set the size of the thumb of the scrollbar Pin
Tomasz Sowinski21-Aug-02 1:53
Tomasz Sowinski21-Aug-02 1:53 
GeneralRe: Set the size of the thumb of the scrollbar Pin
Eugene Pustovoyt21-Aug-02 4:17
Eugene Pustovoyt21-Aug-02 4:17 
GeneralCString & CString& Pin
-Dy21-Aug-02 1:46
-Dy21-Aug-02 1:46 
GeneralRe: CString & CString& Pin
Tomasz Sowinski21-Aug-02 1:51
Tomasz Sowinski21-Aug-02 1:51 
GeneralRe: CString & CString& Pin
LukeV21-Aug-02 3:39
LukeV21-Aug-02 3:39 
GeneralA question about ado&visual foxpro Pin
sages21-Aug-02 1:33
sages21-Aug-02 1:33 
GeneralFormating data before showing in datagrid Pin
Ammar21-Aug-02 1:08
Ammar21-Aug-02 1:08 

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.