Sie sind auf Seite 1von 2

Link download mt s chng trnh: http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=22668 http://user.xmission.com/~nate/glut.

html

CI T
Ci t cc chng trnh cn thit theo hng dn sau: 1. Ci Visual C + + v SDK 2. Ci OpenGL 3. Gii nn GLUT vo mt th mc mi. Trong th mc va gii nn, to hai th mc include v lib. Trong th mc include to th mc GL v a file glut.h vo th mc . Tt c cc file cn li a vo th mc lib 4. Thay i ng dn bin mi trng PATH: vo Control panel [Performance and Maintenance] System. vo "Advanced" tab kch vo "Environment Variables". Tm bin "PATH" (hoc "Path") thay i n bng cch thm ";x\lib;y\lib;z\Lib" (khng c du nhy) vo cui ca n, trong , "x", "y", v "z" l cc th mc ci OpenGL, gii nn GLUT, v ci Microsoft Platform SDK. 5. Khi ng li my tnh Windows nhn ra nhng thay i ca bin mi trng 6. Khi ng Visual C++ Express. Vo Tools Options Projects and Solutions VC++ Directories. Trong "Show directories for". Chn include files v thm vo "x\include", "y\include", "z\Include". Chn Library files v thm vo "x\lib", "y\lib", and "z\Lib", vi "x", "y", v "z" l cc th mc ci OpenGL, gii nn GLUT, v ci Microsoft Platform SDK.

DCH V CHY TH CHNG TRNH


1. Download testprogram v gii nn 2. Khi ng Visual Studio C++. Vo File New Project From Existing Code 3. Click Next, chn th mc cho file project l th mc va gii nn, nhp tn (vd: cube) ri click Next 4. i Project type t "Windows application project" sang "Console application project", v kch Next. 5. Click Next sau click Finish hon thnh to project 6. Vo Project Properties. Click vo Configuration Properties. Click vo nt "Configuration Manager" gc trn bn phi. i "Active solution configuration" t "Debug" sang "Release". Click Close, ri click OK. Trong Configuration Properties General: output directory ang l "Release", xa t "Release" i v click OK. 7. Vo Build Build project_name to build your project. 8. S c 2 warnings v ignoring /INCREMENTAL. Khng nh hng n chng trnh, tuy nhin c th fix n bng cch. Vo Project Properties

Configuration Properties Linker, i "Enable Incremental Linking" t "Yes (/Incremental)" sang "No (/Incremental:No)". 9. Chy chng trnh bng cch vo Debug Start Without Debugging

Das könnte Ihnen auch gefallen