...... zhong guo ren? ============================== My English is poor, please never mind:)
1 5kg
Posts
-
how to save a flash file created with a object as a gif/jpg/bmp file? -
I want to get all Messages that I participated in a discussion. Can i do it?I found it! haha~~ Thank you!! ============================== My English is poor, please never mind:)
-
I want to get all Messages that I participated in a discussion. Can i do it?Thank you~~~ ============================== My English is poor, please never mind:)
-
about overload : operate newI know i should overload this operater new, such as: void* operater new(size_t n, FILE *fp) { // some code } Now I want to get this object A(10) in the operater new function, so i can save this object's value. But as you know, the construct function always be implemented after operate new funtction, How do I now? My English is poor, please never mind:)
-
DLL Registeration Issuevoid CDllRegisterServerDlg::RunDllFunc(CString strFuncName) { CString strMsg; UpdateData(TRUE); HINSTANCE h=::LoadLibrary(m_strDllName); //dll name if(h == NULL) { strMsg.Format("Find not File: %s.", m_strDllName); MessageBox(strMsg,"Find File",MB_OK); return; } FARPROC pFunc= ::GetProcAddress((HMODULE)h,strFuncName); if(pFunc ==NULL) { strMsg.Format("Find not %s Function"); MessageBox(strMsg,"Find Function",MB_OK); return; } if(S_OK==(*pFunc)())//(*pFunc)()) { strMsg.Format("Ok: %s to %s succeeded.",strFuncName,m_strDllName); } else { strMsg.Format("Eorr: %s to %s eorr.",strFuncName,m_strDllName); } MessageBox(strMsg); } Use these code on debug mode, you can find the dll file which you missed~
-
debug vs release1. variable initial 2. windows own-message
-
about overload : operate newI want to get this code: // --> class A { public: A(int a) { m_a = a; } public: int m_a; }; FILE *fp = fopen("C:\\test.txt", "wt"); A* obj = new (fp) A(10); fclose(fp); // <-- When this code run over, the C:\test.txt file will be written in 10. Just as A(10). In other words, the operate new Function can save A(10) before A construct function implement. I can't solve it! My project have the same codes, but I have no sourcecode. I want to know how to do? I need your help~~~~ Thanks a lot~~~