- 博客(11)
- 资源 (6)
- 收藏
- 关注
原创 Shell_NotifyIcon如何强制显示tip
例如在程序退出是,systrayicon强制显示一个提示,等待若干秒退出LRESULT CMainFrame::OnDestroy(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled){ NOTIFYICONDATA nd; nd.cbSize = sizeof (NOTIFYICONDATA); nd.h
2007-06-25 11:36:00 2093
原创 类初始化列表MIL的一些细节
#include using namespace std;class Base{public: Base(int k ):j(k),i(Fun()) { } int j ; int i ; int Fun() { return 2 * j ; } void show() { cout }};void main(){ Base * b = new Base(3)
2007-06-23 21:40:00 898
原创 私有析构函数的作用
#include using namespace std;class Base{public: int i ;private: virtual ~Base() { }};Base gb;void main(){ Base b; } K:/Code Boost/PrivateDestructor.cpp(14): error #373: "Base::~Base()" is
2007-06-23 19:43:00 1751
原创 当虚函数的访问权限access control改变时
#include using namespace std;class Base{public: virtual void show() { cout }};class De:public Base{private: virtual void show() { cout }};void main() { Base *p = new De; p->show(); //OK,Ou
2007-06-23 19:30:00 1175
原创 含const型成员变量的类的赋值构造函数
#include using namespace std;class Test{public: Test(int a,int b):i(a),j(b) { } Test(const Test& t):i(t.i),j(t.j) { } void show() { cout }public: const int i ; int j;};void main(){ Test
2007-06-23 19:15:00 2986
原创 按照控制面板区域设置显示时间的格式函数
void CTimerWinView::OnDraw(CDC* pDC){ CTimerWinDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here struct tm *newtime; char am_pm[] = "AM"; time_t long_time;
2007-06-20 14:05:00 1356
原创 R6025 runtime error :pure virtual funcion call 原因 (From MSDN)
Description of the R6025 run-time error in Visual C++loadTOCNode(1, symptoms);The C++ program fails and reports the following run-time error:runtime error R6025- pure virtual function cal
2007-06-15 11:23:00 12283
原创 SHBrowseForFolder弹出的选择文件夹对话框改变默认title
SHBrowseForFolder 函数弹出的对话框默认title都是Browse for folder参数typedef struct _browseinfo { HWND hwndOwner; LPCITEMIDLIST pidlRoot; LPTSTR pszDisplayName; LPCTSTR lpszTitle; UINT u
2007-06-13 11:51:00 1477
原创 一个用模板实现的计数基类
#include #include template class ObjectCounter { private: static size_t count; // number of existing objects protected: // default constructor ObjectCounter() { ++ObjectC
2007-06-05 19:51:00 841
原创 static const 型成员变量的初始化
MyH.hclass StaticConst{public: StaticConst()// :abc(0) -----(1)error C2438: abc : cannot initialize static class data via constructor { //abc = 0; -------(2) error: expression must be
2007-06-02 16:07:00 1874
原创 定义指向类成员函数和类静态成员函数的指针
#include using namespace std;class Test{ public: void TestPrt(int k) { cout } static void GetDouble(int k) { cout }};void main(){ Test T; void (Test::*Pr)(int) = &Test::TestPrt; (T.*Pr
2007-06-02 15:34:00 1675
Hana CDS Reference
2018-11-20
Addison.Wesley.Effective.C.Sharp.50.Specific.Ways.to.Improve.Your.C.Sharp.eBook-LiB
2007-05-07
[代码大全(第二版)].Microsoft.Press.-.2003.-.Code.Complete.Second.Edition
2007-05-07
Addison Wesley - Beyond the C++ Standard Library - An Introduction to Boost (2005)
2007-05-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人