I tried to test Nehe's lesson 6 project. After I copied and pasted the source code, I compiled it and got the result below;
------ Build started: Project: TugasOpenGl2, Configuration: Debug Win32 ------
Compiling...
Tugas2.cpp
c:\program files\microsoft sdks\windows\v6.0a\include\gl\glaux.h(17) : warning C4068: unknown pragma
c:\program files\microsoft sdks\windows\v6.0a\include\gl\glaux.h(374) : warning C4068: unknown pragma
c:\documents and settings\satellite\my documents\visual studio 2008\projects\tugasopengl2\tugasopengl2\tugas2.cpp(41) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : see declaration of 'fopen'
Linking...
Embedding manifest...
Build log was saved at "file://c:\Documents and Settings\SATELLITE\My Documents\Visual Studio 2008\Projects\TugasOpenGl2\TugasOpenGl2\Debug\BuildLog.htm"
TugasOpenGl2 - 0 error(s), 3 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
I thought there was no problem, then I press F5 to run it.
But the Error Form tell me that the "Initialization Failed"
After I closed it, there were several messages like this ;
'TugasOpenGl2.exe': Loaded 'C:\Documents and Settings\SATELLITE\My Documents\Visual Studio 2008\Projects\TugasOpenGl2\Debug\TugasOpenGl2.exe', Symbols loaded.
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\avgrsstx.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'TugasOpenGl2.exe': Unloaded 'C:\WINDOWS\system32\version.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\iglicd32.dll', Binary was not built with debug information.
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\igldev32.dll', Binary was not built with debug information.
'TugasOpenGl2.exe': Loaded 'C:\WINDOWS\system32\mcd32.dll'
'TugasOpenGl2.exe': Unloaded 'C:\WINDOWS\system32\mcd32.dll'
The program '[3920] TugasOpenGl2.exe: Native' has exited with code 0 (0x0).
Please help me !