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

https://www.tsingfun.com/it/cpp/1210.html 

[精华] VC中BSTR、Char和CString类型的转换 - C/C++ - 清泛网 - 专注C/C++及内核技术

...不要释放。调用者负责释放。例如: // Example shows using MFC's // CString::AllocSysString //... HRESULT CMyClass::get_StatusText( BSTR * pbstr ) { try { //m_str is a CString in your class *pbstr = m_str.AllocSysString( ); } ...
https://stackoverflow.com/ques... 

How to get the number of characters in a std::string?

...== 0) There are other string types in non-standard C++ libraries, such as MFC's CString, ATL's CComBSTR, ACE's ACE_CString, and so on, with methods such as .GetLength(), and so on. I can't remember the specifics of them all right off the top of my head. The STLSoft libraries have abstracted this a...
https://www.tsingfun.com/it/cpp/475.html 

VS Addin插件基本开发入门 - C/C++ - 清泛网 - 专注C/C++及内核技术

...,不解释。 这时,我们直接Ctrl + F5运行插件,启动VS新实例后,点击”工具“菜单,出现插件菜单项,如图: 2、接来,我们来为插件添加事件,实现的需求: 默认让它弹出一个VS特有的对话框,对话框中有一文本框和...
https://www.tsingfun.com/it/cpp/951.html 

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

... ??件的源码实例》。 源码点此下载,如有问题请点此。 ATL COM ActiveX 入门
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; } ~F...
https://www.tsingfun.com/it/cpp/1356.html 

BugTrap程序崩溃快照上传服务端开发配置 - C/C++ - 清泛网 - 专注C/C++及内核技术

...录: 此目录下包括BugTrap的库文件(.h,.lib,.dll),测试实例,测试工具等。 此目录下包括BugTrap服务端的安装程序,用于接收客户上传的崩溃包文件。 推荐使用tcp版本的服务端,.net编写的,可自动安装成windows服务:BugTra...
https://www.tsingfun.com/it/cpp/1443.html 

c++ Timer使用总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...序、控制台程序、多线程中分别使用Timer的方法,均提供实例参考。窗口应用程序使用Timer: #define TIMER_ID 1000 //定时器ID,可任意。触发后回调函数中用于区别不同的定时器以执行不同的任务 SetTimer(TIMER_ID, 1000 , NULL); //启动...
https://www.tsingfun.com/it/cpp/1455.html 

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

...别。我看了看例子也和OLE很像。详细请参考《[工程源码实例] C++ ADO 读写Excel源码及注意点》,程序编译后即使客户机没有安装Excel软件,也可运行读写Excel!!!。 6.LibXL LibXL 是一个收费的EXCEL的库。 http://www.libxl.com/ 按照...
https://www.tsingfun.com/it/cpp/1495.html 

VC/Linux C++ 递归访问目录下所有文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ind,&FindFileData)) break; } FindClose(hFind); } Linux C++实例如下: #include <dirent.h> #include <iostream> #include <cstdlib> #include <cstring> using namespace std; void GetFileInDir(string dirName) { DIR* Dir = NULL; struct dirent* file = NULL; if (d...
https://www.tsingfun.com/it/cpp/2033.html 

atol 头文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...符串转换成长整型数 用 法: long atol(const char *nptr); 实例: #include <stdlib.h> #include <stdio.h> int main(void) { long l; char *lstr = "98765432"; l = atol(lstr); printf("string = %s integer = %ld\n", lstr, l); return(0); } atol 头...