CMPT 212
Fall 1997
|
(Note that the words "class" and "instance" are used in a general sense, and not in the specific object-oriented meaning.)
cout << "Hello";will not work. It does not specify:
LRESULT CALLBACK WindowFunc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; int X; int Y; char str[80]; switch (message) { ... case WM_LBUTTONDOWN : hdc = GetDC(hwnd); strcpy(str, "Here"); X = LOWORD(lParam); Y = HIWORD(lParam); TextOut(hdc, X, Y, str, strlen(str)); ReleaseDC(hdc); break; ... } return 0; }
Return to lecture notes index |
|
This page is maintained by simpson@cs.sfu.ca. | Last updated on 13 Nov 1997. |