전체 글
-
Winapi) tooltip track이 안될 때프로그래밍 언어/WinApi 2014. 11. 28. 00:16
Windows XP, 7 환경에서툴팁(tooltip)에 TTF_TRACK 속성을 줬는데도 불과하고실행되지 않을 때에는 아래와 같이 수정하면 잘 된다. ti.cbSize = sizeof(TOOLINFO); -> ti.cbSize = sizeof(TTTOOLINFOA_V2_SIZE);or -> ti.cbSize = sizeof(TTTOOLINFOW_V2_SIZE);or -> ti.cbSize = TTTOOLINFOA_V2_SIZE;or -> ti.cbSize = TTTOOLINFOW_V2_SIZE; 공동 컨트롤러의 옛 버전은 sizeof(TOOLINFO)를 사용하고5.xx 버전 이상??은 sizeof(TTTOOLINFOA_V2_SIZE)를 사용한다고 한다.버전이 바뀌면서 크기가 달라져서 그렇다고 한다.
-
20141103 (C++ Template 특수화, 부분 특수화, 인자, static, 예외처리, ARM PWM)부산IT학원/스마트컨트롤러 2014. 11. 3. 12:45
171일차 ----------C++---------- ------- Template 특수화, 부분 특수화 템플릿을 특수화하면 템플릿을 구성하는 멤버를 다르게 행동하도록 할 수 있다.다음 예제 참고 예제)#include #include using namespace std; template class Point {private:T xpos, ypos;public:Point(T x=0, T y=0): xpos(x), ypos(y){ }void ShowPosition() const{cout
-
20141031 (C++ Template 분할 컴파일, ARM PWM)부산IT학원/스마트컨트롤러 2014. 10. 31. 09:57
170일차 -----------C++----------- ------- Template class 분할 컴파일 다음 예제 확인 예제)--- PointTemlate.h #ifndef __POINT_TEMPLATE_H #define __POINT_TEMPLATE_H template class Point { private: T xpos, ypos; public: Point(T x = 0, T y = 0); void ShowPosition() const; }; #endif --- PointTemlate.cpp #include #include "PointTemplate.h" using namespace std; template Point::Point(T x = 0, T y = 0) : xpos(x), ypos(y..
-
20141029 (C++ ()연산자와 Functor(펑터), ARM SAM-BA)부산IT학원/스마트컨트롤러 2014. 10. 30. 10:52
168일차 --------C++-------- ------- 연산자 ()와 Functor(펑터) 객체를 함수처럼 사용하는 것을 말한다.다음 예제로 확인 예제)#include using namespace std; class Point{private:int xpos;int ypos; public:Point(int x = 0, int y = 0) : xpos(x), ypos(y){ } Point operator+(const Point& pos) const{return Point(xpos + pos.xpos, ypos + pos.ypos);} friend ostream& operator