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
|