CListBox.ResetContent()
1. h 파일(class)에서 이벤트처리 함수 선언 // Generated message map functions //{{AFX_MSG(CDlgLogin) virtual BOOL OnInitDialog(); afx_msg void OnRadioReal(); afx_msg void OnRadioSimul(); afx_msg void OnSelchangeComboServerAddrType(); virtual void OnOK(); afx_msg void OnButtonLogin(); afx_msg void OnCheckSendPacketSize(); afx_msg void OnCheckConnectTimeout(); afx_msg void OnClose(); //}}AFX_MSG afx_msg LRESULT..
도구-Error Lookup(오류조회) DWORD dwResult = ::GetLastError(); Error Lookup창에서 Value에 dwResult 값을 입력하면 어떤 에러인지 알려준다. Watch창(조사식1) : 원하는 변수를 추가해서 확인 가능. 디버그 매크로 1. TRACE0("Output (출력)탭에 출력하고자하는 문자열"); 2. ASSERT(조건식) // 조건식이 거짓이면 경고창 뜨고, 참이면 아무일도 없다.(참임을 보증)
Swap.h 소스 #ifndef __SWAP_H__ #define __SWAP_H__ #ifdef __cplusplus extern "C" {#endif #ifdef _COMPLING_DLL_SWAP #define __declspec(dllexport)#else #define __declspec(dllimport)#endif void swap(int* v1, int* v2); #ifdef __cplusplus } #endif #endif SwapDll.cpp 소스 #include "Swap.h" void swap(int* v1, int* v2) { int temp = *v1; *v1 = *v2; *v2 = temp; } DllTest.cpp 소스 #include #include #include "swap..