<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[天道酬勤，勤能补拙]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/csweier</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; csweier]]></copyright><item><title><![CDATA[qt集成ocx控件]]></title><link>https://blog.csdn.net/csweier/article/details/99640653</link><guid>https://blog.csdn.net/csweier/article/details/99640653</guid><author>csweier</author><pubDate>Thu, 15 Aug 2019 16:17:29 +0800</pubDate><description><![CDATA[1.使用regsvr32.exe命令注册ocx控件。

regsvr32.exe *****.ocx

  需要注意的点：需要通过管理员的方式打开，即开始-所有程序-附件-命令提示符 右击以管理员的方式打开，不然会报错DllRegisterServer的调用失败。

2.打开注册表，在HKEY_LOCAL_MACHINE目录下，检索ocx控件的名字获取CLSID的值

  开始输入rege...]]></description><category></category></item><item><title><![CDATA[tomcat的内存配置，关于-Xms -Xmx -XX:PermSize -XX:MaxPermSize的理解和区别]]></title><link>https://blog.csdn.net/csweier/article/details/79207011</link><guid>https://blog.csdn.net/csweier/article/details/79207011</guid><author>csweier</author><pubDate>Tue, 30 Jan 2018 15:51:38 +0800</pubDate><description><![CDATA[JVM按照其存储数据的内容将所需内存分配为堆区与非堆区两个部分：所谓堆区即为通过new的方式创建的对象（类实例）所占用的内存空间；非堆区即为代码、常量、外部访问（如文件访问流所占资源）等。然而虽然java的垃圾回收机制虽然能够很好的解决内存浪费的问题，但是这种机制也仅仅的是回收堆区的资源，而对于非堆区的资源就束手无策了，针对这样的资源回收只能凭借开发人员自身的约束来解决（堆区有java回收机制、非]]></description><category></category></item><item><title><![CDATA[Qt中路径问题小结]]></title><link>https://blog.csdn.net/csweier/article/details/68945667</link><guid>https://blog.csdn.net/csweier/article/details/68945667</guid><author>csweier</author><pubDate>Sat, 01 Apr 2017 16:41:44 +0800</pubDate><description><![CDATA[在做Qt项目的时候，我们难免遇到到文件路径问题。 如QFile file("text.txt")加载不成功、QPixmap("../text.png") 加载图片不成功等等。今天就来做一个关于Qt路径问题的小结！




首先需要弄清楚两个概念：绝对路径与相对路径
绝对路径: 文件在硬盘上真正存在的路径。例如“text.jpg”这个图片是存放在硬盘
       的“E:\book\]]></description><category></category></item><item><title><![CDATA[qt画图知识点整理]]></title><link>https://blog.csdn.net/csweier/article/details/65630644</link><guid>https://blog.csdn.net/csweier/article/details/65630644</guid><author>csweier</author><pubDate>Fri, 24 Mar 2017 14:42:35 +0800</pubDate><description><![CDATA[在paintEvent事件中绘制窗口边框

这里我们需要重写paintEvent方法，具体代码如下：
void paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.setRenderHint(QPainter::Antialiasing);  // 反锯齿;
    painter.setBrush]]></description><category></category></item><item><title><![CDATA[char *s 和 char s[] 的区别小结]]></title><link>https://blog.csdn.net/csweier/article/details/60571730</link><guid>https://blog.csdn.net/csweier/article/details/60571730</guid><author>csweier</author><pubDate>Mon, 06 Mar 2017 10:35:07 +0800</pubDate><description><![CDATA[最近的项目中有不少c的程序，在与项目新成员的交流中发现，普遍对于char *s1 和 char s2[] 认识有误区（认为无区别），导致有时出现“难以理解”的错误。一时也不能说得很明白，网上也搜了一下相关文章发现一些写的比较好的，综合了一下当教育资料备用。

 

char *s1 = "hello";
char s2[] = "hello";

 

【区别所在】

cha]]></description><category></category></item><item><title><![CDATA[epoll使用详解]]></title><link>https://blog.csdn.net/csweier/article/details/55517910</link><guid>https://blog.csdn.net/csweier/article/details/55517910</guid><author>csweier</author><pubDate>Fri, 17 Feb 2017 17:29:29 +0800</pubDate><description><![CDATA[epoll - I/O event notification facility

在linux的网络编程中，很长的时间都在使用select来做事件触发。在linux新的内核中，有了一种替换它的机制，就是epoll。
相比于select，epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中，它是采用轮询来处理的，轮询的fd数目越多，自然耗时越多。并且]]></description><category></category></item><item><title><![CDATA[java 类型转换]]></title><link>https://blog.csdn.net/csweier/article/details/54863452</link><guid>https://blog.csdn.net/csweier/article/details/54863452</guid><author>csweier</author><pubDate>Sat, 04 Feb 2017 15:28:44 +0800</pubDate><description><![CDATA[1. int转string
int i;
1.1. String str = String.valueOf(i)
1.2.
 String str = Integer.toString(i)
1.3.
String str = i+""]]></description><category></category></item><item><title><![CDATA[Java中字符串与ASCII相互转换]]></title><link>https://blog.csdn.net/csweier/article/details/54705770</link><guid>https://blog.csdn.net/csweier/article/details/54705770</guid><author>csweier</author><pubDate>Tue, 24 Jan 2017 09:09:39 +0800</pubDate><description><![CDATA[关键字：Java






　　代码：








import java.io.UnsupportedEncodingException;
public class T {
 public static void main(String[] args) throwsUnsupportedEncodingException {
  t1();//ASCI]]></description><category></category></item><item><title><![CDATA[Java  session write]]></title><link>https://blog.csdn.net/csweier/article/details/54584430</link><guid>https://blog.csdn.net/csweier/article/details/54584430</guid><author>csweier</author><pubDate>Tue, 17 Jan 2017 16:35:47 +0800</pubDate><description><![CDATA[基于Mina开发网络通信程序，在传感器数据接入领域应用的很广泛，今天我无意中发现一个问题，那就是我在前端session.write(msg)数据出去之后，却没有经过Filter的Encoder方法，同样能够写入远程服务器。因为我所发送的数据不需要很复杂的编码，所以encoder方法也一直没有去看，今天发现无法被自己写的过滤器所编码，针对这个问题，我打开以前的代码以及以前的项目中的相关代码，有些同事]]></description><category></category></item><item><title><![CDATA[JAVA的String 类]]></title><link>https://blog.csdn.net/csweier/article/details/54571420</link><guid>https://blog.csdn.net/csweier/article/details/54571420</guid><author>csweier</author><pubDate>Mon, 16 Jan 2017 09:57:27 +0800</pubDate><description><![CDATA[String类

         1、String对象的初始化

由于String对象特别常用，所以在对String对象进行初始化时，Java提供了一种简化的特殊语法，格式如下：

                            String s = “abc”;

                            s = “Java语言”;

        ]]></description><category></category></item><item><title><![CDATA[Java中this和super的用法总结]]></title><link>https://blog.csdn.net/csweier/article/details/54407329</link><guid>https://blog.csdn.net/csweier/article/details/54407329</guid><author>csweier</author><pubDate>Fri, 13 Jan 2017 11:59:49 +0800</pubDate><description><![CDATA[这几天看到类在继承时会用到this和super，这里就做了一点总结，与各位共同交流，有错误请各位指正~

this

this是自身的一个对象，代表对象本身，可以理解为：指向对象本身的一个指针。

this的用法在java中大体可以分为3种：

1.普通的直接引用

这种就不用讲了，this相当于是指向当前对象本身。

2.形参与成员名字重名，用this来区分：


]]></description><category></category></item><item><title><![CDATA[OTL翻译]]></title><link>https://blog.csdn.net/csweier/article/details/54290476</link><guid>https://blog.csdn.net/csweier/article/details/54290476</guid><author>csweier</author><pubDate>Mon, 09 Jan 2017 17:21:06 +0800</pubDate><description><![CDATA[说明

   该文档说明的是4.0版本的ORACLE/ODBC和DB2-CLI模板库（OTL）。OTL4.0（后面简称OTL）模板库是基于C＋＋的模板的。

OTL4.0是组合了C＋＋的模板框架和OTL适配器。框架是一个简单的OTL_stream的概念，OTL适配器则是一个基于数据库API的经量级的类库，并且作为参数传给OTL的框架参数。

OTL4.0仅通过otl_stream,ot]]></description><category></category></item><item><title><![CDATA[MSSOAP30.dll 导入 error C4772: #import 引用了缺少的类型库中的类型;“__missing_]]></title><link>https://blog.csdn.net/csweier/article/details/53432033</link><guid>https://blog.csdn.net/csweier/article/details/53432033</guid><author>csweier</author><pubDate>Fri, 02 Dec 2016 10:18:28 +0800</pubDate><description><![CDATA[原博地址：http://blog.csdn.net/lw_hm/article/details/52290925

工程中MSSOAP30.dll导入处编译失败，错误类型是网上找了很多材料，没有找到正确答案；




深入了解该类型错误原因，生成的tli文件中出现__misstype__是因为导入dll或者tlb的类型不识别。通过对比公司正常编译生成的tli文件，发现是xmlDocu]]></description><category></category></item><item><title><![CDATA[非窗口实现定时器的方法]]></title><link>https://blog.csdn.net/csweier/article/details/53424940</link><guid>https://blog.csdn.net/csweier/article/details/53424940</guid><author>csweier</author><pubDate>Thu, 01 Dec 2016 18:35:14 +0800</pubDate><description><![CDATA[定时器在视窗系统 的程式中的作用不可忽略，也随处可见。设定一个时间间隔每0.5秒或1秒钟刷新一次时钟，这样就能完成一个简单的电子钟程式。在不同的编程工具中定时器的用法也不同，Visual C++中也给我们提供了实现这种功能的方法，而且方法不只一种。在窗口类中是使用定时器比较简单，用SetTimer()设置了定时器之后，并在Class Wizard中添加了WM_TIMER消息映射后，你就能在映射函数]]></description><category></category></item><item><title><![CDATA[C++ 线程安全的单例模式]]></title><link>https://blog.csdn.net/csweier/article/details/52935907</link><guid>https://blog.csdn.net/csweier/article/details/52935907</guid><author>csweier</author><pubDate>Wed, 26 Oct 2016 16:50:30 +0800</pubDate><description><![CDATA[废话不多说，常用的代码积淀下来。
一、懒汉模式：即第一次调用该类实例的时候才产生一个新的该类实例，并在以后仅返回此实例。
需要用锁，来保证其线程安全性：原因：多个线程可能进入判断是否已经存在实例的if语句，从而non thread safety.
使用double-check来保证thread safety.但是如果处理大量数据时，该锁才成为严重的性能瓶颈。
1、静态成员实例的懒汉模式：]]></description><category></category></item><item><title><![CDATA[CDialog中创建CView窗口]]></title><link>https://blog.csdn.net/csweier/article/details/52483892</link><guid>https://blog.csdn.net/csweier/article/details/52483892</guid><author>csweier</author><pubDate>Fri, 09 Sep 2016 08:50:45 +0800</pubDate><description><![CDATA[新建一个视图类：CMyView，派生自CView 

在对话框类CCreateViewDlg上定义一个视图类指针

CMyView *m_pView;
为了使得视图创建在指定的区域，在对话框上放一个静态文本控件，资源ID为IDC_STATIC_VIEW

// OnInitDialog初始化中添加

UINT TargetCtrID = IDC_STATIC_VIEW;
 CW]]></description><category></category></item><item><title><![CDATA[VS中的路径宏 OutDir、ProjectDir、SolutionDir各种路径]]></title><link>https://blog.csdn.net/csweier/article/details/52291838</link><guid>https://blog.csdn.net/csweier/article/details/52291838</guid><author>csweier</author><pubDate>Tue, 23 Aug 2016 16:07:26 +0800</pubDate><description><![CDATA[说明

$(RemoteMachine)

设置为“调试”属性页上“远程计算机”属性的值。有关更多信息，请参见更改用于 C/C++ 调试配置的项目设置。

$(References)

以分号分隔的引用列表被添加到项目中。

$(ConfigurationName)

当前项目配置的名称（例如“Debug”）。

$(PlatformName)

当前项目平台的名称]]></description><category></category></item><item><title><![CDATA[do{}while(false)]]></title><link>https://blog.csdn.net/csweier/article/details/51966085</link><guid>https://blog.csdn.net/csweier/article/details/51966085</guid><author>csweier</author><pubDate>Wed, 20 Jul 2016 10:42:02 +0800</pubDate><description><![CDATA[本小节不是很适于没有多少实际编程经历的初学者，所以初学者可以跳过,以后再回头阅读。当然，所谓的“高级用法”的确是应该加对引号的，所谈的内容只是一个高手们常用小小技巧。

 
使用do...break...while简化多级条件判断的结构。 
　 
如果你写过不少代码，那么一定会不时遇到类似下的情况： 
假设要找到文件A，复制该文件为B；然后打开B文件，然后往B文件内写入一些内容；最后在]]></description><category></category></item><item><title><![CDATA[register]]></title><link>https://blog.csdn.net/csweier/article/details/51832152</link><guid>https://blog.csdn.net/csweier/article/details/51832152</guid><author>csweier</author><pubDate>Tue, 05 Jul 2016 15:42:43 +0800</pubDate><description><![CDATA[register：这个关键字请求编译器尽可能的将变量存在CPU内部寄存器中，而不是通过内存寻址访问，以提高效率。注意是尽可能，不是绝对。你想想，一个CPU的寄存器也就那么几个或几十个，你要是定义了很多很多register变量，它累死也可能不能全部把这些变量放入寄存器吧，轮也可能轮不到你。
一、皇帝身边的小太监----寄存器
   不知道什么是寄存器？那见过太监没有？没有？其实我也没有。没见过不]]></description><category></category></item><item><title><![CDATA[大端法、小端法、网络字节序]]></title><link>https://blog.csdn.net/csweier/article/details/51824057</link><guid>https://blog.csdn.net/csweier/article/details/51824057</guid><author>csweier</author><pubDate>Mon, 04 Jul 2016 22:01:19 +0800</pubDate><description><![CDATA[关于字节序(大端法、小端法)的定义
《UNXI网络编程》定义：术语“小端”和“大端”表示多字节值的哪一端(小端或大端)存储在该值的起始地址。小端存在起始地址，即是小端字节序；大端存在起始地址，即是大端字节序。

 

也可以说： 
1.小端法(Little-Endian)就是低位字节排放在内存的低地址端即该值的起始地址，高位字节排放在内存的高地址端。 
2.大端法(Big-Endia]]></description><category></category></item></channel></rss>