Sorry for my carelessness ,I typed the .clw as .dsw . AntonlioX
AntonlioX
Posts
-
Custom Controls in VC++6 -
DLLsearches dll in the following sequence: The directory from which the application loaded. The current directory. Windows 95 and Windows 98: The Windows system directory. Use theGetSystemDirectory function to get the path of this directory. Windows NT: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32. Windows NT: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM. The Windows directory. Use theGetWindowsDirectory function to get the path of this directory. The directories that are listed in the PATH environment variable. AntonlioX
-
Custom Controls in VC++6You can remake the .dsw file . The steps is in the following : 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . Above is all. Try it AntonlioX
-
how to make the application starts with the system?Another Method is to place a shortcut of your application on the directory "startup" AntonlioX
-
How to develop real-time communication program through RTPRecently I have read some materials on RTP ,But I still could not know how to realize it ? Can anybody tell me some advice . I have known the RTP/RTCP packet structure ,but I don't know how to fill the structure ,for I wonder how to get the original data used to fill in the stucture ,which I guessed is realized by myself not the RTP protocol. AntonlioX
-
about Coordinate Map Mode and compatible DC ???Hi Jose: Thank you very much .What you have said is much useful ! AntonlioX
-
Get Controll?:laugh:Hi Larsson : I could not understand your meaning .But if you want to get the char when you click a certain key of keyboard ,you can use the message map to hook the key down message. The example is in the following : // you should ooverride the "PreTranslateMessage" BOOL CMyClientDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class switch(pMsg->message) { case WM_KEYDOWN : switch(pMsg->wParam) { case 'A': //add code here to get the char A break; case 'B': //add code here to get the char B break; case 'B': //add code here to get the char C break; } break; case WM_KEYUP: switch(pMsg->wParam) { case 'A': //add code here to get the char A break; case 'B': //add code here to get the char B break; case 'B': //add code here to get the char C break; } } break; } return CDialog::PreTranslateMessage(pMsg); } AntonlioX
-
about Coordinate Map Mode and compatible DC ???CharlieG : Thank you very much ! I have solved this question by now ,the key of which is the ordinate of the MemDC should be set correct . Antonliox
-
about Coordinate Map Mode and compatible DC ???The aim of my case is to paint picture in the memory-DC (compatible DC) ,for preventing glitter when refresh(repaint)! And I choose the maths coordinate mode not the MM_TEXT .That is X-axis ascending from left to righgt while Y-axis from bottom to top!
-
about Coordinate Map Mode and compatible DC ???I think the problem in my case is the " coordinate map ". I don't know When I excute the following codes: CRect rect; GetClientRect(rect); CClientDC dc (this); dc.SetMapMode (MM_ISOTROPIC); dc.SetWindowExt (rect.Width (), -rect.Height ()); dc.SetViewportExt (rect.Width (), -rect.Height ()); dc.SetViewportOrg (point); , Whether I should also change the memDC's coordinate map mode ,just like the following : CDC memDC; memDC.CreateCompatibleDC(&dc); memDC.SetMapMode(MM_ISOTROPIC); memDC.SetWindowExt(rect.Width(), -rect.Height()); memDC.SetViewportExt(rect.Width(), -rect.Height()); memDC.SetViewportOrg (point); aa
-
about Coordinate Map Mode and compatible DC ???How to change the Coordinate Map Mode ,create a compatible DC used to draw ,then call bitblt() to show the picture? my code in the following , But when I run it ,there is nothing to be showed! void CTestSetMapModeView::OnLButtonDown(UINT nFlags, CPoint point) { CRect rect; GetClientRect(rect); CClientDC dc (this); dc.SetMapMode (MM_ISOTROPIC); dc.SetWindowExt (rect.Width (), -rect.Height ()); dc.SetViewportExt (rect.Width (), -rect.Height ()); dc.SetViewportOrg (point); CDC memDC; memDC.CreateCompatibleDC(&dc); memDC.SetMapMode(MM_ISOTROPIC); memDC.SetWindowExt(rect.Width(), -rect.Height()); memDC.SetViewportExt(rect.Width(), -rect.Height()); memDC.SetViewportOrg (point); CBitmap bitmap,*pOldBitmap; bitmap.CreateCompatibleBitmap(&dc,rect.Width(),rect.Height()); pOldBitmap=memDC.SelectObject(&bitmap); memDC.BitBlt(-rect.Width()/2,rect.Height()/2,rect.Width(),rect.Height(),&dc,-rect.Width()/2,rect.Height()/2,SRCCOPY); //draw some pictures memDC.Ellipse(-50,50,50,-50); memDC.Ellipse(-10,20,10,-20); dc.BitBlt(-rect.Width()/2,rect.Height()/2,rect.Width(),rect.Height(),&memDC,-rect.Width()/2,rect.Height()/2,SRCCOPY ); memDC.SelectObject(pOldBitmap); bitmap.DeleteObject(); CView::OnLButtonDown(nFlags, point); }