strange problem(opengl+mfc)

hi,i am a newbie.:slight_smile:
i met a very strange problem.all my opengl programs worked well in my computer previously,but now none of them work though i didn’t change anything.whenever i execute them,no error message and the drawing window poped up as usual,but one thing different with before is that there is nothing drawn in this pop up window.i am using opengl+mfc and windows 2000.btw,all other mfc programs work well,before and now.
i guess there might have some problems with the opengl related *.dll files.is my guess right?who can tell me why this problem occurs and how i can solve it?
thanks!

I also had this problem when I installed win2k. It comes (IMO) from the fact that win2k openGL drivers aren’t perfect yet. You’ll probably have to recode all your programs if you want them to work under win2k. I entierelly recoded my init/engine when I switched to win2k, it took me one month to make run my engine on win9x and win2k.

I also had strange bugs while coding OpenGL under win2k:
I tried to make selections. I did the exact
code provided with the redbook’s examples, but my machine always crashes when I modify the projection matrix with any of the 4 methods which modify the projection matrix.
I had to make my own selection algorithm.

First things first ! Can you give the following information:

  • CPU / Motherboard / Memory
  • Graphics card
  • Drivers used

You could also e-mail me a working example for debugging (I am running Win2K and have had NO problem when switching to it…).

Regards.

Eric

hi,guys,thanks.
i forgot to tell you that the programs which didn’t work well in my computer work very well in other win2k computers,no problem at all.
one more thing,please note that the programs can be executed,no error message,but the problem is that nothing can be drawn.

here is the answer for your questions:
P2/i don’t know what motherboard it is,sorry/128M
Rendition-v2200-NT5
Win2K OpenGL Implementation

for your reference,i am posting build logs for two different opengl programs

Build Log no.1

--------------------Configuration: OpenGL04242 - Win32 Debug--------------------

Command Lines
Creating command line “rc.exe /l 0x409 /fo"Debug/OpenGL04242.res” /d “_DEBUG” /d “_AFXDLL” “D:\users\cpc\TermProject
o2\OpenGL04242.rc”"
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP11.tmp” with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D “WIN32” /D “_DEBUG” /D “_WINDOWS” /D “_AFXDLL” /D “_MBCS” /FR"Debug/" /Fp"Debug/OpenGL04242.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
“D:\users\cpc\TermProject
o2\MainFrm.cpp”
“D:\users\cpc\TermProject
o2\OpenGL04242.cpp”
“D:\users\cpc\TermProject
o2\OpenGL04242Doc.cpp”
“D:\users\cpc\TermProject
o2\OpenGL04242View.cpp”
]
Creating command line “cl.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP11.tmp”
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP12.tmp” with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D “WIN32” /D “_DEBUG” /D “_WINDOWS” /D “_AFXDLL” /D “_MBCS” /FR"Debug/" /Fp"Debug/OpenGL04242.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
“D:\users\cpc\TermProject
o2\StdAfx.cpp”
]
Creating command line “cl.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP12.tmp”
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP13.tmp” with contents
[
opengl32.lib glu32.lib glut32.lib glaux.lib /nologo /subsystem:windows /incremental:yes /pdb:“Debug/OpenGL04242.pdb” /debug /machine:I386 /out:“Debug/OpenGL04242.exe” /pdbtype:sept
.\Debug\MainFrm.obj
.\Debug\OpenGL04242.obj
.\Debug\OpenGL04242Doc.obj
.\Debug\OpenGL04242View.obj
.\Debug\StdAfx.obj
.\Debug\OpenGL04242.res
]
Creating command line “link.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP13.tmp”
Output Window
Compiling resources…
Compiling…
StdAfx.cpp
Compiling…
MainFrm.cpp
OpenGL04242.cpp
OpenGL04242Doc.cpp
OpenGL04242View.cpp
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(110) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(427) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(433) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(435) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(554) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(554) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(564) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(564) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(574) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(574) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(584) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(584) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(609) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(610) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(611) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(612) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(617) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(619) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(627) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(628) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(634) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(635) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(648) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
D:\users\cpc\TermProject
o2\OpenGL04242View.cpp(649) : warning C4305: ‘argument’ : truncation from ‘const double’ to ‘float’
Generating Code…
Linking…
Creating command line “bscmake.exe /nologo /o"Debug/OpenGL04242.bsc” .\Debug\StdAfx.sbr .\Debug\MainFrm.sbr .\Debug\OpenGL04242.sbr .\Debug\OpenGL04242Doc.sbr .\Debug\OpenGL04242View.sbr"
Creating browse info file…
Output Window

Results
OpenGL04242.exe - 0 error(s), 24 warning(s)

Build Log no.2

--------------------Configuration: ViewMaster - Win32 Debug--------------------

Command Lines
Creating command line “rc.exe /l 0x412 /fo"Debug/ViewMaster.res” /d “_DEBUG” /d “_AFXDLL” “D:\users\cpc\ViewMaster-viewing platform master\ViewMaster.rc”"
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP6.tmp” with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D “WIN32” /D “_DEBUG” /D “_WINDOWS” /D “_AFXDLL” /D “_MBCS” /Fp"Debug/ViewMaster.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
“D:\users\cpc\ViewMaster-viewing platform master\MainFrm.cpp”
“D:\users\cpc\ViewMaster-viewing platform master\ViewMaster.cpp”
“D:\users\cpc\ViewMaster-viewing platform master\ViewMasterDoc.cpp”
“D:\users\cpc\ViewMaster-viewing platform master\ViewMasterView.cpp”
]
Creating command line “cl.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP6.tmp”
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP7.tmp” with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D “WIN32” /D “_DEBUG” /D “_WINDOWS” /D “_AFXDLL” /D “_MBCS” /Fp"Debug/ViewMaster.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
“D:\users\cpc\ViewMaster-viewing platform master\StdAfx.cpp”
]
Creating command line “cl.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP7.tmp”
Creating temporary file “C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP8.tmp” with contents
[
opengl32.lib glu32.lib /nologo /subsystem:windows /incremental:yes /pdb:“Debug/ViewMaster.pdb” /debug /machine:I386 /out:“Debug/ViewMaster.exe” /pdbtype:sept
“.\Debug\MainFrm.obj”
“.\Debug\StdAfx.obj”
“.\Debug\ViewMaster.obj”
“.\Debug\ViewMasterDoc.obj”
“.\Debug\ViewMasterView.obj”
“.\Debug\ViewMaster.res”
]
Creating command line “link.exe @C:\DOCUME~1\cpc\LOCALS~1\Temp\RSP8.tmp”
Output Window
Compiling resources…
Compiling…
StdAfx.cpp
Compiling…
MainFrm.cpp
ViewMaster.cpp
ViewMasterDoc.cpp
ViewMasterView.cpp
Generating Code…
Linking…

Results
ViewMaster.exe - 0 error(s), 0 warning(s)

Originally posted by Eric:
[b]First things first ! Can you give the following information:

  • CPU / Motherboard / Memory
  • Graphics card
  • Drivers used

You could also e-mail me a working example for debugging (I am running Win2K and have had NO problem when switching to it…).

Regards.

Eric[/b]