<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[玉宇逍遥]]></title><description><![CDATA[做我所思，成我所想]]></description><link>https://blog.youkuaiyun.com/woshiqinxue</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; woshiqinxue]]></copyright><item><title><![CDATA[C/C++ 指针删除的几个细节]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/53127202</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/53127202</guid><author>woshiqinxue</author><pubDate>Fri, 11 Nov 2016 11:25:17 +0800</pubDate><description><![CDATA[在C/C++中，当指针需要删除时，对于new的指针，调用delete就可以删除  比如 :
int* p = new int(17);  
delete p;  
有时候为了避免使用错误，一般在delete之后，将p置为NULL，即:

int* p = new int(17);  
delete p;  
p = NULL;  
有时候为了方便及统一处理指针的申请及释放，一般放到将删除]]></description><category></category></item><item><title><![CDATA[用WMI获取磁盘硬件信息]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/49817909</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/49817909</guid><author>woshiqinxue</author><pubDate>Fri, 13 Nov 2015 14:45:54 +0800</pubDate><description><![CDATA[#include "stdafx.h"
using namespace std;
#include 
#include 
#include 
#pragma comment ( lib, "wbemuuid.lib" )
IWbemServices *pSvc = NULL;
IWbemLocator *pLoc = NULL;
IWbemClassObject* pclsObj = NULL;
]]></description><category></category></item><item><title><![CDATA[VC++ 获取硬盘序列号源码(XP适用)]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/49816953</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/49816953</guid><author>woshiqinxue</author><pubDate>Fri, 13 Nov 2015 13:47:35 +0800</pubDate><description><![CDATA[// GetHDSerial.cpp: implementation of the CGetHDSerial class. 
// Download by http://www.newxing.com/ 
////////////////////////////////////////////////////////////////////// 
#include "stdafx.h" 
#inc]]></description><category></category></item><item><title><![CDATA[python idle 清屏问题的解决]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/44748055</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/44748055</guid><author>woshiqinxue</author><pubDate>Mon, 30 Mar 2015 11:13:21 +0800</pubDate><description><![CDATA[在学习和使用python的过程中，少不了要与python idle打交道。但使用python idle都会遇到一个常见而又懊恼的问题——要怎么清屏?

 

我在stackoverflow看到这样两种答案：

1.在shell中输入

1 import os
2 os.system('cls')这种方法只能在windows系统中cmd模式下的python shell 才管用（因为c]]></description><category></category></item><item><title><![CDATA[Wireshark学习与开发资料]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/35985549</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/35985549</guid><author>woshiqinxue</author><pubDate>Mon, 30 Jun 2014 09:54:55 +0800</pubDate><description><![CDATA[wireshark基础介绍：

http://www.wireshark.org/

http://www.oschina.net/p/wireshark

http://www.cnblogs.com/TankXiao/archive/2012/10/10/2711777.html




wireshark编译文章中较好的一篇：

Creating Your Own ]]></description><category></category></item><item><title><![CDATA[MFC修改全局字体]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/32313445</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/32313445</guid><author>woshiqinxue</author><pubDate>Thu, 19 Jun 2014 10:02:59 +0800</pubDate><description><![CDATA[BOOL CXXXApp::InitInstance() 中加入如下代码：
// 修改默认字体 [2012-3-19 sxh]
	//设置正常字体
	LOGFONT lf;   
	afxGlobalData.fontRegular.GetLogFont(&lf);   
	afxGlobalData.fontRegular.DeleteObject();   
	lf.lfHeight = -]]></description><category></category></item><item><title><![CDATA[用CryptoAPI实现DES加密解密]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/28279983</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/28279983</guid><author>woshiqinxue</author><pubDate>Tue, 03 Jun 2014 18:47:54 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
 
BOOL DES(__in const BYTE* pbKey,
         __in DWORD cbKeyLen,
         __in const BYTE* pbData,
         __in DWORD cbDataLen,
         __out BYTE* pbBuf,
         __i]]></description><category></category></item><item><title><![CDATA[STL-容器间的复制list&vector]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/12560373</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/12560373</guid><author>woshiqinxue</author><pubDate>Thu, 10 Oct 2013 10:58:04 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
#include 

int main()
{
	//copy list to list
	std::list oldList;
	std::list newList;
	oldList.push_back("test1");
	oldList.push_back("test2");
	oldList.push_back("test3")]]></description><category></category></item><item><title><![CDATA[vc文件复制和删除及移动和重命名]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/8686271</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/8686271</guid><author>woshiqinxue</author><pubDate>Mon, 18 Mar 2013 11:11:01 +0800</pubDate><description><![CDATA[VC 移动,复制,删除文件(SHFileOperation)








总结一下SHFileOperation的用法,希望对大家有用
//删除文件或者文件夹
bool DeleteFile(char * lpszPath) 
{ 
SHFILEOPSTRUCT FileOp={0}; 
FileOp.fFlags = FOF_ALLOWUNDO |   //允许放]]></description><category></category></item><item><title><![CDATA[VC中DLL、OCX中获取本身完整路径]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/8645384</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/8645384</guid><author>woshiqinxue</author><pubDate>Thu, 07 Mar 2013 10:33:40 +0800</pubDate><description><![CDATA[最后获取到的strTemp就是所在目录了

TCHAR moduleName[MAX_PATH] = {0}; 
GetModuleFileName(AfxGetInstanceHandle(),moduleName,MAX_PATH); 
TCHAR _strLongPath[MAX_PATH] = _T("\0");
::GetLongPathName(moduleName, _strLo]]></description><category></category></item><item><title><![CDATA[UNICODE与ANSI编码的字符间的相互转换]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/8442975</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/8442975</guid><author>woshiqinxue</author><pubDate>Thu, 27 Dec 2012 12:38:26 +0800</pubDate><description><![CDATA[过往的项目中总是涉及到一些UNICODE与ANSI之间的编码的转换，这个在Java中不难，使用API就搞定了，但是在C++zhong就要麻烦一点。可以使用下面的代码实现转换。
声明：改代码分配的空间需要手动删除掉！并且需要在Windows的平台下使用。
UNICODE转换ANSI：

char* CODE_W2A(LPCWSTR lpW)
{
	int len = ::WideCharTo]]></description><category></category></item><item><title><![CDATA[JavaScript 数字转换字符串]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/8442959</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/8442959</guid><author>woshiqinxue</author><pubDate>Thu, 27 Dec 2012 12:30:36 +0800</pubDate><description><![CDATA[声明：这段代码是在论坛上看到的，非本人所写。编者为：muxrwc.

var format = function (number, form) {
//大概就先这样，代码先不浓缩了。。:D
    var forms = form.split('.'), number = '' + number, numbers = number.split('.')
        , leftnumber]]></description><category></category></item><item><title><![CDATA[实现int float  double  转换成std::string]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/8256812</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/8256812</guid><author>woshiqinxue</author><pubDate>Tue, 04 Dec 2012 17:28:11 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
using namespace std;
#include 
#include 


#ifndef CONVERT_TO_STRING
#define CONVERT_TO_STRING
template 
std::string ConvertToString(T value) 
{  
	int prec = numeric_lim]]></description><category></category></item><item><title><![CDATA[慎用USES_CONVERSION]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/7900773</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/7900773</guid><author>woshiqinxue</author><pubDate>Thu, 23 Aug 2012 17:01:10 +0800</pubDate><description><![CDATA[USES_CONVERSION是ATL中的一个宏定义。用于编码转换(用的比较多的是CString向LPCWSTR转换)。在ATL下使用要包含头文件#include "atlconv.h"
使用USES_CONVERSION一定要小心，它们从堆栈上分配内存，直到调用它的函数返回，该内存不会被释放。如果在一个循环中，这个宏被反复调用几万次，将不可避免的产生stackoverflow。
//使用AT]]></description><category></category></item><item><title><![CDATA[对文件夹的操作]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/7823741</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/7823741</guid><author>woshiqinxue</author><pubDate>Thu, 02 Aug 2012 16:53:42 +0800</pubDate><description><![CDATA[SHFileOperation（）函数主要对文件夹有四种操作：复制，删除，移动，重命名。
挤时间对这个函数进行了利用了一下。写了四个函数。可以很好的对文件夹进行操作。

/////////////////////////////////////
//函数名:DeleteFolder
//输入参数：LpszPath 要删除的路径指针
//作用：删除指定文件夹以及里面的文件
//
//]]></description><category></category></item><item><title><![CDATA[Openssl证书的读取和分离]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727681</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727681</guid><author>woshiqinxue</author><pubDate>Sun, 28 Aug 2011 23:28:18 +0800</pubDate><description><![CDATA[最近在做C++下的一些加密和解密的相关项目，整理了一下使用Openssl对于证书的一些操作，其中很多都是在网上搜索到的。准备在这个项目结束之后写一些关于Openssl使用上的心得。
获取的公私钥的代码:
BOOL CTesteclibDlg::ParseDB(char *st]]></description><category></category></item><item><title><![CDATA[Openssl的Base64编码及解码]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727674</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727674</guid><author>woshiqinxue</author><pubDate>Sun, 28 Aug 2011 23:22:19 +0800</pubDate><description><![CDATA[近日需要在C++下面做一些加解密的事情,因为是在Linux下面,首选自然是openssl. 但openssl的文档真是不敢恭维,文档少得可怜不说,在网络上搜索到的东西也是鱼龙混杂.我想我还是总结一下,有益于自己也造福别人.

首先是Base64的编码,openssl提供两种方]]></description><category></category></item><item><title><![CDATA[heap corruption detected: CRT detected that the application wrote to memory]]></title><link>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727671</link><guid>https://blog.youkuaiyun.com/woshiqinxue/article/details/6727671</guid><author>woshiqinxue</author><pubDate>Sun, 28 Aug 2011 23:19:28 +0800</pubDate><description><![CDATA[错误的现象是这样的：

在程序的开始处我申请了一块内存，中间对其进行了一些操作，在程序结束处，释放内存的时候，引起错误：

HEAP CORRUPTION DETECTED：after Normal block(#***) at 0x****.CRT detected t]]></description><category></category></item></channel></rss>