大约有 35,487 项符合查询结果(耗时:0.0438秒) [XML]

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

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

...); } </script> </HEAD> <BODY> <object id="AtlDemoObj" classid="clsid:B0DA2962-C4C3-48CD-BFBC-4F43F9D03C56" width=0 height=0></object> <input name=ipt1 size=8/> <input name=ipt2 size=8/> <input type="button" value="Test" onclick = "javascript:Test();"/> </BODY> </HTML> 注意:clsid...
https://www.tsingfun.com/it/cpp/1227.html 

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

...s Foo { public: Foo() { std::cout<<"new Foo()"<<std::endl; i = 0; } ~Foo() { std::cout<<"destroy Foo()"<<std::endl; } void print() { std::cout<<"Foo::print"<<std::endl; } int i; }; void OutSharePtr(shared_ptr<Foo> &P) { Foo* p = new Foo(); shared_ptr<Fo...
https://www.tsingfun.com/it/cpp/1283.html 

Visul C++中CList用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

... { public: CPoint point; CNode() { point.x = 0; point.y = 0; } void operator = (CPoint& p) //运算符=的重载 { point = p; } }; 6、CList的序列化: CList是一个继承了CObject的类,并且已经实...
https://www.tsingfun.com/it/cpp/1354.html 

BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术

...un.com")); // 最新的Log文件附上 TCHAR szLogFile[MAX_PATH] = { 0 }; GetCurrentDirectory(MAX_PATH, szLogFile); SYSTEMTIME sys; GetLocalTime(&sys); _stprintf_s(szLogFile, _T("%s\\logs\\%4d%02d%02d.log"), szLogFile, sys.wYear, sys.wMonth, sys.wDay); BT_AddLogFile(szLogFile); ...
https://www.tsingfun.com/it/cpp/1372.html 

Boost智能指针——shared_ptr - C/C++ - 清泛网 - 专注C/C++及内核技术

...,就将该对象的引用计数减一,如果该对象的引用计数为0的时候,说明没有任何指针对其管理,才调用delete释放其所占的内存。 上面的那个例子可以的图示如下: sp1对implementation对象进行管理,其引用计数为1 增加sp2...
https://www.tsingfun.com/it/cpp/1435.html 

std::find,std::find_if使用小结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... operator()(ProductAccount p) { return (product.compare(p.Product) == 0); } std::string product; } finder_t; int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { ProductAccountVec vecProductAccount; ProductAccount pa1 = {"p1", "a1"}; vecProductAccount.push_back(pa1); Pr...
https://www.tsingfun.com/it/cp... 

MFC Telnet Application(mfc telnet 端口,代码实现、不调用telnet.exe) ...

...码工程升级后,可能出现编译不过的情况,请将stdafx.h中0x0410全部改为0x0501即可。The article demonstrates an MFC GUI Telnet application with server capabilities for incoming connections support. Download demo - 29.9 KB Download source - 42.1 KB Introduction I've d...
https://www.tsingfun.com/it/cpp/1469.html 

MFC SysLink的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...DR; if (wcscmp(pNMLink->item.szUrl, L"https://www.tsingfun.com") == 0) { // 主要执行语句 ShellExecuteW(NULL, L"open", pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL); } *pResult = 0; } MFC SysLink
https://www.tsingfun.com/it/cpp/1491.html 

c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ch (...) { return -1; } return 0; } //从文件加载结构体数据 template<typename TemplateStruct> int load(TemplateStruct & templateStruct,const std::string &strFileName,const unsigned int version = SERIALIZATION_VERSION) { try {...
https://www.tsingfun.com/it/cpp/1512.html 

c++编译错误:invalid new-expression of abstract class type - C/C++ - ...

...要实现,这样才能new 子类。 纯虚函数例如 void fun() = 0; 是纯虚函数,不是纯虚函数不作要求。 另外,void fun() { } 空函数体也是实现。 纯虚函数相当于C#中abstract抽象类。 =0 说明函数是抽象的方法,谁继...