Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when I create an MFC application useing opengl ,it can not display the square i want.it only displays empty.
The output debug are:practice.exe':
Loaded 'D:\My Documents\Visual Studio 2010\Projects\practice\Debug\practice.exe', Symbols loaded.
'practice.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\msimg32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\comdlg32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\winspool.drv', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\System32\oledlg.dll', Cannot find or open the PDB file
'practice.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36\GdiPlus.dll', Cannot find or open the PDB file
Posted
Updated 21-Oct-13 7:25am
v4
Comments
Sergey Alexandrovich Kryukov 21-Oct-13 1:38am    
Not enough information. Perhaps you need to create a code sample, as simple as possible but complete and of course manifesting your problem. Can you do it?
—SA
Member 10348296 21-Oct-13 21:24pm    
i only created an MFC application and added some codes to complete the function of square. It is simple. And when i
creat a win32 application not MFC ,it can normal diaplay;
Santhosh G_ 21-Oct-13 13:06pm    
Please post your source code to identify the problem.
Member 10348296 21-Oct-13 21:26pm    
How to post to you? Thanks
Santhosh G_ 21-Oct-13 22:47pm    
Please add code portion of Draw() or Onpaint, which draws the square.
And the code portion of rendering context initialisation.
You can add source code portion by selecting Improve Question link.

1 solution

Please refer any sample code.
http://www.codesampler.com/oglsrc.htm
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900