Beginning Direct 3D Game Programming P2

After you have configured Visual C/C++ 6, make sure it is configured correctly by compiling one of the examples in the C:\DXSDK\Samples\C++\Direct3D directory. You might see something like the following message if you haven’t configured the include path properly: d:\book\source\part 1\chapter6\animated objects\(68) : error C2146: syntax error : missing ‘;’ before ‘g_Keyboard_pDI’ | After you have configured Visual C C 6 make sure it is configured correctly by compiling one of the examples in the C DXSDK Samples C Direct3D directory. You might see something like the following message if you haven t configured the include path properly d book source part 1 chapter6 animated objects 68 error C2146 syntax error missing before g_Keyboard_pDI Even if you provided the correct path to the header and library files you might have to feed the names of these files to the linker of your development environment. The proper path to these object library modules should be listed in your Link dialog box. To reach this dialog box select Project Settings and then choose the Link tab. In the General category there is an entry field called Object Library Modules. It holds all of the library files which should be linked to the application you re currently developing. It should look like Figure . Figure Configuring the Linker Path In this entr y field you will need to name at least the following If you missed a file an error message that might look like this will appear error LNK2001 unresolved external symbol _Direct3DCreate9@4 Debug fatal error LNK1120 1 unresolved externals Error executing . Here is missing. The unresolved external symbols are part of the COM Component Object Model interfaces of Direct3D. I will explain COM in detail later in the book. You should also check another include path the one that holds the path to the directories of the common include files for the C C compiler. If you change your machine or you are working on another machine with a different DirectX directory normally you have to add the common files using Project Add Files to Project Files. Now let s compile our first project. 1. Fire up your Visual C configured development environment. 2. Click on Open Workspace. 3. Choose . 4. Check whether you ve configured

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.