大约有 912 项符合查询结果(耗时:0.0061秒) [XML]

https://www.tsingfun.com/it/cp... 

CDHtmlDialog的基本使用(JS调用C++函数的实现) - C/C++ - 清泛网 - 专注IT技能提升

...::JsCallCppFunc() { MessageBox(_T("C++弹出框!"), _T("JS、C++交互测试")); } 至此,运行效果如下: 四、去掉安全提示框: JSCppInteractiveDlg.h中protected部分添加重载申明: virtual BOOL CanAccessExternal(); JSCppInteractiveDlg.cpp中添加重载...
https://www.tsingfun.com/it/cpp/968.html 

ATL COM开发入门(二)(ActiveX/COM组件回调JS) - C/C++ - 清泛网 - 专注C/C++及内核技术

...turn hResult; } 二、前台代码: <HTML> <HEAD> <TITLE>COM接口测试页</TITLE> <script type="text/javascript"> //... function BeginTiming(){ AtlDemoObj.BeginTiming(this); } function TimingCallbackFunc(){ var obj = document.getElementById('timing'); var num = parseInt(obj.i...
https://www.tsingfun.com/it/cp... 

关于Rsyslogd 的一些配置 (高性能、高可用 rsyslogd) - C/C++ - 清泛网 - ...

...配置参数都采用默认,这种仅仅能够 work around 的配置在测试或运行初期是允许存在一段时间的,在系统、环境正常的时候能够运行。一旦出现异常,各种问题就全出来了。 推荐的文档和我认为比较关键的配置请见下图: ...
https://www.tsingfun.com/it/cpp/1227.html 

scoped_ptr 与 auto_ptr 与 shared_ptr 区别总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...所有权; 3.shared_ptr 是可以共享所有权的智能指针。 测试实例如下: #include "stdafx.h" //#include "windows.h" #include <memory> #include <iostream> using std::tr1::shared_ptr; class Foo { public: Foo() { std::cout<<"new Foo()"<<std::endl; i = 0; ...
https://www.tsingfun.com/it/cpp/1425.html 

VC 对话框背景颜色、控件颜色 - C/C++ - 清泛网 - 专注C/C++及内核技术

...景颜色: 网上流传有四种方法(可能还不止),在VC++2008SP1测试后,发现只有三种可以使用了,其中第一种被废弃了。以下是四种方法: 方法一 (失效):调用CWinApp类的成员函数SetDialogBkColor来实现。 其中函数的第一个参数...
https://www.tsingfun.com/it/cpp/1455.html 

C++读写EXCEL文件方式比较 - C/C++ - 清泛网 - 专注C/C++及内核技术

...台,我估计难度也不小。呵呵。 由于要收费,没有法子测试了。 7.网上一些号称不用OLE读取EXCEL例子 初步看了一下,这个应该是网上探索EXCEL格式文档的例子。可以实际操作的方式不强。 ==========================================...
https://www.tsingfun.com/it/cpp/1492.html 

vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...Error:%d)\n", delFileName, GetLastError()); return 0; } 经过测试,文件路径必须为绝对路径,相对路径会操作失败。 获取当前路径拼上相对路径代码如下: char szDelPath[MAX_PATH + 1] = { 0 }; GetCurrentDirectory(MAX_PATH, szDelPath); CString del...
https://www.tsingfun.com/it/cpp/1823.html 

Linux automake自动编译全攻略 - C/C++ - 清泛网 - 专注C/C++及内核技术

...lc.h" int add(int a, int b) { return a + b; } 主目录下测试代码test.c: #include <stdio.h> #include "lib/calc.h" int main(int argc, char** argv) { int sum = add(1, 2); printf("sum:%d\n", sum); return 0; } 编译及执行结果...
https://www.tsingfun.com/it/cpp/1951.html 

[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...

...Column(0, _T("序号"), LVCFMT_LEFT, 60); m_ListCtrl.InsertColumn(1, _T("测试"), LVCFMT_LEFT, 200); m_ListCtrl.InsertColumn(2, _T("备注"), LVCFMT_LEFT, 100); //插入行 int nRow = m_ListCtrl.InsertItem(0, _T("1")); m_ListCtrl.SetItemText(nRow, 1, _T("www.tsingfun.com")); //设置数...
https://www.tsingfun.com/it/cpp/1962.html 

CListCtrl 行高设置,自定义行高 - C/C++ - 清泛网 - 专注C/C++及内核技术

...Column(0, _T("序号"), LVCFMT_LEFT, 60); m_ListCtrl.InsertColumn(1, _T("测试"), LVCFMT_LEFT, 200); m_ListCtrl.InsertColumn(2, _T("备注"), LVCFMT_LEFT, 100); //插入行 int nRow = m_ListCtrl.InsertItem(0, _T("1")); m_ListCtrl.SetItemText(nRow, 1, _T("www.tsingfun.com")); //设置数...