hi every body, salamou alaykom ! how are you ? I have a question about dateTimePicker, normally this control display the current time of my system but I want that it diplay the time 00:00:00 by defaut and user can insert the time he wants. is it possible ? thank's a lot and have a nice day byyyyyyyyyye zizzzzzzzzzzzzzzz
zizzzz
Posts
-
about dateTimePicker -
question about CDialoghi, I want to display my CDialog in a specific position of the screen how can I do this ? thank's
-
update a table in a databasethank's a lot ;)
-
update a table in a databaseHi, I have a question I want to update my table with values like this
CString valuestr="('"+m_comm+"','"+m_sp+"')"; CString req="UPDATE T_Port SET CommPort='%s', Speed=' s'"+valuestr; database.ExecuteSQL(req);
And I have an error: non valide use of '!','.',or'()' in expression "%S'('COM4','9600')' -
problem with propertyPageI have a propertyPage in which I have CEdits. I want to display text entred in thoses CEdits from another CDialog. for example in my Page I enter in the CEdit m_edit1 the CString "myName" I want that I transmit this value to an CEdit of a CDialog m_CEdit.setWindowText(m_edit1) so they recommanded me to add message handlers to controls of this page. what does it means ? and how I use these message in this CDialog in which I want to receive the data from this propertyPage ? thank's
-
General question about versions of VC++switch (pMsg->message) { case WM_MBUTTONDOWN: POINTS pts = MAKEPOINTS( pMsg->lParam ); POINT point; point.x = pts.x; point.y = pts.y; ClientToScreen( &point ); pWnd = WindowFromPoint( point ); if( pWnd == this ) pWnd = m_pParentWnd; hittest = (int)pWnd->SendMessage(WM_NCHITTEST,0,MAKELONG(point.x,point.y)); case WM_KEYDOWN: **case WM_SYSKEYDOWN:** //here is the first error **case WM_KEYDOWN:** case WM_SYSKEYDOWN: //here is the second error Hide(); m_pParentWnd->PostMessage( pMsg->message, pMsg->wParam, pMsg->lParam ); return TRUE; }
thank's -
General question about versions of VC++yes exactly this I try to open the project file created with VC6 under VC.NET and I find many errors when compiling it for example in the sample gridctrl_demo221 which is available here with samples of codeproject I find this errors: error C2360: initialisation of 'pts' is ignored bye 'case' in all samples of gridctrl I found many problems but when I run the sample.exe it is working properly
-
General question about versions of VC++salam good morning, when I try to execute a sample done in VC++ 6 and I m working with VC++ .net it allow me to convert it but when I run it, it doesn't work there is many errors. and I remarque that many people tried it and it work for them but in VC++ 6. what's the difference between these two version normally when we do an amelioration we keep the basics of the last version ? thank you ! have a nice day zizzzzzzzzzz
-
about GridCtrlyes I use this I"nsert ActiveX control" but I only find - Hirarchical FlexGrid Control - SSOLEDBGridContrl -DataGridCtrl (this one is for data from database I don't need it) thank's for the example,I see it but it's very advanced I want some thing for begginers :)
-
about GridCtrlSalam, Good morning everyBody I want to insert a gridCtrl to my CDialog but I don't find the control in controls menu. can you help me ? thanks
-
thread demonok thanks !
-
thread demonHello ! I have a function which must be in a "demon" thread because I want that it still running until I close my program. in fact this function is doing a polling with the hardware and it retreive any occured information from it. I didn't work with thread or timer but is it a solution for my problem ? thanks a lot chokran :zzz: zizzzz zizzzzzzzzzzzzzzz
-
access to variable from another CDialogok I tried to retreive data from my existing class so I put in MyClass1.h : CMyClass2 m_classe2; and I call my parameter like this m_classe.status i should proceed like that ? :~ because i had errors when running the programm :sigh: thank's :) c zizzzzzzzzzz
-
access to variable from another CDialogHi, my problem is that I have a CDialog1(myClass1) in which I insert a propetysheet (using Picture Ctrl) in this propertysheet i add a propertyPage which generate me a CDialog2(myClass2). I want to get variable from this CDialog and pass it to the first one because I'm sending thoses data into an access table. I tried to get those parameters with this function void CGeneralUser::GetParameter(CString& sStatus,CString& sgender,CString& stel,CString& smobile) { sStatus=m_status; sgender=m_gender; stel=m_tel; smobile=m_mobile; } then I call this function in the first class(myClass1) like this in boutton OK CMyClass2 user; user.GetParameter(sStatus1,sgender1,sTel1,smobile1); When I write AfxMessageBox(sStatus1) for exemple the messagebox is empty I put UpdateData(TRUE); but it doesn't work why???? thank's for your help :confused: c zizzzzzzzzzzz
-
Event in a control ActiveXHi, how can I use the event in a control Activex when I add an event to the control I have this method: void CPrincipale::CardEventItdcinterfacectrl1(short nIndex, LPCTSTR EventBoardIndex, LPCTSTR EventReaderIndex, LPCTSTR EventCardID, LPCTSTR EventDate, LPCTSTR EventTime, LPCTSTR EventStatus) { // TODO : ajoutez ici le code de votre gestionnaire de messages }
-
combobox with recordset from databaseI want to display rows from a tabl in the database and user must select between them
-
combobox with recordset from databaseI think rows like in the MFC GRID
-
combobox with recordset from databaseGood evenning everybody ! In my combobox i want that the values are fields from the database when I click on the combobox a popup appear which contain different recordset from the database I saw an example like this but i forget where it was can you help me? :zzz:
-
Question about list Boxyes David I did it and it's working like I want thank's for you and for uday kiran janaswamy
-
Question about list Boxthank you this is what I want :-D