일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 김양재 목사
- data science
- R
- 빅 데이타
- c++
- 김양재 목사님
- Deep learning
- 딥러닝
- 빅 데이터
- Statistics
- openCV
- MongoDB
- node.js
- 몽고디비
- nodeJS
- Artificial Intelligence
- 확률
- Big Data
- 통계
- 우리들교회
- 김양재
- 데이터 과학
- Machine Learning
- 빅데이터
- No SQL
- probability
- 인공지능
- 빅데이타
- WebGL
- 주일설교
Archives
- Today
- Total
Scientific Computing & Data Science
[C/C++] MFC / 시스템의 드라이브 문자 표시 본문
MFC에서 자신의 Windows Machine의 논리 드라이브 문자 표시하는 방법은 다음과 같다:
[Header File]
CComboBox m_wndDevices;
CEdit m_wndVolume;
[Source Code]
CString s;
DWORD dwDrives = ::GetLogicalDrives();
for (int i = 0; dwDrives != 0; i++, dwDrives >>= 1)
{
if ((dwDrives & 0x01) == 0x01)
{
s.Format(_T("%c:"), 'A' + i);
m_wndDevices.AddString(s);
}
}
if (m_nVolume > (m_wndDevices.GetCount() - 1))
m_nVolume = (m_wndDevices.GetCount() - 1);
m_wndDevices.SetCurSel(m_nVolume);
'Programming > C&C++' 카테고리의 다른 글
[C/C++] Performance 측정 (0) | 2015.09.26 |
---|---|
[C/C++] MFC / 시스템의 드라이브 정보 표시 (0) | 2015.01.02 |
[C/C++] MFC / CFile의 UTF 문자를 파일에 쓰기 (1) | 2014.09.23 |
[C/C++] MFC / XML Parsing Using Boost (0) | 2014.09.01 |
[C/C++] MFC / CString과 std::string 타입 변환 (0) | 2014.09.01 |
Comments