<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[我的专栏]]></title><description><![CDATA[/* 我爱你在心口难开 */]]></description><link>https://blog.csdn.net/mxclxp</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; mxclxp]]></copyright><item><title><![CDATA[使用CTime判断日期有效性（C++）]]></title><link>https://blog.csdn.net/mxclxp/article/details/17054137</link><guid>https://blog.csdn.net/mxclxp/article/details/17054137</guid><author>mxclxp</author><pubDate>Sun, 01 Dec 2013 11:15:44 +0800</pubDate><description><![CDATA[C++中判断日期的有效性，你还在背那些个月大月小的口诀吗？还有那个闰年的判定规则。其实用不着这些，试试CTime如何。]]></description><category></category></item><item><title><![CDATA[CStdioFile::WriteString()使用时的注意事项]]></title><link>https://blog.csdn.net/mxclxp/article/details/16850469</link><guid>https://blog.csdn.net/mxclxp/article/details/16850469</guid><author>mxclxp</author><pubDate>Wed, 20 Nov 2013 21:37:23 +0800</pubDate><description><![CDATA[最近看一段程序生成的文本文件，发现总是会隔行显示。查看代码，没有发现异样，每行结束时都会赋予“\r\n”(其实这里就是问题所在，后述)。之后二进制方式打开该文本文件，发现换行处为0x0D0x0D0x0A（对应转义符"\r\r\n"）即莫名多出一个0x0D（'\r'）来。
查了MSDN，说“This method writes newline characters in lpsz to
 the]]></description><category></category></item><item><title><![CDATA[IE打开本地图片文件时出错疑惑]]></title><link>https://blog.csdn.net/mxclxp/article/details/16501327</link><guid>https://blog.csdn.net/mxclxp/article/details/16501327</guid><author>mxclxp</author><pubDate>Sun, 17 Nov 2013 20:50:14 +0800</pubDate><description><![CDATA[【问题实例描述】
1. 百度首页的logo（http://www.baidu.com/img/bdlogo.gif）下载至本地后，修改其扩展名为jpg；
2. 使用IE打开本地这个修改了扩展名的图片文件时，图片显示不成功的一个叉号；
3. 使用Chrome或是以Chrome为核心的360极速浏览器测试，显示完全正常。
4. 本地架设IIS服务器，模拟网络访问的情形，此时IE显示亦完全正常。]]></description><category></category></item><item><title><![CDATA[请谨慎使用HTML的条件注释！]]></title><link>https://blog.csdn.net/mxclxp/article/details/14332193</link><guid>https://blog.csdn.net/mxclxp/article/details/14332193</guid><author>mxclxp</author><pubDate>Wed, 06 Nov 2013 20:19:20 +0800</pubDate><description><![CDATA[HTML的条件注释在IE5中被首次引入，直到IE9.一直都是简单地判定用户浏览器（IE，非IE，IE版本）的一种手段，而在IE10的标准模式下，条件注释功能被停止支持（兼容性视图下继续有效）！
本来一种用来判定用户使用浏览器版本的方法IE10以后反而要依赖于用户所使用的工作模式，缺点被扩大了许多，还在使用这个东东的同学赶紧去改了它吧。。。


-----------------------]]></description><category></category></item><item><title><![CDATA[HSSFCell：You cannot get a string value from a numeric cell]]></title><link>https://blog.csdn.net/mxclxp/article/details/14303521</link><guid>https://blog.csdn.net/mxclxp/article/details/14303521</guid><author>mxclxp</author><pubDate>Wed, 06 Nov 2013 20:02:47 +0800</pubDate><description><![CDATA[【使用场景】：
使用一个已经编译好的Jar包工具（无源码）对Excel文件做操作，提示下面的错误。


【错误提示】：
getNumericCellValuejava.lang.NumberFormatException: You cannot get a string value from a numeric cell
at org.apache.poi.hssf.usermodel]]></description><category></category></item><item><title><![CDATA[VS2008编写的程序使用更低版本VS打开]]></title><link>https://blog.csdn.net/mxclxp/article/details/12778435</link><guid>https://blog.csdn.net/mxclxp/article/details/12778435</guid><author>mxclxp</author><pubDate>Wed, 16 Oct 2013 13:33:00 +0800</pubDate><description><![CDATA[电脑上装的是
VS .net 2003
，有时下载运行一些在
VS.net 2008
里编写的程序
会提示出错：“
所选文件是
Visual Studio
解决方案文件，但是由更高版本的
Visual 
Studio
创建的，无法打开。
”这时只需要改写两个文件的两句话即可解
决这个问题。
 
在
.net 
2003
环境下打开工程的
.sln
文件，将第]]></description><category></category></item><item><title><![CDATA[vs2008 编译选项showIncludes 应用一例]]></title><link>https://blog.csdn.net/mxclxp/article/details/8196378</link><guid>https://blog.csdn.net/mxclxp/article/details/8196378</guid><author>mxclxp</author><pubDate>Sun, 18 Nov 2012 15:18:18 +0800</pubDate><description><![CDATA[开门见山，直接上错误信息——
1>d:\test\s_host.h(20) : error C2143: 语法错误 : 缺少“;”(在“.”的前面)
1>d:\test\s_host.h(20) : error C2059: 语法错误 : “.”
1>d:\test\s_host.h(20) : error C2059: 语法错误 : “public”
1>d:\test\s_host.h]]></description><category></category></item><item><title><![CDATA[wctomb宽字符到多字节字符节的转换]]></title><link>https://blog.csdn.net/mxclxp/article/details/8196236</link><guid>https://blog.csdn.net/mxclxp/article/details/8196236</guid><author>mxclxp</author><pubDate>Sun, 18 Nov 2012 14:23:43 +0800</pubDate><description><![CDATA[来源：http://blog.sina.com.cn/s/blog_49366773010004v3.html 博主（opengl3d )


在使用wctomb将uncide转换为jis码总是失败,后来在IBM的网站上查到一篇介绍文章才知道必须进行一定的本地化设置之后该函数才可以使用.代码如下:
#include 
#include               /* for MB_LEN]]></description><category></category></item><item><title><![CDATA[LINK : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因又一例]]></title><link>https://blog.csdn.net/mxclxp/article/details/8196142</link><guid>https://blog.csdn.net/mxclxp/article/details/8196142</guid><author>mxclxp</author><pubDate>Sun, 18 Nov 2012 14:03:46 +0800</pubDate><description><![CDATA[LINK
 : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因一例
http://blog.csdn.net/mxclxp/article/details/8161200


参考：
http://stackoverflow.com/questions/7851325/why-is-my-lib-forcing-the-inclusion-of-mf]]></description><category></category></item><item><title><![CDATA[LINK : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因一例]]></title><link>https://blog.csdn.net/mxclxp/article/details/8161200</link><guid>https://blog.csdn.net/mxclxp/article/details/8161200</guid><author>mxclxp</author><pubDate>Thu, 08 Nov 2012 10:59:34 +0800</pubDate><description><![CDATA[LINK : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因一例


[环境]
  日文Windows XP OS
  中文Visual Studio 2003
  C++代码文件Encoding gb2312


[对策]
  安装Microsoft Applocale，转换VS成中文内码，重新编译即OK。
  C:\WINDOWS\Ap]]></description><category></category></item><item><title><![CDATA[让Visual Studio的代码分析工具提高你的代码质量]]></title><link>https://blog.csdn.net/mxclxp/article/details/8159132</link><guid>https://blog.csdn.net/mxclxp/article/details/8159132</guid><author>mxclxp</author><pubDate>Wed, 07 Nov 2012 19:07:56 +0800</pubDate><description><![CDATA[静态代码分析工具，第三方的有很多。其实visual studio有的版本里面也有的哦，通过Q—A的引子希望本文可以起到抛砖引玉的作用。


Q：为什么我的Visual Studio中没有代码分析功能（[分析]菜单中[仅对...运行代码分析]）。
A：你的vs版本是下面其中之一吗？
   Microsoft Visual Studio 2005 Team Edition for Softw]]></description><category></category></item><item><title><![CDATA[使用sprintf 的常见问题]]></title><link>https://blog.csdn.net/mxclxp/article/details/8154626</link><guid>https://blog.csdn.net/mxclxp/article/details/8154626</guid><author>mxclxp</author><pubDate>Tue, 06 Nov 2012 19:27:00 +0800</pubDate><description><![CDATA[最初的出处已经无可查，下面这个链接也是转来的。呵呵~~
http://blog.csdn.net/lychee007/article/details/4217348




一个程序debug无错，而release有错。最终定位于某sprintf函数缓冲区溢出，在网上找了一些相关内容。
（缓冲区是否溢出的一个重要参考指标是ｓｐｒｉｎｔｆ的返回值，返回此次ｐｒｉｎｔ的字符数，不包含自动]]></description><category></category></item><item><title><![CDATA[[不以某个字符串（如ABC）为开头的行]的正则表达式]]></title><link>https://blog.csdn.net/mxclxp/article/details/8127124</link><guid>https://blog.csdn.net/mxclxp/article/details/8127124</guid><author>mxclxp</author><pubDate>Tue, 30 Oct 2012 10:23:20 +0800</pubDate><description><![CDATA[许久前开始就有不以某个字符串（如ABC）为开头的行的正则表达式写法的需求，网上也搜了，可一直没有找到。
 
众所周知，[^ABC]表示的是除了’A’, ’B’, ‘C’之外的任一字符，而不满足上述要求。
 
我想了一下，下面的写法也许不优美，但真的好用哦。
^([^A]|(A([^B]|(B[^C]))))
 
最开始的那个^表示的行首，之后的意思就是不以A开关，除非接下来的字母不是]]></description><category></category></item><item><title><![CDATA[未指定路径时，CreateProcess与ShellExecute(Ex) 查找路径之不同]]></title><link>https://blog.csdn.net/mxclxp/article/details/8126965</link><guid>https://blog.csdn.net/mxclxp/article/details/8126965</guid><author>mxclxp</author><pubDate>Tue, 30 Oct 2012 09:59:27 +0800</pubDate><description><![CDATA[未指定路径时，CreateProcess与ShellExecute(Ex) 查找路径之不同

 

几天前碰上的一个比较细节的东西。调用CreateProcess时不指定全路径时（如：devenv.exe）就不成功（返回0），而同样是不带路径，开始-》运行（与ShellExecute 相当？我想）则完全OK，可以正常开户vs的开发环境。最后原因是——没有把devenv.exe所在的路径加入]]></description><category></category></item><item><title><![CDATA[CString.Format调用失败另一例（buffer too small vsprintf.c Line:244）]]></title><link>https://blog.csdn.net/mxclxp/article/details/7998028</link><guid>https://blog.csdn.net/mxclxp/article/details/7998028</guid><author>mxclxp</author><pubDate>Wed, 19 Sep 2012 22:24:19 +0800</pubDate><description><![CDATA[之前遇到如下一个问题——

程序运行出错:f:\dd\vctools\crt_bld\self_x86\crt\src\vsprintf.c
 Line:244”
Expression:("Buffer too small", 0).



最初以为是自己程序中sprintf使用不当造成的，就是就Grep出所有的sprintf，一个一个查，还是没有查出问题所在。
过了许久，已经忘]]></description><category></category></item><item><title><![CDATA[strncpy与strncat的第三个参数，以及警告C6059]]></title><link>https://blog.csdn.net/mxclxp/article/details/7991276</link><guid>https://blog.csdn.net/mxclxp/article/details/7991276</guid><author>mxclxp</author><pubDate>Tue, 18 Sep 2012 14:29:15 +0800</pubDate><description><![CDATA[①char *strncpy(   char *strDest,
   const char *strSource,
   size_t count 
);


The strncpy function copies the initial count characters of strSource to strDest and returns strDest. If count is les]]></description><category></category></item><item><title><![CDATA[Visual Studio的一个警告C6262]]></title><link>https://blog.csdn.net/mxclxp/article/details/7991127</link><guid>https://blog.csdn.net/mxclxp/article/details/7991127</guid><author>mxclxp</author><pubDate>Tue, 18 Sep 2012 13:03:42 +0800</pubDate><description><![CDATA[我目前使用的Visual Studio版本是2008。在这个版本下，正常编译无论如何是不会出C6262的，前几天做了一次"Code Analyzer"。检查出许多的警告，其中就有这个。
先贴上MSDN的解释吧——
http://msdn.microsoft.com/zh-cn/library/7yhee2f0(v=vs.90).aspx



警告 C6262：函数使用了堆栈中的  个]]></description><category></category></item><item><title><![CDATA[BOOL与bool不同]]></title><link>https://blog.csdn.net/mxclxp/article/details/7869054</link><guid>https://blog.csdn.net/mxclxp/article/details/7869054</guid><author>mxclxp</author><pubDate>Wed, 15 Aug 2012 15:07:52 +0800</pubDate><description><![CDATA[一直以来，想当然地以为，就像INT在VC中被typedef成int， CHAR被typedef成char一样，BOOL也是被定义成bool. 直到有一天Debug时发现BOOL型变量值竟然为2！
原来Windef.h中，如下重定义：
Line153:   typedef int                 BOOL;


BOOL与int完全同义！这令我不安起来，如果有一个BOOL型]]></description><category></category></item><item><title><![CDATA[使用Dll的EXE在关闭时出错一例]]></title><link>https://blog.csdn.net/mxclxp/article/details/7524607</link><guid>https://blog.csdn.net/mxclxp/article/details/7524607</guid><author>mxclxp</author><pubDate>Mon, 30 Apr 2012 20:59:19 +0800</pubDate><description><![CDATA[本来，RELEASE版本的Dll搭配Release版本的Exe，Debug版本的Dll搭配Debug版本的Exe是最正常的情形。
不过我测试的结果却正好相反，最正常的情形下Exe关闭时会出错，其它的情形则可以正常关闭EXE。




★UseOfMFC:共享★




【DLL】
【EXE】
【EXE終了OK？】


RELEASE版
RELEASE版() 
N]]></description><category></category></item><item><title><![CDATA[Debug模式下正常而Release模式下出现异常的一例]]></title><link>https://blog.csdn.net/mxclxp/article/details/7524319</link><guid>https://blog.csdn.net/mxclxp/article/details/7524319</guid><author>mxclxp</author><pubDate>Mon, 30 Apr 2012 20:21:44 +0800</pubDate><description><![CDATA[直接上代码吧。

Test.h#pragma once

#include 

class Test
{
public:
	Test(void);
	~Test(void);

	static std::vector testIntVector;
};
Test.cpp#include "StdAfx.h"
#include "Test.h"

Test testObj;
std::vect]]></description><category></category></item></channel></rss>