Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC CBitmap LoadBitmap() Pin
tom7620-Jun-03 23:49
tom7620-Jun-03 23:49 
GeneralRe: MFC CBitmap LoadBitmap() Pin
Ryan Binns21-Jun-03 0:53
Ryan Binns21-Jun-03 0:53 
GeneralRe: MFC CBitmap LoadBitmap() Pin
tom7621-Jun-03 1:53
tom7621-Jun-03 1:53 
GeneralRe: MFC CBitmap LoadBitmap() Pin
Ryan Binns21-Jun-03 2:02
Ryan Binns21-Jun-03 2:02 
QuestionHow to read and write CD-ROM Pin
happywan20-Jun-03 23:24
happywan20-Jun-03 23:24 
GeneralWeb page memory Pin
jeremysay20-Jun-03 23:04
jeremysay20-Jun-03 23:04 
GeneralRe: Web page memory Pin
tom7620-Jun-03 23:39
tom7620-Jun-03 23:39 
GeneralRe: Web page memory Pin
jeremysay21-Jun-03 0:48
jeremysay21-Jun-03 0:48 
GeneralRe: Web page memory Pin
tom7621-Jun-03 1:59
tom7621-Jun-03 1:59 
GeneralRe: Web page memory Pin
Ryan Binns21-Jun-03 2:11
Ryan Binns21-Jun-03 2:11 
GeneralRe: Web page memory Pin
jeremysay23-Jun-03 2:14
jeremysay23-Jun-03 2:14 
GeneralRe: Web page memory Pin
Ryan Binns23-Jun-03 2:16
Ryan Binns23-Jun-03 2:16 
GeneralResource DLL Pin
Florin Ochiana20-Jun-03 22:21
Florin Ochiana20-Jun-03 22:21 
GeneralRe: Resource DLL Pin
Ryan Binns20-Jun-03 22:52
Ryan Binns20-Jun-03 22:52 
GeneralFormat Pin
FlyingDancer20-Jun-03 20:54
FlyingDancer20-Jun-03 20:54 
GeneralRe: Format Pin
Ryan Binns20-Jun-03 22:44
Ryan Binns20-Jun-03 22:44 
GeneralRe: Format Pin
FlyingDancer20-Jun-03 23:08
FlyingDancer20-Jun-03 23:08 
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.

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.