Error at rendering with textures

I’m using the code of this tutorial (see “download source” code inside of the page for the files)

h t t p : / / w w w . videotutorialsrock . com / opengl _ tutorial / textures / video . p h p

(link without spaces)

I get this error in a dialog:

[b]Debug error!

R6010

  • abort() has been called

(please retry to debug the aplication)[/b]

And in a command:

Assertion failed: !input.fail<> || !“could not find file”, file c:\documents and settings…

What I’m doing wrong?

Anyone knows?

Do you have the file it is looking for in the location it is looking for it?

i have this bit of code:

Image* image = loadBMP(“C:\vtr.bmp”);

and the vtr.bmp in the c:\

In C/C++ string literals “” is used as escape character, normally used to introduce non-printing/control characters, like "
" for newline, " " for tab, etc. To get a literal \ you have to write “\”, i.e. two backslash characters.
I’ve looked at the original code, it just uses a relative path to the .bmp file. To make that work you may have to adjust the working directory settings for your project (it looks to me like you are using Visual Studio; it is somewhere in the project settings - sorry don’t have VS at hand for more precise instructions).

[QUOTE=carsten neumann;1254045]In C/C++ string literals “” is used as escape character, normally used to introduce non-printing/control characters, like "
" for newline, " " for tab, etc. To get a literal \ you have to write “\”, i.e. two backslash characters.
I’ve looked at the original code, it just uses a relative path to the .bmp file. To make that work you may have to adjust the working directory settings for your project (it looks to me like you are using Visual Studio; it is somewhere in the project settings - sorry don’t have VS at hand for more precise instructions).[/QUOTE]

Just puting \ worked fine! THANK YOU SO MUCH!!