CLight_controlDlg::CLight_controlDlg(CWnd* pParent /*=NULL*/)
: CDialog(CLight_controlDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CLight_controlDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CLight_controlDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLight_controlDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
CenterWindow(GetDesktopWindow()); // center to the hpc screen
a=(volatile int*)VirtualAlloc(0,512,MEM_RESERVE,PAGE_NOACCESS);
if(a==NULL)
{
DEBUGMSG(1,(TEXT("a is not allocated\n\r")));
return TRUE;
}
if(!VirtualCopy((PVOID)a,(PVOID)a_base,512,PAGE_READWRITE|PAGE_NOCACHE))
{
DEBUGMSG(1,(TEXT("a is not mapped\n\r")));
return TRUE;
}
DEBUGMSG(1,(TEXT("a is mapped to %x\n\r"),a));