   Help on the code?
  This is in my program and i have no idea what to do with it, could someone give a hand?:#include <windows.h>/*  Declare Windows procedure  */LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);/*  Make the class name into a global variable  */char szClassName[ ] = "WindowsApp";int WINAPI WinMain (HINSTANCE hThisInstance,HINSTANCE hPrevInstance,LPSTR lpszArgument,int nFunsterStil){    HWND hwnd;/* This is the handle for our window */    MSG messages;  /* Here messages to the application are saved */    WNDCLASSEX wincl;   /* Data structure for the windowclass */    /* The Window structure */    wincl.hInstance = hThisInstance;    wincl.lpszClassName = szClassName;    wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */    wincl.style = CS_DBLCLKS;  /* Catch double-clicks */    wincl.cbSize = sizeof (WNDCLASSEX);    /* Use default icon and mouse-pointer */    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);    wincl.lpszMenuName = NULL;  /* No menu */    wincl.cbClsExtra = 0;  /* No extra bytes after the window class */    wincl.cbWndExtra = 0;  /* structure or the window instance */    /* Use Windows''s default color as the background of the window */    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;    /* Register the window class, and if it fails quit the program */    if (!RegisterClassEx (&wincl))   return 0;    /* The class is registered, let''s create the program*/    hwnd = CreateWindowEx ( 0,    /* Extended possibilites for variation */ szClassName,    /* Classname */ "Windows App",  /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT,  /* Windows decides the position */ CW_USEDEFAULT,  /* where the window ends up on the screen */ 544,  /* The programs width */ 375,  /* and height in pixels */ HWND_DESKTOP,   /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance,  /* Program Instance handler */ NULL  /* No Window Creation data */ );    /* Make the window visible on the screen */    ShowWindow (hwnd, nFunsterStil);    /* Run the message loop. It will run until GetMessage() returns 0 */    while (GetMessage (&messages, NULL, 0, 0))    {   /* Translate virtual-key messages into character messages */   TranslateMessage(&messages);   /* Send message to WindowProcedure */   DispatchMessage(&messages);    }    /* The program return-value is 0 - The value that PostQuitMessage() gave */    return messages.wParam;}/*  This function is called by the Windows function DispatchMessage()  */LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){    switch (message)   /* handle the messages */    {   case WM_DESTROY:  PostQuitMessage (0);  /* send a WM_QUIT to the message queue */  break;   default:  /* for messages that we don''t deal with */  return DefWindowProc (hwnd, message, wParam, lParam);    }    return 0;}   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—» 
  Although I have not compiled your program, it appears to just open a blank window, that responds to the Destory message...What exactly do you want help on?or What do you want your program to do?-Lucas ;  I havent done anything with it and it is just what it creates by it self, i want to make a tetris type game but first i want to be able to know what all this means? Thanks   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—» ;  My only advice to you is before you have goals of creating a tetris game..learn how to create a view sprites on the screen..and move them around with the mouse and keyboard..also it would be advisable...before you even do that, get really good with Algorithms, and Data Structures..a simple search on google.com will educate you in both of these topics...also to learn Windows programming, goto msdn.microsoft.com and literally do research on every line of this code that you do not know...read, read, read...for it is the only way that you will become proficient enought to write a game...I remember when I was first learning windows programming..and because I never worked with windows programming before only Linux, it was exceptionally intimidating..but keep doing research..on MSDN, and you will get past the tough part of initially learning Windows...then it will be second nature to you..email me sometime if you get stuck or frustrated..-Lucas- Syntaxprogrammer@aol.com ;  O.K i will do that. Thanks alot for all your help i think i will really need it. Thanks   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—» ;  what exactly on google would i search for?,  it comes up with a lot of books for sale.   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—» ;quote:Original post by little_red_warrior  what exactly on google would i search for?,  it comes up with a lot of books for sale.   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—»   google for "Windows programming tutorials" in google. I''ll give you some links to help you out too oh and if you want, you can email me for help too since right now i''m learning DX so a lot of the windows API to create a basic window is fresh in my mind this site is pretty goodhttp://www.relisoft.com/this one should be good too-http://sunlightd.virtualave.net/Windows/-this website is useful very useful. Good luckhttp://www.gorkhali.com/kamal/download.htm no theory` ;  Thanks   «—Ļĩŧŧłę–Ŗęđ–ЩдґґÎðr—» ;  I think you should learn C or C++ before you get into Windows programming.... ;  Yea same but where would i do that? 