<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[天杀的Blog - ＶＣ学习]]></title>
<link>http://www.osdiy.com/blog/</link>
<description><![CDATA[一个普通的Win32 ASM程序员]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[willok@163.com(天杀)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>天杀的Blog</title>
	<url>http://www.osdiy.com/blog/images/logos.gif</url>
	<link>http://www.osdiy.com/blog/</link>
	<description>天杀的Blog</description>
</image>

			<item>
			<link>http://www.osdiy.com/blog/article/ＶＣ学习/4.htm</link>
			<title><![CDATA[没事练习用的一个面试题]]></title>
			<author>willok@163.com(admin)</author>
			<category><![CDATA[ＶＣ学习]]></category>
			<pubDate>Thu,31 May 2007 17:24:15 +0800</pubDate>
			<guid>http://www.osdiy.com/blog/default.asp?id=4</guid>
		<description><![CDATA[<span style="font-family:宋体">编程将&#34;中文1000测试200dd300qq&#34;<br/>计算成:1000+200+300=1500<br/><br/>下面是代码<br/><br/>#include &#34;stdafx.h&#34;<br/><br/>int GetVal(LPCTSTR lpString)<br/>{<br/>&#160;&#160;&#160;&#160;int RetVal,TmpVal;<br/>&#160;&#160;&#160;&#160;char *lpChr;<br/><br/>&#160;&#160;&#160;&#160;RetVal=TmpVal=0;<br/>&#160;&#160;&#160;&#160;lpChr=(char *)lpString;<br/>&#160;&#160;&#160;&#160;for (;*lpChr != 0;lpChr++)<br/>&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if ((*lpChr &gt;= &#39;0&#39; &amp;&amp; *lpChr &lt;= &#39;9&#39;))<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for (;(*lpChr &gt;= &#39;0&#39; &amp;&amp; *lpChr &lt;= &#39;9&#39;);lpChr++)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;TmpVal=TmpVal*10+*lpChr-&#39;0&#39;;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;RetVal=RetVal+TmpVal;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;TmpVal=0;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160;return RetVal;<br/>}<br/><br/>int APIENTRY WinMain(HINSTANCE hInstance,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HINSTANCE hPrevInstance,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LPSTR&nbsp;&nbsp;&nbsp;&nbsp; lpCmdLine,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nCmdShow)<br/>{<br/>&#160;&#160;&#160;&#160;char Buf[512];<br/>&#160;&#160;&#160;&#160;wsprintf(Buf,&#34;Ret:%d&#34;,GetVal(&#34;中文1000测试200dd300qqq&#34;));<br/>&#160;&#160;&#160;&#160;MessageBox(0,Buf,0,0);<br/>&#160;&#160;&#160;&#160;return 0;<br/>}</span>]]></description>
		</item>
		
			<item>
			<link>http://www.osdiy.com/blog/article/ＶＣ学习/3.htm</link>
			<title><![CDATA[VC编程技术参考]]></title>
			<author>willok@163.com(admin)</author>
			<category><![CDATA[ＶＣ学习]]></category>
			<pubDate>Wed,23 May 2007 10:10:10 +0800</pubDate>
			<guid>http://www.osdiy.com/blog/default.asp?id=3</guid>
		<description><![CDATA[常用关键字<br/>&nbsp;&nbsp;&nbsp;&nbsp;数据定义关键字（bool、int、short、long、float、unsigned、typedef、struct）<br/>&nbsp;&nbsp;&nbsp;&nbsp;操作符关键字（+、-、|、*、&amp;、/、%、++、--、+=、&gt;）<br/>&nbsp;&nbsp;&nbsp;&nbsp;逻辑比较关键字（&amp;&amp;、||、==）<br/>&nbsp;&nbsp;&nbsp;&nbsp;流程控制关键字（if、while、goto）<br/>&nbsp;&nbsp;&nbsp;&nbsp;异常处理关键字（try、catch）<br/>&nbsp;&nbsp;&nbsp;&nbsp;编译预处理关键字（#include、#define、#pragma）<br/><br/>动态获得的函数指针使用<br/>&nbsp;&nbsp;&nbsp;&nbsp;声明类型<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;typedef int(_cdecl *Connect)(int i);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;定义变量<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connect Proc;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;赋值<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Proc = (Connect)GetProcAddress (hinstDLL,&#34;Test&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;调用<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int iValue = Proc(100);<br/><br/>多文件的编译<br/>&nbsp;&nbsp;&nbsp;&nbsp;建立多个CPP文件，每个CPP文件中都得 #include &#34;StdAfx.h&#34; ，否则会报错<br/>&nbsp;&nbsp;&nbsp;&nbsp;如果提供的函数很多则把所有函数和常量定义写到里面，如果函数很少可以直接写到主代码里面。<br/>&nbsp;&nbsp;&nbsp;&nbsp;象这样：extern&#160;&#160;&#160;&#160;DWORD WINAPI FunctionName(PVOID wParam);<br/><br/>字节对齐<br/>&nbsp;&nbsp;&nbsp;&nbsp;#pragma pack(1)]]></description>
		</item>
		
</channel>
</rss>
