There is a problem when working, summed up, welcome to criticize! [Question]: Fatal error C1189: # error: windows.h already incnaded
[Solution]: First include stdafx.h before, including any header files.
[Question]: Data is truncated
[Solution]: RFX_Text () function can pass the data default to 255 bytes, modify it, please refer to this function, please refer to this function
[Question] Insufficient parameters, the expected parameters are 1
[Solution] See if the first parameter of the Label and RFX_Text () in the data table is strict, and any other inconsistent issues can cause this problem, and the CRecordset is derived from the data sheet.
[Question]: Fatal Error C1010 UNEXPECTED End of File While Looking for ...
[Solution] The problem of pre-included header files, Alt F7-> C / C -> precompiled header -> NOT USING Precompiled header, this is because the compiler does not optimize the code of C when compiling, usually in C / C mixed programming
2004-10-9 Do not give a number directly to a cString variable, if there is four bits in that digit, and there is a bit 00, there is no problem, but if not, it will throw an exception, ie Microsoft Visual C Exception, code is not clear. This problem is too hard to find, thank you for TEACHER Lin's tips, huh, huh! 2004-11-01Access Voliation is usually replicated, which is super-allocated memory area. When do I skillfully use the dynamic memory allocation !! 2004-11-15 About the edit box in the CFormview derived class cannot be utilized The problem of shortcuts such as Ctrl C and Ctrl V, just need to delete these shortcuts in Accelorator, depressed for a long time, the original solution is: LRESULT OnHotKey (WParam WPARAM, LPARAM LPARAM); (h ) On_message (wm_hotkey, onhotkey) oncreate () // :: registerhotkey (m_hwnd, 1001, mod_control, 'c'); // Register hotkey OnDestory () // :: registerhotkey (m_hwnd, 1002, mod_control, 'v' ); Unregisterhotkey (M_HWND, 1001); // Logout hotkey, release system resources // unregisterhotkey (m_hwnd, 1002); LRESULT CINITCA :: Onhotkey (WPARAM WPARAM, LPARAM LPARAM) {GetCursorpos (& Pt); hwnd myhwnd = :: WindowFromPoint (Pt); // :: getcapture (); if (wparam == 1001) {:: SendMessage (myhwnd, wm_copy, 0, 0);} if (wparam == 1002) {: seundMessage (myhwnd, wm_paste , 0, 0);} return 0;}