HexEdit/HexEditView.cpp
void CHexEditView::check_error()
{
	if (GetDocument()->HasSectorErrors())
	{
		// turn on sector display so user can see which sector(s) had errors
		display_.borders = 1;

		if (!errors_mentioned_)
		{
			TaskMessageBox("Read Error",
				"One or more bad sectors were reported when attempting to read from the device.");
			errors_mentioned_ = true;
		}
	}
}
// Check if we have had read errors on the device and warn the user (but only once)
// Note that this will warn once per view not once per file but we don't care too much.

Check if we have had read errors on the device and warn the user (but only once)
Note that this will warn once per view not once per file but we don't care too much.
Check if we have had read errors on the device and warn the user ( but only once ) Note that this will warn once per view not once per file but we don ' t care too much .
void CHexEditView::check_error()
{
	if (GetDocument()->HasSectorErrors())
	{
		display_.borders = 1;
		if (!errors_mentioned_)
		{
			TaskMessageBox("Read Error",
				"One or more bad sectors were reported when attempting to read from the device.");
			errors_mentioned_ = true;
		}
	}
}
void CHexEditView :: check_error ( ) { if ( GetDocument ( ) -> HasSectorErrors ( ) ) { display_ . borders = 1 ; if ( ! errors_mentioned_ ) { TaskMessageBox ( " " , " " ) ; errors_mentioned_ = true ; } } }
Check if we have had read errors on the device and warn the user (but only once)
Note that this will warn once per view not once per file but we don't care too much.
Check if we have had read errors on the device and warn the user ( but only once ) Note that this will warn once per view not once per file but we don ' t care too much .
// turn on sector display so user can see which sector(s) had errors
