随笔分类 -  学习

摘要:#region"合并单元格的测试(一列或一行)" // int?是搜索一种类型(可空类型),普通的int不能为null,而用int?,其值可以为null //private int? nextrow = null; //private in... 阅读全文
posted @ 2014-10-30 17:35 慧由心生 阅读(6058) 评论(0) 推荐(0)
摘要:基于步入DevExpress的使用(VS),进一步使用DevExpress改变WinForm皮肤,适合初学者。提示:1、对于DevExpress菜单中的RepositoryItemComboBox没有EditValue属性,无法直接获取选择的值,但可以在其事件中将其转化为ComboBoxEdit控件... 阅读全文
posted @ 2014-10-23 15:07 慧由心生 阅读(11294) 评论(0) 推荐(0)
摘要:在c++程序里面经常见到下面的头文件#include io代表输入输出,manip是manipulator(操纵器)的缩写(在c++上只能通过输入缩写才有效。)iomanip的作用:主要是对cin,cout之类的一些操纵运算子,比如setfill,setw,setbase,setprecision等等。它是I/O流控制头文件,就像C里面的格式化输出一样.以下是一些常见的控制函数的:dec 置基数为10 相当于"%d"hex 置基数为16 相当于"%X"oct 置基数为8 相当于"%o"setfill( 'c' ) 设填 阅读全文
posted @ 2013-08-20 17:01 慧由心生 阅读(330) 评论(0) 推荐(0)
摘要:// log4cplus.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include "log4cpp/FileAppender.hh"#include #include "log4cpp/NTEventLogAppender.hh"#include #include //#include "log4cpp/SyslogAppender.hh"#include #include #include #include #inc 阅读全文
posted @ 2013-08-15 23:07 慧由心生 阅读(1954) 评论(3) 推荐(0)
摘要:21、Visual Studio 源码地址: https://referencesource.microsoft.com/#System.Core 20、开源代码地址: https://sourceforge.net/ https://sourceforge.net/directory/os:win 阅读全文
posted @ 2013-08-14 09:20 慧由心生 阅读(1028) 评论(23) 推荐(0)
摘要:dll中使用exe中的变量 阅读全文
posted @ 2013-07-30 11:04 慧由心生 阅读(819) 评论(0) 推荐(0)
摘要:#include "StdAfx.h"#include "MySetTimeByVT.h"#include #include //VariantTimeToSystemTime()#include //_variant_t#include using namespace std;MySetTimeByVT::MySetTimeByVT(void){ GetLocalTime(&m_systime); }MySetTimeByVT::~MySetTimeByVT(void){}MySetTimeByVT::MySetTimeByVT(SYSTEMT 阅读全文
posted @ 2013-07-24 19:32 慧由心生 阅读(3601) 评论(0) 推荐(0)
摘要:一、生成dll文件(VS2010 Win32 程序)CreateDll.h// 下列 ifdef 块是创建使从 DLL 导出更简单的// 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 CREATEDLL_EXPORTS// 符号编译的。在使用此 DLL 的// 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将// CREATEDLL_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的// 符号视为是被导出的。#ifdef CREATEDLL_EXPORTS#define CREATEDLL_API __declspec(dllexpor 阅读全文
posted @ 2013-07-19 22:41 慧由心生 阅读(5785) 评论(4) 推荐(1)
摘要:// TestShlwAPI.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #pragma comment(lib,"shlwapi.lib")#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ // Valid file path name (file is there). char buffer_1[] = "C:\\Install.log"; char *lpStr1; lpStr1 = buf 阅读全文
posted @ 2013-07-16 13:52 慧由心生 阅读(9164) 评论(0) 推荐(0)
摘要:// XMLT01.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include "tinyxml2.h"using namespace std;using namespace TinyXml2;void ReadTest01XML(){XMLDocument doc;doc.LoadFile("Test01.xml");const char * content = doc.FirstChildElement("test")->GetText();pri 阅读全文
posted @ 2013-06-17 16:55 慧由心生 阅读(3779) 评论(2) 推荐(0)
摘要:#define __FLAG__#ifndef __FLAG__#define DEST str1#else#define DEST str2#endifconst_char_p str1[3]={_T("1"),_T("2"),_T("3")};const_char_p str2[3]={_T("4"),_T("5"),_T("6")};const_char_p * str = DEST;const_char_p s = str[0];const_char_p s1 = s 阅读全文
posted @ 2013-06-07 11:43 慧由心生 阅读(235) 评论(0) 推荐(0)
摘要:主要代码如下:显示代码如下: CDC * pDialogDC = GetDC(); Invalidate(); UpdateWindow(); CPen pen(PS_SOLID,2,RGB(255,0,0)); pDialogDC->SelectObject(&pen); for (int i = 0;i picFlag) { case 0: pDialogDC->MoveTo(picVector[i]->startPoint); pDialogDC->LineTo(picVector[i]->endPoint); break; cas... 阅读全文
posted @ 2012-10-04 14:53 慧由心生 阅读(654) 评论(2) 推荐(0)