Im learning C++ , but i cant undestand what this means , i have tried to google it but there is no good answers
I am getting it at the COMMENTED LINE
PAINTSTRUCT paintStruct;
/* Device Context*/
HDC hDC;
/* Text for display*/
char string[] = "Hello, World!";
/* Switch message, condition that is met will execute*/
switch(message)
{
/* Window is being created*/
case WM_CREATE:
return 0;
break;
/* Window is closing*/
case WM_CLOSE:
PostQuitMessage(0);
return 0;
break;
/* Window needs update*/
case WM_PAINT:
hDC = BeginPaint(hwnd,&paintStruct);
/* Set txt color to blue*/
SetTextColor(hDC, COLORREF(0x00FF0000));
/* Display text in middle of window*/
TextOut(hDC,150,150,string,sizeof(string)-1);//GETTING MY ERROR HERE
EndPaint(hwnd,&paintStruct);
return 0;
break;
default:
break;
}
return (DefWindowProc(hwnd,message,wParam,lParam));
and Idea
Thanks for the help
This post has been edited by marinus: 07 March 2011 - 09:36 AM

New Topic/Question
Reply


MultiQuote


|