MFC/MFC 관련 설명 모음
[MFC] 프로그램 하나만 실행 시키기.
// 헤더 파일에 추가. HANDLE mh_program_state; // OnInitDialog()에 추가. BOOL CMFCApplication1Dlg::OnInitDialog() { CDialogEx::OnInitDialog(); // 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 mh_program_state = CreateMutex(NULL, FALSE, L"프로젝트명"); if (E..
