mfc 채팅 참고용 - 프로그램
1. App 클래스의 포인터를 얻을 때 // 어디서든 연결가능 (view doc frm...) AfxGetApp(); // CChoonApp *pApp = (CChoonApp *)AfxGetApp() // 클래스명 Choon 2. 메인 프레임 클래스의 포인터를 얻을 때 (app와 같이 어디서든..) AfxGetMainWnd(); // CMainFrame *pFrm = AfxGetApp()->m_pMainWnd; // (CMainFrame *)AfxGetMainWnd() // CMainFrame *pFrm = (CMainFram *)AfxGetMainWnd(); 3 메인프레임에서 뷰 얻을 때 (Frm -> view) GetActiveView // CChoonView *pView = pFrm->GetActi..
/*m_wndSplitter1.CreateStatic(this, 1, 2); m_wndSplitter2.CreateStatic(&m_wndSplitter1, 2, 1, WS_CHILD | WS_VISIBLE, m_wndSplitter1.IdFromRowCol(0, 0)); m_wndSplitter2.CreateView(0, 0,RUNTIME_CLASS(CChTreeView), CSize(300, 350), pContext); m_wndSplitter2.CreateView(1, 0,RUNTIME_CLASS(CShellView), CSize(300, 300), pContext); m_wndSplitter3.CreateStatic(&m_wndSplitter1, 2, 1, WS_CHILD | WS_VISIBLE..
#pragma region 내컴퓨터 찾아 보기 void CShellView::OnShellMycomfind() { // TODO: 여기에 명령 처리기 코드를 추가합니다. ITEMIDLIST *pidlBrowse; char pszPathName[MAX_PATH]; CString strPath; lstrcpy (pszPathName, strPath.GetBuffer(strPath.GetLength())); BROWSEINFO BrInfo; memset(&BrInfo, 0, sizeof(BrInfo)); BrInfo.hwndOwner = GetSafeHwnd(); BrInfo.pidlRoot = NULL; BrInfo.pszDisplayName = pszPathName; BrInfo.lpszTitle = "이..
CString str; CString token; CStringArray rev_str; int curPos= 0; str.Format(_T("Do or do not. there is no try")); str.MakeReverse(); while ((token = str.Tokenize(" ", curPos)) != "") { rev_str.Add(token); } int ndx = rev_str.GetSize(); CString result; CString word_format; while(ndx) { word_format.Format("%s ", rev_str[ndx-1]); result += word_format; ndx--; } AfxMessageBox(result);
CString -> char * CString spi = _T("123"); char temp[100]; WideCharToMultiByte(CP_ACP, 0, spi.GetBuffer(spi.GetLength()) , spi.GetLength(), temp, spi.GetLength(), NULL, NULL); i_spi = atoi(temp); char * --> CString char ss[] = "Hello"; CString str; str.Format("%s", ss); (Format대신에 GetBuffer()를 써도 됩니다.)
- Total
- 244,938
- Today
- 0
- Yesterday
- 16
- 인텐시브멀티케어
- 코딩과외
- 동대표투표
- 그랩푸드
- 강천섬
- GrabFood
- 번호추천
- 오르토그릴
- 불량확인서
- 쇼핑몰
- 환불은안됨
- 아이로드i3
- 환불원정대
- 캠핑
- 여행계획
- 하와이
- 태양광렌턴
- 아파트전자투표
- 김포돈가스
- 팔현캠프
- I3
- 잭핫
- 김포코딩과외
- iroad
- iroadi3
- 아이로드
- 김포코딩교육
- 프라엘
- 맛집
- 제품불량인데
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- 2023/02 (28)