Thread: Socket Server
View Single Post
Old May 20th, 2006, 6:08 PM   #3
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by hbe02
void WinConnect(); //open windows connection

int main()
{
	WinConnect();

// many more lines

void Winopen()
{
	WSADATA w;
	if (WSAStartup(0x0101, &w) != 0)
		{
			cout<< "ERROR: Could Not Open Windows connection."<<endl;
			exit(0);
		}

}
Interesting, you have a prototype to WinConnect, and you even try calling it but you implement a Winopen function. A rename is likely to help there.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote