摘要:正在链接...libcpmtd.lib(xmutex.obj) : error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) 已经在 test_smilgen.obj 中定义libcpmtd.lib(xmutex.obj) : error LNK2005: "publi...
阅读全文
09 2005 档案
摘要:// flags indicating specified attributeslong m_spflags;void set_specified(int ind) {m_spflags |= ind;}enum { SP_DUR = 1, SP_BEGIN = SP_DUR << 1, SP_END = SP_BEGIN << 1, SP_RDUR = SP_END << 1, SP_RCOU...
阅读全文
摘要:inline TCHAR GenerateCharacter() const { switch (rand() % 3) { case 0 : return( 'a' + ( rand() % 26 ) ); case 1 : return( 'A' + ( rand() % 26 ) ); default: return( '0' + ( rand() % 10 ) ); } }
阅读全文
摘要:CRuntimeClass* AfxClassForName(LPCTSTR pszClass){ AFX_MODULE_STATE* pModuleState = AfxGetModuleState(); AfxLockGlobals( 0 ); for ( CRuntimeClass* pClass = pModuleState->m_classList ; pClass != NULL ...
阅读全文
摘要:基类的析构函数声明为virtual后才会依继承层次调用各自的析构函数。
阅读全文
摘要:在Statistics.h的最后添加“extern CStatistics Statistics;”在Statistics.cpp的最前面添加“CStatistics Statistics;”在别的c文件中#include "Statistics.h"就可直接使用Statistics全局变量了,真方便。 theApp就是这样声明的。
阅读全文
摘要:本文将介绍一些常用数据类型的使用。 我们先定义一些常见类型变量借以说明 int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程佩君";char temp[200];char *buf;CString str;_variant_t v1;_bstr_t v2; 一、其它数据类型转换为字符串 短整型(i...
阅读全文

浙公网安备 33010602011771号