<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Eric&#039;s Who Know &#187; WinSock</title> <atom:link href="http://who-know.com/tag/winsock/feed/" rel="self" type="application/rss+xml" /><link>http://who-know.com</link> <description>C&#039;est La Vie</description> <lastBuildDate>Mon, 17 May 2010 22:21:05 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Windows C++ IDE 教學 &#8211; C++ Socket Programming</title><link>http://who-know.com/windows-c-ide-c-socket-programming/</link> <comments>http://who-know.com/windows-c-ide-c-socket-programming/#comments</comments> <pubDate>Mon, 01 Feb 2010 10:42:48 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[C++ IDE]]></category> <category><![CDATA[Code::Blocks]]></category> <category><![CDATA[Socket]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[WinSock]]></category><guid isPermaLink="false">http://who-know.com/?p=94</guid> <description><![CDATA[01. 使用 Code::Blocks 寫 Socket Program 的設定
Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -lws2_3202. 使用 Dev C++ 寫 Socket Program 的設定
Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -lws2_3203. 使用 Microsoft Visual C++ 6.0 寫 Socket Program 的設定。// 以下方法擇一即可
a. 程式碼前面加上 #pragma [...]]]></description> <content:encoded><![CDATA[<p>01. 使用 <a href="http://www.codeblocks.org/" target="_blank">Code::Blocks</a> 寫 Socket Program 的設定</p><p>Settings -> Compiler and debugger -> Linker Settings -> Other linker options -> 加上 -lws2_32<span id="more-94"></span></p><p><a href="http://pic.who-know.com/CodeBlocks/001.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/001.png" alt="" width="480" height="430"/></a></p><p>02. 使用 <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev C++</a> 寫 Socket Program 的設定</p><p>Tools -> Compiler Options -> 打勾 Add these commands to linker command line -> 加上 -lws2_32</p><p><a href="http://pic.who-know.com/CodeBlocks/002.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/002.png" alt="" width="480" height="430"/></a></p><p>03. 使用 Microsoft Visual C++ 6.0 寫 Socket Program 的設定。// 以下方法擇一即可</p><p>a. 程式碼前面加上 #pragma comment(lib, "wsock32.lib")</p><p>b. Project -> Settings -> Link -> Object/library modules -> 最後加上 ws2_32.lib</p><p><a href="http://pic.who-know.com/CodeBlocks/003.png" class="highslide-image" onclick="return hs.expand(this);" target="_blank"><img class="doCenter" src="http://pic.who-know.com/CodeBlocks/003.png" alt="" width="480" height="340"/></a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/windows-c-ide-c-socket-programming/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>