<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>知了博客-ps 记录</title><link>https://www.webgou.info/content/programming/403/</link><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 90619</generator><language>zh-CN</language><pubDate>Mon, 29 Nov 2010 16:44:42 +0800</pubDate><item><title>Re:ps 记录</title><author> (webgou)</author><link>https://www.webgou.info/content/programming/403/#cmt180</link><pubDate>Mon, 29 Nov 2010 16:49:08 +0800</pubDate><guid>https://www.webgou.info/content/programming/403/#cmt180</guid><description><![CDATA[A simple windows programm in c<br/>		<br/>The following programm is a minimal windows program. It opens a window and writes a text into the window.<br/>If you compile it with MinGW, be sure to add the -mwindows flag in order to prevent the ... undefined reference to 'TextOutA@20' and ... undefined reference to 'GetStockObject@4 linker error. <br/><br/><br/>#include &lt;windows.h&gt;<br/><br/>LRESULT CALLBACK WndProc(<br/>    HWND   hWnd,<br/>    UINT   msg,<br/>    WPARAM wParam,<br/>    LPARAM lParam ) {<br/><br/>  switch( msg ) {<br/>    case WM_PAINT: {<br/>      PAINTSTRUCT ps;<br/>      HDC hDC = BeginPaint( hWnd, &amp;ps );<br/>      TextOut(hDC, 10, 10, &quot;ADP GmbH&quot;, 8 );<br/>      EndPaint( hWnd, &amp;ps );<br/>    }<br/>    break;<br/><br/>    case WM_DESTROY:<br/>      PostQuitMessage(0);<br/>    break;<br/><br/>    default:<br/>      return DefWindowProc( hWnd, msg, wParam, lParam);<br/>  } <br/>  return 0;<br/>}<br/>]]></description></item></channel></rss>
