• Advertisement

andi1234

Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

100 Neutral

About andi1234

  • Rank
    Newbie
  1. lesson 6 compile error

    Hello I'm new to openGL and I've just tried lesson 6, but I get this error: error C2664: 'auxDIBImageLoadW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast in this line: AUX_RGBImageRec *LoadBMP(char *Filename) // Loads A Bitmap Image { FILE *File=NULL; // File Handle if (!Filename) // Make Sure A Filename Was Given { return NULL; // If Not Return NULL } File=fopen(Filename,"r"); // Check To See If The File Exists if (File) // Does The File Exist? { fclose(File); // Close The Handle [b] [color="#000000"] return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer }[/color][/b] return NULL; // If Load Failed Return NULL } I'm using VS 2008 thanks
  • Advertisement