- Android
- postman collection
- postman csv
- oracle
- postman excel
- 프런트엔드
- postman session
- Android/iOS Developer
- solidity
- Intellij
- 다빈치 리졸브
- Front-end developer
- postman automations
- postman tests
- postman collection variables
- emplace_back
- Unity
- Java
- MFC
- UI/UX Engineer
- postman
- C++
- 좋은 개발자
- Interaction developer
- postman html parse
- c#
- 우수한 프런트 개발자
- postman pre-request
- LSL_Script
- web developer
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Today
- Total
목록분류 전체보기 (175)
david's daily developer note
void CMyRichEditView::OnUpdateLineNumber(CCmdUI *pCmdUI) { int nLine = GetRichEditCtrl().LineFromChar(-1) + 1; CString string; string.Format(_T("Line %d"), nLine); pCmdUI->Enable(TRUE); pCmdUI->SetText(string); } 상기 코드는 CCmdUI 클래스를 사용하는 MSDN 예시이다. 코드에서 인자인 pCmdUI는 메인 메뉴를 가르키는 포인터이다. 관련하여 자주 쓰는 함수를 정리한다. CCmdUI::Enable 함수 : 메뉴 항목을 선택할 수 있게(TRUE) 또는 선택할 수 없게(FALSE)한다. CCmdUI::SetCheck 함수 : 메뉴 항목을 ..
BOOL MPM::IsFileExist( CString path ) { WIN32_FIND_DATAW FindData; HANDLE file = FindFirstFileW(path , &FindData); if(file == INVALID_HANDLE_VALUE) { FindClose(file); return FALSE; } FindClose(file); return TRUE; }
View 클래스 컨트롤 범위내에서, 마우스 우클릭에 의한 팝업메뉴 뛰우기, View클래스 메시지 WM_CONTEXTMENU 함수 afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/); void CMyCADAppView::OnContextMenu(CWnd* /*pWnd*/, CPoint point) { theApp.ShowPopupMenu(IDR_CONTEXT_MENU , point , this); } App클래스 void CMyCADAppApp::PreLoadState () { GetContextMenuManager()->AddMenu (_T("My menu"), IDR_CONTEXT_MENU); } MainFrame클래스 BOOL CMainFram..
두 벡터 (1, 0) , (0, 1)이 있다고 할 때, 아래의 벡터 특성으로~ 두 벡터간의 내적을 구할 수 있다. 다음은 위 수식을 C#으로 구현한 코드이다. Vector v1 = new Vector(0, 1); Vector v2 = new Vector(1, 0); double leftExpression = v1.X * v2.X + v1.Y * v2.Y; double theta = leftExpression / ( Math.Sqrt(Math.Pow(v1.X, 2) + Math.Pow(v1.Y, 2)) * Math.Sqrt(Math.Pow(v2.X, 2) + Math.Pow(v2.Y, 2)) ); double innerD = (double)(Math.Acos(theta) * (180 / Math.PI));..