标签:rtu alt define height color word amp image windows平台
启动windows平台下的Socket
1 #define WIN32_LEAN_AND_MEAN 2 #include<windows.h> 3 #include<WinSock2.h> 4 5 //#pragma comment(lib,"ws2_32.lib") 6 7 int main() { 8 WORD ver = MAKEWORD(2, 2); 9 WSADATA data; 10 WSAStartup(ver,&data); 11 //输入代码内容 12 13 // 14 WSACleanup(); 15 return 0; 16 }
如果想要跨平台
然后把ws2_32.lib写在附加依赖库上
标签:rtu alt define height color word amp image windows平台
原文地址:https://www.cnblogs.com/BK-rewrite/p/13391254.html