<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[老菜原创]]></title><description><![CDATA[C++ or all]]></description><link>https://blog.youkuaiyun.com/hellowithsmile</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hellowithsmile]]></copyright><item><title><![CDATA[古老的宏魔法]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/160928463</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/160928463</guid><author>hellowithsmile</author><pubDate>Sat, 09 May 2026 16:31:05 +0800</pubDate><description><![CDATA[【代码】古老的宏魔法。]]></description><category></category></item><item><title><![CDATA[Qt Widget 自定义TitleBar带阴影窗口]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/134465460</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/134465460</guid><author>hellowithsmile</author><pubDate>Fri, 17 Nov 2023 16:25:12 +0800</pubDate><description><![CDATA[其中，最小化、全屏化、正常化、关闭按钮，可以取 Qt内置的标准icon，可通过QPainter来变色通过获取topLevelWidget， 然后调用下列方法。]]></description><category></category></item><item><title><![CDATA[Qt遇到常见问题记录]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/134456185</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/134456185</guid><author>hellowithsmile</author><pubDate>Fri, 17 Nov 2023 09:54:01 +0800</pubDate><description><![CDATA[Qt常见问题 版本选择  QSS  Lamda]]></description><category></category></item><item><title><![CDATA[ITextHost绘制文字极小的问题]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/114965487</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/114965487</guid><author>hellowithsmile</author><pubDate>Thu, 18 Mar 2021 10:05:23 +0800</pubDate><description><![CDATA[对照别人的代码，发现实现接口ITextHost的时候，这么写，


HRESULT	TxGetExtent(LPSIZEL lpExtent) {
    return S_FALSE;
}

就会出现绘制的文字极小，无法看的问题。

应改为：


HRESULT	TxGetExtent(LPSIZEL lpExtent) { return E_NOTIMPL; }


...]]></description><category></category></item><item><title><![CDATA[用Direct2D绘制SVG （3）]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/82656049</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/82656049</guid><author>hellowithsmile</author><pubDate>Wed, 12 Sep 2018 09:20:34 +0800</pubDate><description><![CDATA[SVG Filter 和 Direct2D Filter对应关系，越做越心惊，莫非小小软又在抄袭标准？

https://developer.mozilla.org/zh-CN/docs/Web/SVG/Element
&amp;lt;feBlend&amp;gt;               CLSID_D2D1Blend
&amp;lt;feColorMatrix&amp;gt;         CLSID_D2D1Colo...]]></description><category></category></item><item><title><![CDATA[用Direct2D绘制SVG （2）]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/82590154</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/82590154</guid><author>hellowithsmile</author><pubDate>Mon, 10 Sep 2018 15:18:48 +0800</pubDate><description><![CDATA[Direct2d其实是可以直接Load和Draw SVG图形的。


首先需要从renderTarger, QueryInterface 到 ID2D1DeviceContext5
再从ID2D1DeviceContext5， CreateSvgDocument获得 ID2D1SvgDocument
（中间涉及到File到IStream，需通过HGLOBAL做桥）
最后ID2D1DeviceCon...]]></description><category></category></item><item><title><![CDATA[用Direct2D绘制SVG （1）]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/82589919</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/82589919</guid><author>hellowithsmile</author><pubDate>Mon, 10 Sep 2018 15:07:43 +0800</pubDate><description><![CDATA[矢量图形绘制， 首先想到使用SVG作为图像格式，起步需要的就是SVG文件格式。

GitHub找了一圈，nanosvg是一个很好的C库。
nanosvg是一个很符合KISS的库，分为parser 和 Rasterizer，
Parser部分，都在 #include &quot;nanosvg.h&quot; 头文件中，记得要#define NANOSVG_IMPLEMENTATION
Rasterizer部分，都在 ...]]></description><category></category></item><item><title><![CDATA[最近一份工作的总结]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/39858477</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/39858477</guid><author>hellowithsmile</author><pubDate>Tue, 07 Oct 2014 20:38:36 +0800</pubDate><description><![CDATA[这份工作干了9年半，一些总结，一些感想]]></description><category></category></item><item><title><![CDATA[Qt Quick 5.2 开发笔记4-------窗口]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/20744347</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/20744347</guid><author>hellowithsmile</author><pubDate>Sat, 08 Mar 2014 00:06:21 +0800</pubDate><description><![CDATA[窗口这玩意儿，现在还是有些说不太清楚。
首先我们按Qt Creator的向导来，我这一系列东西开头是Qt Quick，
所以新建项目、应用程序，Qt Quick Application。
Qt Quick Component Set选择 Qt Quick 2.0
一步一步next之后，我们看到了 hello world
这样就产生了好几个问题。
问题1：main.cpp
#inclu]]></description><category></category></item><item><title><![CDATA[Qt Quick 5.2 开发笔记3-------qml界面之自定义TitleBar]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/20741029</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/20741029</guid><author>hellowithsmile</author><pubDate>Fri, 07 Mar 2014 22:57:16 +0800</pubDate><description><![CDATA[搞完了c++和QML的交互问题，接下去，终于可以放心开始做界面
先唱一首歌，
美工产品我们去哪里呀
有我在就天不怕地不怕
美工美工我是你的蓝图
一直陪你搞不清楚
产品产品我们去哪里呀
你就是我的天大和地大
程序程序时间的手一挥
你是永远的稀里糊涂
对了，我们这边产品经理兼美工兼测试兼技术支持兼…. 反正是几个小姑娘，她们的想法老在变，但变来变去，一点不会变：就是基本的显示组件。。哥就不等她们]]></description><category></category></item><item><title><![CDATA[Qt Quick5.2 开发笔记2 -------Qml 和 c++交互的探索]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/20737371</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/20737371</guid><author>hellowithsmile</author><pubDate>Fri, 07 Mar 2014 22:06:48 +0800</pubDate><description><![CDATA[Qml 和 c++的相互交互的问题

这也是我们最关心的问题。
涉及到跟原先系统是否能集成，
这可以涉及系统架构的大问题啊。


百度/Google之后，找到了这个QM_Call_Qt_Function，原帖地址在这里：
http://developer.nokia.com/community/wiki/QML%E4%B8%8EQt_C%2B%2B_%E4%BA%A4%E4%BA%]]></description><category></category></item><item><title><![CDATA[Qt Quick 5.2 开发笔记1  -------安装入门 和 发布部署细节]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/19559659</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/19559659</guid><author>hellowithsmile</author><pubDate>Thu, 20 Feb 2014 16:07:31 +0800</pubDate><description><![CDATA[一、环境安装篇


Qt是所见过最容易安装的开发环境，用的是VS2010的环境，机子早已安装。
1.      下载最新的Qt：网址
http://qt-project.org/downloads



2.下载之后，安装，下一步、下一步
3.启动Qt Creator
4.可能还无法编译，需要到 菜单->工具->选项，

到“构建和运行”里面，自动检测一下，把MSVS20]]></description><category></category></item><item><title><![CDATA[我们应该怎么写程序？]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/9321987</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/9321987</guid><author>hellowithsmile</author><pubDate>Sun, 14 Jul 2013 00:36:52 +0800</pubDate><description><![CDATA[从 纸 到 单机 到 互联网，我们应该如何去适应时代变化，用新的方法策略，去打造自己的软件]]></description><category></category></item><item><title><![CDATA[快速清除STL::vector的内存]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/6540383</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/6540383</guid><author>hellowithsmile</author><pubDate>Mon, 13 Jun 2011 08:12:00 +0800</pubDate><description><![CDATA[为了防止内存泄露，习惯于new的时候，顺手就写一个delete。于是delete多了，想偷懒，顺手就写了一个宏，#define  DEL(p)  { delete p; p = NULL; }又遇到需要delete数组，就又写了一个宏#define DELX(p) { delete[] p; p = NULL; } 自从开始用了STL，vector就成了最最常用的数据结]]></description><category></category></item><item><title><![CDATA[[原创] C++操作符重载的变态用途－－特征聚焦的子类转换]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/308898</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/308898</guid><author>hellowithsmile</author><pubDate>Thu, 03 Mar 2005 10:33:00 +0800</pubDate><description><![CDATA[嘿嘿，如果类的成员变量是特定类和自定义结构，使用该类名或结构作为操作符进行重载。（当然是基本类型也可以，不过实用性不强，只会降低代码可读性。）如下，一个CPerson，强行转换为hand，也可以使用。类似于现实，我们只会对某个实物的具体特征表示强烈的兴趣，也就是特征聚焦的意思。如HR部门只会关注一个应聘者的skill。当然在实际用途中，过度使用这种子类转换，只会降低代码可读性。另外如类中有多个同类]]></description><category></category></item><item><title><![CDATA[C/C++开发过程中的一些bug]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/220173</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/220173</guid><author>hellowithsmile</author><pubDate>Fri, 17 Dec 2004 20:05:00 +0800</pubDate><description><![CDATA[目前工作上常常需要招熟练的C/C++的人手做开发，人员流动较频繁，我们这边主要是比较基本的动态库算法的开发，发现很多C方面基础的套路并不是人人都熟悉。1.很多新手把继承多态模板背的滚瓜烂熟，所谓的OO特征，基本的面向过程的，比如写个稍微复杂一点函数，就开始迷糊了。作为程序员，简单严谨的逻辑思维存在问题的话，谈不上面向业务性的建模...2.忽视内存问题。很多程序一跑，内存开始噼里啪啦的漏。说说容易做]]></description><category></category></item><item><title><![CDATA[即时通讯客户端AddIn框架1]]></title><link>https://blog.youkuaiyun.com/hellowithsmile/article/details/26631</link><guid>https://blog.youkuaiyun.com/hellowithsmile/article/details/26631</guid><author>hellowithsmile</author><pubDate>Fri, 25 Jun 2004 17:34:00 +0800</pubDate><description><![CDATA[1.Build a root com.Export some Interface;2.Build a Client Exe to use the Root com;3.Build a sub com to implement the Interface;just Test......contentto be continue.....概述       使用COM开发技术]]></description><category></category></item></channel></rss>