Advertisement

Tut 6 prob - initialization failed!

Started by August 20, 2002 05:35 AM
3 comments, last by Viz 22 years, 6 months ago
Hi guys, I've a prob with tut6 - Texture Mapping. it compile and execute just fine in Visual C++ 6, but if i try execute from my hd like in stifinder i get this message: "Initialization Failed" Whats wrong? Thanks ......... if (!InitGL()) { KillGLWindow(); MessageBox(NULL,"Initialization Failed." ,"ERROR",MB_OK|MB_ICONEXCLAMATION); return FALSE; } [edited by - Viz on August 20, 2002 9:06:50 AM]
It is something in the InitGL() function.
It can be that the program can''t find the pictures.
If it is so. You must put the pictures in a folder named data and that folder must be in the same folder as the program.
Advertisement
Thanks for your reply,

I did put the bmp in a subfolder named Data - Like the tutorial.
I''ve no probs compile and execute in Visual, and the texture looks just fine

I get the error message if i try execute the exe-file from my harddisk - But not from Visual?
Its a little weird i think.

Anyway try download the source if you want:
http://www.3dviz-art.dk/stuff/Lesson6_TextureMapping.rar
I''ve run into this problem too, what you need to do is make sure the folder "data" is in the same folder as the exe, if you move the Exe to your desktop or wherever you need to move the folder with it. even if you try to run it from either the Debug or Release folders the data folder will have to be in the folders with it.

c:/windows/aybabtu.bat

REM All your OS are belong to us!!
c:\what\you\say.txt
Move zig ..\forgreat\justice
Move everyzig
c:/windows/aybabtu.batREM All your OS are belong to us!!c:whatyousay.txtMove zig ..forgreatjusticeMove everyzig
ahh - now it work
Thanks

This topic is closed to new replies.

Advertisement