摘要:
#include #include #include #define BUFFER_SIZE 100int main( void ){ size_t i; char *pMBBuffer = (char *)malloc( BUFFER_SIZE ); wchar_t... 阅读全文
摘要:
使用COleDateTime类1) 获取当前时间。 CTime time; time = CTime::GetCurrentTime();2) 获取时间元素。 int year = time.GetYear() ; int month = time.GetMonth(); int day = tim... 阅读全文
摘要:
//An example of a simple double linked list using OOP techniques#include using namespace std; struct Node{ double value; Node *N,*P; Node(double y)... 阅读全文
摘要:
//friend function example source code//role of friend function.#include using namespace std;class x{ protected: int x1; public: x(int a1):x1(a1){}... 阅读全文
摘要:
症状调用CWnd::GetDC函数跟CWnd::ReleaseDC函数的代码运行时,会出现 4 个字节的内存泄漏。原因导致此错误的原因是当前未知。解决方案若要避免此问题,请不要使用GetDC方法和ReleaseDC方法的CWnd类版本。使用GetDC函数和ReleaseDC函数。状态Microsof... 阅读全文
摘要:
ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical represen... 阅读全文
摘要:
unsigned short TestCenter::CStringToHex(CString Text){ unsigned short retValue = 0; for (int i =0; i<Text.GetLength (); i++) { char ch... 阅读全文