VC++ diary

... UpdateData: true indicate data from controls to variable; False indicate data from variable to controls. 3.Procedure of inserting a data into database: AddNew(); UpdateData(true); //convert values to the variables; it is very important!! m_pSet->Update(); //save data. Before you save it successfully, they maybe lost if you move the pointer. m_pSet->requery(); //if you add/delete data, you have to use this function in order to renew the recordsets. Now ,you can do other jobs. 4.KillTimer(mv_timer);&&SetTimer(0,1000,NULL[means you donft specify a Proc_fun]) Note: I ever placed those 2 function in the constructor and destructor respectively, and a fatal error was occurred. 6th, Nov., 2005. 1DA document object can work as the media between different objects. When 2 different want to exchange data, they can save them in the document object, ([Document object name *pDoc=Getdocument();) another object thus can get the data save in it. 2. m_pMainWnd->SetWindowText("LJh Test_dialog application"); Note: it use in app object and set the caption of the window. 7th, Nov., 2005. 1. I kept receiving an error message these 3 days described as gunhandled exceptionh, which almost drive me crazy. Today, I accidentally find that if you place some operation which should be within a class/object at where the object is not created or has been deleted, this kind of error will occur. So if you edit your APP object, be aware! 2. Another kind of error described as hDebug Assertion Failedh occurred because I want to change the title of a dialog in constructor, when object is ...

Essay Information


Words: 481
Pages: 1.9
Rating: None

All Papers Are For Research And Reference Purposes Only. You must cite our web site as your source.