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

https://stackoverflow.com/ques... 

When is it right for a constructor to throw an exception?

...r environments where exceptions don't work properly or aren't implemented. MFC uses two-stage construction because when it was originally written, Visual C++ didn't have C++ exceptions working. Windows CE didn't get C++ exceptions until v4.0, and MFC 8.0. – Mike Dimmick ...
https://stackoverflow.com/ques... 

What is Linux’s native GUI API?

...ou cross-compile code written to the Metrowerks PowerPlant framework using MFC under the hood. (Before anyone sneers, once you get below the macros, MFC is quite reasonable.) I've also had multiple porting jobs where either the Win32 or the Mac Toolbox API was the spec against which we compiled, rei...
https://www.tsingfun.com/it/tech/2063.html 

Eclipse RCP开发桌面程序 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...用户触发了一个控件的事件,都会激活一个相应的Action类实例来进行时间处理。毫无疑问,我们的菜单项是一个Action类的子类了。 下面请看ApplicationActionBarAdvisor.java的源代码: 1 package cn.blogjava.youxia.rcp_start; 2 3 import org....
https://stackoverflow.com/ques... 

How do I make a fully statically linked .exe with Visual Studio Express 2005?

...ndow): Under Configuration Properties --> General, change the "Use of MFC" field to "Use MFC in a Static Library". Under Configuration Properties --> C/C++ --> Code Generation, change the "Runtime Library" field to "Multi-Threaded (/MT)" Not sure why both were needed. I used this to re...
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...