谢谢yintongshun(踏雪有痕) 现在还有点问题 望指教
yintongshun(踏雪有痕) 你给我发的代码我已经在看了 可是编译的时候出现如下错误:
--------------------Configuration: MAC - Win32 Debug--------------------
Linking...
MACInfo.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa@4
MACInfo.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
MACInfo.obj : error LNK2001: unresolved external symbol __imp__gethostname@8
MACInfo.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0
MACInfo.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MAC.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
由于没有.dsw文件 我是打开一个文件后将其他所有文件加入工程 用release是一样的错误