Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pDC->TextOut() Pin
Hamid_RT21-Aug-06 0:17
Hamid_RT21-Aug-06 0:17 
QuestionHow to save the scene of a process and restore the process to the scene later(in Windows XP) Pin
willbin20-Aug-06 23:46
willbin20-Aug-06 23:46 
AnswerRe: How to save the scene of a process and restore the process to the scene later(in Windows XP) Pin
Hamid_RT21-Aug-06 9:18
Hamid_RT21-Aug-06 9:18 
Questionconst byte * to LPCSTR Pin
stevelam20-Aug-06 23:46
stevelam20-Aug-06 23:46 
AnswerRe: const byte * to LPCSTR Pin
toxcct20-Aug-06 23:49
toxcct20-Aug-06 23:49 
AnswerRe: const byte * to LPCSTR Pin
Hamid_RT21-Aug-06 0:25
Hamid_RT21-Aug-06 0:25 
GeneralRe: const byte * to LPCSTR Pin
stevelam21-Aug-06 0:40
stevelam21-Aug-06 0:40 
QuestionTo find radius of a circle Pin
dinesh_IP20-Aug-06 23:36
dinesh_IP20-Aug-06 23:36 
AnswerRe: To find radius of a circle Pin
toxcct20-Aug-06 23:47
toxcct20-Aug-06 23:47 
GeneralRe: To find radius of a circle Pin
dinesh_IP21-Aug-06 1:50
dinesh_IP21-Aug-06 1:50 
AnswerRe: To find radius of a circle Pin
Rage21-Aug-06 0:13
professionalRage21-Aug-06 0:13 
Questiongrid control application [modified] Pin
shibumong20-Aug-06 23:36
shibumong20-Aug-06 23:36 
AnswerRe: grid control application Pin
Cedric Moonen20-Aug-06 23:41
Cedric Moonen20-Aug-06 23:41 
AnswerRe: grid control application Pin
Hamid_RT21-Aug-06 0:23
Hamid_RT21-Aug-06 0:23 
QuestionCSocket Bind Invalid Argument Error Pin
masnu20-Aug-06 23:30
masnu20-Aug-06 23:30 
I am trying to create a UDP connection using the CSocket class. The code I have so far is this:

<br />
CSocket	sock;<br />
<br />
//Create socket<br />
	if (!sock.Create(0, SOCK_DGRAM, NULL))<br />
	{<br />
<br />
		GetSocketError();			//Get Socket's Last Error<br />
		return -1;<br />
<br />
	} //__if (!sock.Create(...))__<br />
<br />
<br />
//Bind socket<br />
	if(!sock.Bind((UINT)4200, _T("127.0.0.1")))<br />
	{<br />
		<br />
		GetSocketError();			//Get Socket's Last Error<br />
		return -1;		<br />
		<br />
	} //__if(sock.Bind(...))__<br />
<br />
<br />


The call to Create() works without a problem but when I try to bind to the port and address I get an "Invalid Argument (10022)" error.

Any suggestions?

Thanks.
QuestionRe: CSocket Bind Invalid Argument Error Pin
Kiran Pinjala20-Aug-06 23:59
Kiran Pinjala20-Aug-06 23:59 
AnswerRe: CSocket Bind Invalid Argument Error Pin
masnu21-Aug-06 0:04
masnu21-Aug-06 0:04 
AnswerRe: CSocket Bind Invalid Argument Error Pin
Raj Prathap21-Aug-06 0:12
Raj Prathap21-Aug-06 0:12 
GeneralRe: CSocket Bind Invalid Argument Error Pin
masnu21-Aug-06 2:13
masnu21-Aug-06 2:13 
QuestionTo run application written in .Net VC++ 2005 Pin
Andy Rama20-Aug-06 23:03
Andy Rama20-Aug-06 23:03 
AnswerRe: To run application written in .Net VC++ 2005 Pin
Christian Graus20-Aug-06 23:25
protectorChristian Graus20-Aug-06 23:25 
GeneralRe: To run application written in .Net VC++ 2005 Pin
Andy Rama21-Aug-06 0:27
Andy Rama21-Aug-06 0:27 
GeneralRe: To run application written in .Net VC++ 2005 Pin
Christian Graus21-Aug-06 0:37
protectorChristian Graus21-Aug-06 0:37 
GeneralRe: To run application written in .Net VC++ 2005 Pin
Andy Rama21-Aug-06 0:44
Andy Rama21-Aug-06 0:44 
GeneralRe: To run application written in .Net VC++ 2005 Pin
Christian Graus21-Aug-06 0:46
protectorChristian Graus21-Aug-06 0:46 

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.