Click here to Skip to main content
15,886,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can i read + write two files in 1 function? Pin
Hamid_RT30-May-06 18:32
Hamid_RT30-May-06 18:32 
AnswerRe: Can i read + write two files in 1 function? Pin
Immunity1831-May-06 1:21
Immunity1831-May-06 1:21 
QuestionGDI+ / Antialiased polyline Pin
Andre xxxxxxx30-May-06 10:41
Andre xxxxxxx30-May-06 10:41 
AnswerRe: GDI+ / Antialiased polyline Pin
PJ Arends30-May-06 12:16
professionalPJ Arends30-May-06 12:16 
QuestionFile filter Pin
Luksky30-May-06 10:39
Luksky30-May-06 10:39 
AnswerRe: File filter Pin
Steve Echols30-May-06 13:54
Steve Echols30-May-06 13:54 
GeneralRe: File filter Pin
Luksky6-Jun-06 1:28
Luksky6-Jun-06 1:28 
QuestionProblem with CSocket Pin
masnu30-May-06 8:49
masnu30-May-06 8:49 
I'm trying to figure out why my CSocket.Receive() call is blocking. This is the code I have so far:

	CSocket			socket;<br />
	<br />
	//Connect to server<br />
	socket.Create();<br />
	ret = socket.Connect(m_sAddress, m_nPort);<br />
<br />
	//Check for connection errors<br />
	if (ret == 0)<br />
	{<br />
		<br />
		GetSocketError();			//Get Socket's Last Error<br />
		return -1;<br />
<br />
	} //__if (ret == 0)__<br />
	<br />
	m_TotalBytes  = 0;<br />
<br />
<br />
	while(m_bRunThread)<br />
	{<br />
<br />
		BYTE* pBuffer = new BYTE[MAX_BUFFER_SIZE];<br />
		ret = socket.Receive(pBuffer, MAX_BUFFER_SIZE);<br />
<br />
<br />
........<br />
}<br />


The socket connects but never receives any data. The call to Receive seems to block the thread. I know the server program I am using is working because I can transfer data to other clients without a problem.

Any suggestions? Thanks
AnswerRe: Problem with CSocket Pin
Zac Howland30-May-06 10:35
Zac Howland30-May-06 10:35 
QuestionCListCtrl ownder draw checkbox problem Pin
YaronNir30-May-06 8:24
YaronNir30-May-06 8:24 
AnswerRe: CListCtrl ownder draw checkbox problem Pin
Laxman Auti30-May-06 18:33
Laxman Auti30-May-06 18:33 
GeneralRe: CListCtrl ownder draw checkbox problem Pin
YaronNir30-May-06 20:29
YaronNir30-May-06 20:29 
QuestionDo you know how can I use Windows Media Player ActiveX control VC++ 2005??? [modified] Pin
high30-May-06 7:47
high30-May-06 7:47 
QuestionSave last dialog confiuguration MFC Pin
celllllllll30-May-06 7:38
celllllllll30-May-06 7:38 
AnswerRe: Save last dialog confiuguration MFC Pin
Hamid_RT30-May-06 8:02
Hamid_RT30-May-06 8:02 
GeneralRe: Save last dialog confiuguration MFC Pin
celllllllll30-May-06 9:09
celllllllll30-May-06 9:09 
GeneralRe: Save last dialog confiuguration MFC Pin
Zac Howland30-May-06 10:19
Zac Howland30-May-06 10:19 
AnswerRe: Save last dialog confiuguration MFC Pin
Laxman Auti30-May-06 18:39
Laxman Auti30-May-06 18:39 
QuestionSendMessage isnt quite working [modified] Pin
Ista30-May-06 7:22
Ista30-May-06 7:22 
AnswerRe: SendMessage isnt quite working Pin
PJ Arends30-May-06 8:22
professionalPJ Arends30-May-06 8:22 
GeneralRe: SendMessage isnt quite working Pin
Ista30-May-06 9:12
Ista30-May-06 9:12 
AnswerRe: SendMessage isnt quite working [modified] Pin
Eric Dahlvang30-May-06 8:46
Eric Dahlvang30-May-06 8:46 
Questiondisable auto-complete in dropdown [modified] Pin
elephantstar30-May-06 6:10
elephantstar30-May-06 6:10 
AnswerRe: disable auto-complete in dropdown [modified] Pin
valikac30-May-06 6:45
valikac30-May-06 6:45 
GeneralRe: disable auto-complete in dropdown [modified] Pin
elephantstar30-May-06 7:20
elephantstar30-May-06 7:20 

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.