Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Format Pin
Ryan Binns20-Jun-03 23:11
Ryan Binns20-Jun-03 23:11 
GeneralRe: Format Pin
FlyingDancer20-Jun-03 23:27
FlyingDancer20-Jun-03 23:27 
QuestionRebuild VC++ Debug Library ? Pin
Will Beattie20-Jun-03 18:40
Will Beattie20-Jun-03 18:40 
AnswerRe: Rebuild VC++ Debug Library ? Pin
Ryan Binns21-Jun-03 0:58
Ryan Binns21-Jun-03 0:58 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Will Beattie21-Jun-03 1:18
Will Beattie21-Jun-03 1:18 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Ryan Binns21-Jun-03 1:30
Ryan Binns21-Jun-03 1:30 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Will Beattie21-Jun-03 1:46
Will Beattie21-Jun-03 1:46 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Baris Kurtlutepe21-Jun-03 5:40
Baris Kurtlutepe21-Jun-03 5:40 
whybotha69 wrote:
creating a Socket in one thread and then trying to use it in another thread.

Hi, I hope you know that in order to use the MFC's socket object between two threads you should do a Detach() on the object which will give you a handle of type SOCKET, and then Attach() using that handle in the other thread. Which is basically:

- Call Detach() on the object in order to obtain the SOCKET handle
- Delete the detached object
- Create the (CSocket or CAsyncSocket) object in the second thread
- Attach the SOCKET handle to the newly created object using Attach()

The bug mentioned in Q193101 is not about this exactly, it's about creating and using sockets objects in secondary threads.
GeneralBeginer Visual C++ Tutorials Pin
YOUNGINS20-Jun-03 18:39
YOUNGINS20-Jun-03 18:39 
GeneralRe: Beginer Visual C++ Tutorials Pin
kochhar20-Jun-03 19:26
kochhar20-Jun-03 19:26 
GeneralArray of Pointers to Surfaces Pin
Anonymous20-Jun-03 17:52
Anonymous20-Jun-03 17:52 
GeneralRe: Array of Pointers to Surfaces Pin
Nick Parker20-Jun-03 18:12
protectorNick Parker20-Jun-03 18:12 
GeneralRe: Array of Pointers to Surfaces Pin
Michael Dunn20-Jun-03 18:14
sitebuilderMichael Dunn20-Jun-03 18:14 
Questioncan i send a popup message by programming in windows 98? Pin
Hendy_So20-Jun-03 16:59
Hendy_So20-Jun-03 16:59 
AnswerRe: can i send a popup message by programming in windows 98? Pin
Ryan Binns21-Jun-03 1:01
Ryan Binns21-Jun-03 1:01 
GeneralRe: can i send a popup message by programming in windows 98? Pin
Hendy_So21-Jun-03 22:42
Hendy_So21-Jun-03 22:42 
GeneralRe: can i send a popup message by programming in windows 98? Pin
Ryan Binns21-Jun-03 22:46
Ryan Binns21-Jun-03 22:46 
QuestionHow to enable Unicode character support in CRichEdit control Pin
Saqib Razzaq20-Jun-03 14:34
Saqib Razzaq20-Jun-03 14:34 
QuestionHow to return NULL when return type is user defined Pin
Anonymous20-Jun-03 13:07
Anonymous20-Jun-03 13:07 
AnswerRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 13:24
nfactorial20-Jun-03 13:24 
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 13:37
Hashim Saleem20-Jun-03 13:37 
GeneralRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 13:47
nfactorial20-Jun-03 13:47 
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 14:13
Hashim Saleem20-Jun-03 14:13 
GeneralRe: How to return NULL when return type is user defined Pin
nfactorial20-Jun-03 14:37
nfactorial20-Jun-03 14:37 
GeneralRe: How to return NULL when return type is user defined Pin
Hashim Saleem20-Jun-03 15:06
Hashim Saleem20-Jun-03 15:06 

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.