Tryng to make openGL work with Visual C++ Express 2005

Had Win32 forms project (or whatever) already wizarded. Makes Form.
Had project manager build a new header file, gl.h, 
then populated the empty file with the proper contents (pasted the contents of GL.H from OPENGL95.EXE).


Made sure the include directive used quotes (ie. #include"gl.h")

Got fifty blue million syntax related errors from VC's Build. Probably related to the unlinked libraries !?! (duh)
Found where to link the libraries in this beast, from a number of sources (see "screenshot" below), but still get errors like
.....ngl3\gl.h(1136) : error C2144: syntax error : 'void' should be preceded by ';'

associated with lines starting with WINGDIAPI, such as:

WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
 
...Click here for screenshot of linking additional libraries

Additional links:

The following, from Msoft, mentions downloading Platform SDK Mulitimedial link that Tony found

Is the top hit in the above list

Here is the Platform SDK download zone that the above video mentions

She also mentions which is the right version

By the way, when I tried this it school I got this error box right at the end of installation.
search google

google[opengl visual c++]

A Microsoft link:

microsoft search (developer c++)[project settings link]

More .... progress .... in a raw text format


VC++ > Tools > Options > Something > VC++ Directories 

$(Program Files\Microsoft Platform SDK\Bin)
$(Program Files\Microsoft Platform SDK\Include)
$(Program Files\Microsoft Platform SDK\Lib)


Seeking corewin_express.vsprops modifications..............

google[Additional Dependencies kernel32.lib platformsdk]
http://www.google.com/search?hs=scl&hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen

-US%3Aofficial_s&q=Additional+Dependencies+kernel32.lib+platformsdk&btnG=Search

yields

Long list of additional dependencies for WxWidgets from:

http://www.wxwidgets.org/wiki/index.php/Compiling_WxWidgets

which follows...........

comctl32.lib rpcrt4.lib shell32.lib gdi32.lib kernel32.lib user32.lib comdlg32.lib 

ole32.lib oleaut32.lib advapi32.lib

Don't yet know the entry format but can proceed with trying to cull (or add to) the 

list above from the media player file

...and got this:
extra libs - initially only kernel32.lib is present as an 'Additional Dependency'
comdlg32.lib 
shell32.lib 
gdi32.lib 
user32.lib  
ole32.lib 
oleaut32.lib 
winspool.lib 
uuid.lib 
advapi32.lib

Still need format; need to know how to modify: 
corewin_express.vsprops_____________________________________

........
......VisualStudioPropertySheet 
	ProjectType="Visual C++" 
	Version="8.00" 
	Name="Core Windows Libraries">
	Name="VCLinkerTool" 
	AdditionalDependencies="kernel32.lib" 

_____________________________________________________

Presuming comma delimited=========================>

_____________________________________________________
........
......VisualStudioPropertySheet 
	ProjectType="Visual C++" 
	Version="8.00" 
	Name="Core Windows Libraries">
	Name="VCLinkerTool" 
	AdditionalDependencies="kernel32.lib,comdlg32.lib,shell32.lib,gdi32.lib,user32.lib,ole32.lib,oleaut32.lib,winspool.lib,uuid.lib,advapi32.lib" 
___________________________________________________________________

Added OpenGL in .... and still same errors.

It appears the changes above should be space delimited:

Text version of info in video

from more help

opengllinks.html

back to index

NEW FROM ANDREW