Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i get the all information given by nbtstat command in vc Pin
Mike Dimmick1-Dec-03 23:51
Mike Dimmick1-Dec-03 23:51 
GeneralRe: how can i get the all information given by nbtstat command in vc Pin
Member 6566482-Dec-03 20:39
Member 6566482-Dec-03 20:39 
GeneralRe: how can i get the all information given by nbtstat command in vc Pin
Member 6566482-Dec-03 20:58
Member 6566482-Dec-03 20:58 
QuestionHow to connect remoted DB(MS Access) by ODBC? Pin
skynlake1-Dec-03 20:23
skynlake1-Dec-03 20:23 
Questionhow to get index from database(MS ACCESS) Pin
bilas1-Dec-03 19:56
bilas1-Dec-03 19:56 
AnswerRe: how to get index from database(MS ACCESS) Pin
David Crow2-Dec-03 10:01
David Crow2-Dec-03 10:01 
Generalbi-directional scrolling in CADORecordset Pin
bilas1-Dec-03 19:51
bilas1-Dec-03 19:51 
QuestionMultithread CAsyncSocket problem?? Pin
dddv1-Dec-03 18:48
dddv1-Dec-03 18:48 
I write one multithread program to download file using CAsyncSocket. I got one problem. Can anyone help me out?

I derive my thread class from CWinThread. In thread class
I new one CAsyncSocket instance. and create and connect it

when It is one thread, it can work normally.when it is 2 threads
it can work normally at most. but when thread numbers is large,
they will cause exception. at the same time,for per thread, when socket OnConnect arise, it return WSAEADDRINUSE error.

I found another problem. when I debug 2 thread. during socket
Create call. the socket in the first thread can create normal,
but the socket in the second thread, It will cause assert .
It means the the m_hSocket has been in socket map.
I didn't know why this happen. I think socket map should be
thread local.

thanks

GeneralRe: Multithread CAsyncSocket problem?? Pin
dddv2-Dec-03 0:38
dddv2-Dec-03 0:38 
AnswerRe: Multithread CAsyncSocket problem?? Pin
Moak2-Dec-03 0:56
Moak2-Dec-03 0:56 
GeneralRe: Multithread CAsyncSocket problem?? Pin
dddv2-Dec-03 4:38
dddv2-Dec-03 4:38 
GeneralRe: Multithread CAsyncSocket problem?? Pin
Moak2-Dec-03 5:03
Moak2-Dec-03 5:03 
AnswerRe: Multithread CAsyncSocket problem?? Pin
victording10-Jun-07 16:21
victording10-Jun-07 16:21 
GeneralIf anyone wants too... Pin
Snyp1-Dec-03 16:21
Snyp1-Dec-03 16:21 
GeneralRe: If anyone wants too... Pin
bilas1-Dec-03 19:50
bilas1-Dec-03 19:50 
GeneralRe: If anyone wants too... Pin
Snyp2-Dec-03 12:27
Snyp2-Dec-03 12:27 
QuestionAny equivalent data stucture for CMapPtrToPtr? Pin
Anthony_Yio1-Dec-03 15:43
Anthony_Yio1-Dec-03 15:43 
AnswerRe: Any equivalent data stucture for CMapPtrToPtr? Pin
Joel Lucsy2-Dec-03 2:50
Joel Lucsy2-Dec-03 2:50 
GeneralFile Database Access Method Pin
IceBerG711-Dec-03 15:30
IceBerG711-Dec-03 15:30 
GeneralRe: File Database Access Method Pin
David Crow2-Dec-03 10:05
David Crow2-Dec-03 10:05 
GeneralRe: File Database Access Method Pin
IceBerG712-Dec-03 14:20
IceBerG712-Dec-03 14:20 
GeneralDevice Context Pin
eldar_20011-Dec-03 14:40
eldar_20011-Dec-03 14:40 
GeneralRe: Device Context Pin
Anonymous1-Dec-03 20:40
Anonymous1-Dec-03 20:40 
GeneralRe: Device Context Pin
eldar_20012-Dec-03 14:43
eldar_20012-Dec-03 14:43 
GeneralCdataGrid Pin
sdfdsfa1-Dec-03 14:00
sdfdsfa1-Dec-03 14:00 

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.