<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/pandy1110</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; pandy1110]]></copyright><item><title><![CDATA[delete指针出现_CrtIsValidHeapPointer(pUserData)错误]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6239781</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6239781</guid><author>pandy1110</author><pubDate>Fri, 11 Mar 2011 12:54:00 +0800</pubDate><description><![CDATA[_CrtIsValidHeapPointer(pUserData)_CrtIsValidHeapPointer(pUserData) in dbghelp.c2006-10-14 18:19When I execute my program (it's multithread and has COM and dll),there is an error message as follows:Program D:/dongle_1/TestAP/bin/Debug/TestAP.exeFile: dbghea]]></description><category></category></item><item><title><![CDATA[调整屏幕分辨率]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6220125</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6220125</guid><author>pandy1110</author><pubDate>Thu, 03 Mar 2011 11:08:00 +0800</pubDate><description><![CDATA[界面在不同分辨率下的显示确实是一个比较头疼的问题。下面贴一个完整的代码，作用是首先罗列系统支持的所有分辨率模式，如果不支持1024*768给出提示，如果支持但当前设置不是1024*768则给出是否更改的提示。C/C++ code //---------------罗列系统支持的分辨率----------------------------    DEVMODE *lpDevMode;
    lpDevMode=new DEVMODE;
    int i=0;
    CString Str[500]]></description><category></category></item><item><title><![CDATA[关于"#ifdef __cplusplus  extern "C" "]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6192600</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6192600</guid><author>pandy1110</author><pubDate>Fri, 18 Feb 2011 09:32:00 +0800</pubDate><description><![CDATA[Microsoft-Specific Predefined Macros __cplusplus Defined for C++ programs only. 意思是说，如果是C++程序，就使用extern "C"{ ，而这个东东，是指在下面的函数不使用的C++的名字修饰，而是用C的The following code shows a header file which can be used by C and C++ client applications:// MyCFuncs.h#ifdef __cp]]></description><category></category></item><item><title><![CDATA[CCommandLineInfo ]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6185476</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6185476</guid><author>pandy1110</author><pubDate>Tue, 15 Feb 2011 10:55:00 +0800</pubDate><description><![CDATA[在我们用向导创建MFC应用程序时，在App::InitInstance()中总会出现下面这样的代码到底是什么意思呢，我差了很多资料终于使其漏出庐山真面目。<br /><br />CCommandLineInfo cmdInfo;//定义命令行<br />ParseCommandLine(cmdInfo);//解析命令行<br /><br />// 调度在命令行中指定的命令。如果<br />// 用 /RegServer、/Register、/Unregserver 或 /Unregister 启动应用程序，]]></description><category></category></item><item><title><![CDATA[delphi动态数组越界]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6090213</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6090213</guid><author>pandy1110</author><pubDate>Tue, 21 Dec 2010 18:57:00 +0800</pubDate><description><![CDATA[<br />先看段程序： Delphi(Pascal) code <br />procedure TForm1.Button1Click(Sender: TObject);<br />var P:arrayof integer;<br />begin<br />  setlength(P,2);<br />  setlength(P,1);<br />  P[0]:=12;<br />  P[1]:=34;<br />  P[2]:=56;<br />  showmessage(inttostr(P[2])]]></description><category></category></item><item><title><![CDATA[delphi的取整函数round、trunc、ceil和floor ]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6087535</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6087535</guid><author>pandy1110</author><pubDate>Mon, 20 Dec 2010 18:41:00 +0800</pubDate><description><![CDATA[<br /> <br />1.Round（四舍六入五留双）功能说明：对一个实数进行四舍五入。(按照银行家算法) <br />例：<br />var<br />    i, j: Integer;<br />begin<br />    i := Round(1.5); // i等于2<br />    j := Round(2.5); // j等于2<br />end;<br />在Delphi中使用Round函数得到的答案有时与我们所预期的会不太一样：采用的是四舍六入五留双。即当舍或入位大于或小于五时按四]]></description><category></category></item><item><title><![CDATA[Delphi  中的属性property]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/6051234</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/6051234</guid><author>pandy1110</author><pubDate>Thu, 02 Dec 2010 21:02:00 +0800</pubDate><description><![CDATA[Delphi  中的属性property Propery In Delphi 前言：适合delphi初学者，有面向对象知识和java或者vc编程经验人士阅读。 一普通属性  我们在delphi的类中常常能看到这样的代码：propert property 属性名类型名 read 字符串1 write 字符串2  这里属性的名字可能不同。都是这样的格式：property 属性名 read 字符串1 write 字符串2  我以property Left: Integer read FLeft write Set]]></description><category></category></item><item><title><![CDATA[open/read/write和fopen/fread/fwrite的区别]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5971324</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5971324</guid><author>pandy1110</author><pubDate>Thu, 28 Oct 2010 11:30:00 +0800</pubDate><description><![CDATA[<br />open/read/write和fopen/fread/fwrite的区别<br /> <br />open：系统调用，返回的是文件描述符，即文件句柄，是文件在文件描述副表里的索引。<br />fopen：C语言库函数，返回的是一个指向文件结构的指针。fopen是ANSI C标准中的C语言库函数，在不同的操作系统中应该调用不同的内核API，UNIX环境下，fopen是对open的封装。<br />文件描述符是UNIX/Linux下的一个概念，Linux环境下，一切设备皆是文件，一切设备皆是以文件]]></description><category></category></item><item><title><![CDATA[Vector作为形参]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5970064</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5970064</guid><author>pandy1110</author><pubDate>Wed, 27 Oct 2010 20:14:00 +0800</pubDate><description><![CDATA[<br />通常，函数不应该有vector或其他容器类的形参。调用vector形参的函数将会复制vector的每一个元素。为避免复制，应将其声明为引用类型。然而，C++程序员更倾向于使用传递迭代器，如下：<br />#include "Head.h"<br />void print(vector<int>::const_iterator beg,<br />     vector<int>::const_iterator end)<br />{<br /> while (beg != end)<br /> ]]></description><category></category></item><item><title><![CDATA[Button按钮响应鼠标按下与弹起消息]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5953188</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5953188</guid><author>pandy1110</author><pubDate>Wed, 20 Oct 2010 09:12:00 +0800</pubDate><description><![CDATA[<br />对话框上的按钮本身只能添加单击双击时间，不能响应鼠标按下与弹起消息，可以通过两种方法实现：<br />1.重载CButton类，将该类子类化<br />    在工程中添加一个新类CMyButton，基类为CButton。<br />    在对话框MyDlg中为IDC_BUTTON添加变量，在变量类型里选择CMyButton，变量名自定义，如m_myButton。添加函数OnDown与OnUp函数响应按钮按下与弹起消息<br />    在Class name中选择CMyButton，然后添加]]></description><category></category></item><item><title><![CDATA[非模态对话框使用ON_UPDATE_COMMAND_UI]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5935239</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5935239</guid><author>pandy1110</author><pubDate>Tue, 12 Oct 2010 11:43:00 +0800</pubDate><description><![CDATA[ON_UPDATE_COMMAND_UI for Modeless DialogsModeless dialogs can't automatically use the WM_KICKIDLE message to start idle processing. This is because MFC uses it's own model dialog message loop that sends WM_KICKIDLE messages. But modeless dialogs use the st]]></description><category></category></item><item><title><![CDATA[对话框内控件更新]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5935236</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5935236</guid><author>pandy1110</author><pubDate>Tue, 12 Oct 2010 11:41:00 +0800</pubDate><description><![CDATA[<br />afxpriv.h has a message, WM_KICKIDLE, that is sent during idle processing. To get dialogs to work with the ON_UPDATE_COMMAND_UI message maps, you need to trap the kick idle message and call UpdateDialogControls. <br />In a dalog class header, add the]]></description><category></category></item><item><title><![CDATA[定义对象与对象指针的区别]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5934369</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5934369</guid><author>pandy1110</author><pubDate>Mon, 11 Oct 2010 22:52:00 +0800</pubDate><description><![CDATA[<br />。。。求解]]></description><category></category></item><item><title><![CDATA[CDialogBar使用]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5934258</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5934258</guid><author>pandy1110</author><pubDate>Mon, 11 Oct 2010 22:00:00 +0800</pubDate><description><![CDATA[<br />用对话框创建CDialogBar派生的类并在CReBar上添加<br /><br /> <br />摘要：本文详细解说了CDialogBar的具体使用过程，可以做为VC++和MFC新手学习总结用。<br /><br /> <br />一、创建DialogBar的派生类<br />首先，创建对话框资源：在对话框资源编辑器内生成一个Dialog资源，并将其风格（Style）属性必须设置为Child，不能设置为Overlapped或Popup，否则运行肯定出错；至于边界属性则随用户自己喜欢，一般都是选]]></description><category></category></item><item><title><![CDATA[一组按钮的消息响应]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5930094</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5930094</guid><author>pandy1110</author><pubDate>Sat, 09 Oct 2010 17:34:00 +0800</pubDate><description><![CDATA[<br />    当子窗口控件的状态发生改变时，控件通过向其父窗口发送WM_COMMAND消息进行通信，在该消息的wParam中含有通知消息和控件的ID，在lParam中则包含了控件的句柄。例如，当用户在按钮上单击鼠标时，按钮控件会向父窗口发送BN_CLICKED消息。 <br />    利用ClassWizard可以很容易地为控件通知消息加入消息映射和消息处理函数。例如，某按钮的BN_CLICKED消息的消息映射及其处理函数的声明如下所示：<br />    ON_BN_CLICKED(IDC_ADD]]></description><category></category></item><item><title><![CDATA[OBJ文件格式]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5858329</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5858329</guid><author>pandy1110</author><pubDate>Thu, 02 Sep 2010 13:45:00 +0800</pubDate><description><![CDATA[<br />    OBJ文件格式是非常简单的。这种文件以纯文本的形式存储了模型的顶点、法线和纹理坐标和材质使用信息。OBJ文件的每一行，都有极其相似的格式。在OBJ文件中，每行的格式如下：<br />前缀 参数1 参数2 参数3 ...<br />    其中，前缀标识了这一行所存储的信息类型。参数则是具体的数据。OBJ文件的前缀可以有：表7.2-1 OBJ文件中的前缀前缀<br />说明v表示本行指定一个顶点。<br />此前缀后跟着3个单精度浮点数，分别表示该定点的X、Y、Z坐标值vt表示本行指定一个]]></description><category></category></item><item><title><![CDATA[C++导入模型]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5857257</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5857257</guid><author>pandy1110</author><pubDate>Thu, 02 Sep 2010 09:16:00 +0800</pubDate><description><![CDATA[1.什么是模型，以及常见的建模工具Reference：Wiki，model<br />2.Wavefront的obj文件格式详解Reference：http://www.cppblog.com/lovedday/archive/2008/06/13/53153.html<br />3.使用C++读取3ds max的obj文件Reference：http://zhidao.baidu.com/question/78839329.html3ds MAX 模型有很多种导出格式，如max、obj等，是不同的标准。一]]></description><category></category></item><item><title><![CDATA[char*和CString转换]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5732311</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5732311</guid><author>pandy1110</author><pubDate>Tue, 13 Jul 2010 17:24:00 +0800</pubDate><description><![CDATA[<br />(1) char*转换成CString<br />　　若将char*转换成CString，除了直接赋值外，还可使用CString::Format进行。例如：<br />         char chArray[] = "Char  test";<br />         TCHAR * p = _T("Char  test");( 或LPTSTR p = _T("Char  test");)<br />         CString theString = chArray;<br />  ]]></description><category></category></item><item><title><![CDATA[MFC移植到QT]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5700152</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5700152</guid><author>pandy1110</author><pubDate>Mon, 28 Jun 2010 20:12:00 +0800</pubDate><description><![CDATA[<br />MFC移植到Qt<br />Qt/MFC Migration Framework <br />http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Windows/qtwinmigrate/]]></description><category></category></item><item><title><![CDATA[关于模式与非模式对话框 ]]></title><link>https://blog.youkuaiyun.com/pandy1110/article/details/5689589</link><guid>https://blog.youkuaiyun.com/pandy1110/article/details/5689589</guid><author>pandy1110</author><pubDate>Wed, 23 Jun 2010 16:28:00 +0800</pubDate><description><![CDATA[<br />      对话框有两种创建方式：DoModal和Creat。 其中DoModal创建的是模态的对话框，而Creat创建的是非模态的对话框下面总结下他们的不同。<br />      对于模态的对话框，在该对话框被关闭前，用户将不能在同一应用程序的其他地方进行工作（例如open file对话框），而对于非模态的对话框，在它留在屏幕上的同时可以在其他的地方进行工作，（例如find file对话框）<br /><br />      Create的Dialog一般是modalless,如果你的程序本]]></description><category></category></item></channel></rss>