Initialization Error
I was going through the OpenGL examples and everything is great. However, whenever I compile any of the examples with textures(ie. lesson 7) they don''t work. They run fine during development, but when I go to run the .exe it says "Initialization Error". I''m using Microsoft Visual C++ 6.0, and it didn''t work on XP at home or 2000 at work. Is it just me? Am I missing something stupid?
are you executimg it from within visual studio
or from the debug folder
or from the debug folder
February 11, 2003 10:47 AM
It works fine if I''m executing it from VC++, It''s the exe in the debug folder that won''t go.
you have to move the exe out of the debug folder and into the main directory where the data folder is
Yup that was it. Hey it even makes since. Poor thing couldn''t find the data folder. Thanks
Just FYI, when you run the exe directly from VC++, the current directory is the base directory of your project (Ie /projectname/) but when you run it from the debug folder, the current folder is projectname/debug. Basically you have to do what gorv said to fix it.. either that or changing the current directory within your program might fix it. SetCurrentDirectory( LPCSTR path )
An example of using it would be to set the current directory to the data directory, then you wouldn''t have to use "data/filename" to load files in the data/ folder. Instead you''d just do DoSomeLoad("filename")
Of course, this is all probably overkill
An example of using it would be to set the current directory to the data directory, then you wouldn''t have to use "data/filename" to load files in the data/ folder. Instead you''d just do DoSomeLoad("filename")
Of course, this is all probably overkill

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement