Before i acutall make a window can anyone tell me if anything is wrong in this code
Code:
#include <windows.h>               //Line One
#include <gl/gl.h>                 //Line Two
#include <gl/glu.h>                //Line Three
#include <gl/glaux.h>              //Line Four
//End Of Header Includes           //Line Five
HGLRC hRC=NULL;                    //Line Six
HDC   hDC=NULL;                    //Line Seven
HWND  hWND=NULL;                   //Line Eight
HINSTANCE hInstance;               //Line Nine
bool keys[256];                    //Line Ten
bool active=true;                  //Line Eleven
bool fullscreen=true;              //Line Twelve
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); //Line Thirteen
GLvoid ReSizeGLScene(GLsizei width, GLsizei height)   //Line Fourteen
{                                  //Line Fifteen
    if (height==0)                 //Line Sixteen
    {                              //Line Seventeen
        height=1;                  //Line Eighteen
    }                              //Line Nineteen
    glViewport(0, 0, width, height);                 //Line Twenty
    glmatrixmode(GL_PROJECTION);   //Line Twenty One
    glIdentity();                  //Line Twenty Two
    gluPerspective(45.0f, GLfloat)width/(GLfloat)height,0.1f,100.0f); //Line Twenty Three
    glmatrixmode(GL_MODELVIEW);    //Line Twenty Four
    glLoadIdentity();              //Line Twenty Five
}                                  //Line Twenty Six
int InitGL(GLVoid)                 //Line Twenty Seven
{                                  //Line Twenty Eight
    glShadeModel(GL_SMOOTH);       //Line Twenty Nine
    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);           //Line Thirty
    glClearDepth(1.0f);            //Line Thirty One
    glEnable(GL_DEPTH_TEST);       //Line Thirty Two
    glDepthFunc(GL_LEQUAL);        //Line Thirty Three
    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);               //Line Thirty Four
    return TRUE;                   //Line Thirty Five
}                                  //Line Thirty Six
GLvoid KillGLWindow(GLvoid)        //Line Thirty Seven
{                                  //Line Thirty Eight
    if(fullscreen)                 //Line Thirty Nine
    {                              //Line Fourty 
    ChangeDisplaySettings(NULL,0); //Line Fourty One
    ShowCursor(TRUE);              //Line Fourty Two
}                                  //Line Fourty Three
if (hRC)                           //Line Fourty Four
{                                  //Line Fourty Five
    if (!wglMakeCurrent(NULL,NULL)) //Line Fourty Six
    {                              //Line Fourty Seven
        MessageBox(NULL,"Release Of DC and RC Failed","Shutdown Error",MB_OK | MB_ICONINFORMATION);  //Line Forty Eight
    }                              //Line Fourty Nine
    if (!wglDeleteContext(HRC))    //Line Fifty
    {                              //Line Fifty One
        MessageBox(NULL,"Release Rendring Context Failed","Shutdown Error",MB_OK | MB_INCONINFORMATION); //Line Fifty Two
    }                              //Line Fifty Two
    hRC=NULL;                      //Line Fifty Three
}                                  //Line Fifty Four
if (hDC && !ReleaseDC(hWnd,hDC))   //Line Fifty Five
{                                  //Line Fifty Six
    MessageBox(NULL,"Release Device Context Failed","Shutdown Error",MB_OK | MB_INCONINFORMATION //Line Fifty Seven
    hDC=NULL;                      //Line Fifty Eight
}                                  //Line Fifty Nine
if (hWnd && !DestroyWindow(Hwnd))  //Line Sixty
{                                  //Line Sixty One
    MessageBox(NULL,"Could Not Unregister Class.","Shutdown Error",MB_OK | MB_INCONINFORMATION  //Line Sixty Two
    hInstance=NULL;                //Line Sixty Two
}                                  //Line Sixty Three
Thanks In Advance