전체 글

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..

C++/STL

vector 2차원 배열 생성과 삭제

1234567891011121314151617181920212223242526272829303132333435363738394041#include #include #include using namespace std; void main(){ int row = 0, col = 0; cout > row >> col; //vector temp(행 크기, vector(열 크기)); vector temp(row, vector(col)); for (int i = 0; i in; temp[i][j] = in; } } cout

lwj789
운동하는 개발자