i can't use winsock2.h because i'm having a link error
i tried on DEV_CPP and VC++ 6.0
and the problem is the same, and i don't have internet connection on my computer, what might the error be ?
i can't use winsock2.h because i'm having a link error
i tried on DEV_CPP and VC++ 6.0
and the problem is the same, and i don't have internet connection on my computer, what might the error be ?
==================================
الخطأ غالبا من إرتباطك بشكل خاطيء مع winsock2 , حيث لها مكتبة منفصلة عن winsock1 ,
بالنسبة ل winsock1 :
#include <winsock.h> #pragma comment(lib,"wsock32.lib");
بالنسبة ل winsock2 :
#include <winsock2.h> #pragma comment(lib,"ws2_32.lib");
وإلا فإعرض الخطأ أو أرفق الكود الذي فيه المشكلة .
هذا الموضوع مغلق.