I agree with the previous post... why would you want to develop something new for something so old?
If you just want a project, I'm sure you can find other more useful and productive things to work on. Line numbers are hardly ever useful either, I've never had the need for them (I guess if you're having a need to discuss a file with another coder they'd be useful but I've never needed them).
1. Make a call from your C code to the Operating System API for shutdown. Which API call, what permissions you need and what options you have depends on the Operating System.
2. Break out the books and learn to make ACPI BIOS calls, probably more assembler than C. This will do it fast and sure but you may corrupt your OS and will certianly loose any unsaved data if you go this way.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)
I am going to add Ribbon Toolbar in My Existing MFC application. As i go through on net,i found that in VS2010,we can create Ribbon Resource using Ribbon Designer Inspite of using Ribbon Classes to create Ribbon Toolbar.
Now, I am using VS2010. I want to know How can I Add Ribbon toolbar to my application which is using old toolbars. Do I need to create Ribbon Resource Independently and then to load in Exisitng Application Or Some other Way to DO it?
Any Help Will be Appreciated.I want to in Right way when I update to Ribbon toolbar.
First of all, without synchronisation objects, you can't rely on anything having happened in another thread.
Second, CAsynchSocket has some inherent design problems (see CSocket considered harmful). You might want to consider rolling your own using the Win32 SDK if you're going to keep it running in a separate thread.
Third, you shouldn't create your CWinThread object directly. Use AfxBeginThread instead.
The colors set in a custom draw handler for CListCtrls are ignored for selected and hot items. With classic styles, the system uses COLOR_HIGHLIGHTTEXT for selected items. If you want to use other colors for selected and hot items, you must draw the items yourself and set the custom draw handler result to CDRF_SKIPDEFAULT:
void CMyListCtrl::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult)
*pResult = CDRF_DODEFAULT;
LPNMLVCUSTOMDRAW lplvcd = reinterpret_cast<LPNMLVCUSTOMDRAW>(pNMHDR);
case CDDS_PREPAINT : // first message at begin of each paint cycle
*pResult = CDRF_NOTIFYITEMDRAW; // notify of item specific paint operations
case CDDS_ITEMPREPAINT : // triggered by returning CDRF_NOTIFYITEMDRAW from CDDS_PREPAINT
*pResult = CDRF_NOTIFYSUBITEMDRAW; // handle each subitem seperately
case CDDS_ITEMPREPAINT | CDDS_SUBITEM : // triggered by CDRF_NOTIFYSUBITEMDRAW from CDDS_ITEMPREPAINT
// The colors set here are ignored for selected and hot items.
// Function that draws the cell content
*pResult = CDRF_SKIPDEFAULT; // skip it, has just been drawn
// May set text and background color here