|
FAQ (installation, compiling, MFC, etc) Essentials of Interactive Computer Graphics: Concepts and
Implementation |
If you
are question is regarding to:
Question:
What are the libraries I need to work with the tutorials? Answer: This is a compound question, with many-part answers. In short, it all depends on which version of the APIs you want to work with. In general, if you are only interested in running the tutorials, you should run the C++/D3D/MFC version of the tutorials and please refer to here for instructions of runtime library installation. If you want to work with the source code, develop/compile the provided tutorials, you will need to have Microsoft Visual Studio 2005 installed on your machine. In addition, since the concepts presented in the book are implemented in three sets of APIs, you will need to install separate Graphics APIs:
|
Question:
Which version of Direct3D should I install and how/where do I go
to download? Answer: Most of the DX9 releases will work:
|
Question:
Where do I go to download the XNA framework and the SDK? Answer: Please refer
to instructions here for more detail. Please refer to XNA Creator’s club for more details. |
Question:
When I double click on the provided Tutorials, I get an error
message complaining about “This application has failed to start because the application configuration
is incorrect Reinstalling the application may fix this problem”. Answer: You do not have VS2005 installed on your machine. All tutorials from this book are developed based on Microsoft Visual Studio 2005, if you do not have access to this program you will not be able to compile the tutorials in the book. However, it is still possible for you to run the compiled tutorials. You will need to install two run-time libraries (both free of charge):
After you have downloaded and installed the above two “redistributable” libraries all compiled tutorials off the book websites should run. |
Question:
I have a fancy graphics card why does my Direct3D program runs
so slowly? Answer: You are probably running the debug version of Direct3D. Do this
|
Visual Studio Specific
Questions:
Question: I tried running the example exe that was posted for MP1.
However, when I try to run it on two of my computers, I get the following
error: "This application has failed to start because the application
configuration is incorrect. Reinstalling the application may fix this
problem". Is it trying to link to something that my computers don't
have? Does anyone have the same issue, ideas? Answer: You probably have an earlier version of Visual Studio.
You need Visual Studio 2005 with the Service Pack-1 (SP1). |
Question: Cannot change control variable category in the MFC
wizard. Answer: Send me an email
with your project, I have not been able to reproduce this problem. |
Question: I am
working with more than one sets of MFC
Radio buttons, the operations of the two sets of buttons seem to
interfere.
|
Question: How can call the GetCheckRadioButton(Symbol_A, Symbol_B) function to determine which radio button is clicked.
For example: I have radio button, b1, b2, b3, b4 on my GUI, and in resource.h I have ... #define IDC_B1 1012 #define IDC_B2 1110 #define IDC_B3 1013 #define IDC_B4 1000 Notice IDC_B1 does not have the smallest number, and notice the numbers are not in any consecutive ordering, so I would type modify the above to make sure:
#define IDC_B1 9000 #define IDC_B2 9001 #define IDC_B3 9002 #define IDC_B4 9003 Now when I call: GetCheckedRadiuButton(IDC_B1, IDC_B4), I will be ok. (The above ctrl-D, should do the trick, but sometimes it may fail, and you have to do all these by hand). |
Question:
I know the Quit button will cause my application to exit, but,
in general, how can I quit my application? Answer: Send oneself the “WM_CLOSE” message will cause a window to close. For example, to close a dialog window in that window you can call:
|
Compile-time/Compiler problems:
Question:
I have downloaded and installed Direct3D SDK, however, when compiling
the tutorial projects, I get tons of errors complaining about undefined
Direct3D include files and symbols. Answer: You need to tell the IDE about the Direct3D SDK. Here is how: in Visual Studio ...
DX_PATH – depending on your DX version and your exact installation, this path is usually under:
|
Question:
When I compile I get this strange compiler error complaining
about: “…“UWBMFC_SliderCotrlWithEcho” type redefinition”. Answer: Sometimes
MFC resource editor will automatically add in “#include uwbgl_mfcsliderctrlwithecho1.h“
input your source files (.cpp/..h). Open your GUI source files and check you
are not “including” the SliderCtrlWithEcho.h file more than once. |
Question:
I am calling ReplaceDialogControl()
function (defined in MFC_Library1), when linking I got this error: Error 1 error
LNK2019: unresolved external symbol "bool __cdecl
ReplaceDialogControl(class CDialog &,unsigned int,class CDialog
&,unsigned int)" (?ReplaceDialogControl@@YA_NAAVCDialog@@ I0I@Z)
referencedin function "protected: virtual int __thiscall
CMP1Dlg::OnInitDialog(void)"
(?OnInitDialog@CMP1Dlg@@MAEHXZ) MP1Dlg.obj Answer: You need to tell the linker to
refer to the MFC library file. Refer to William Frankhouser’s tutorial 7 for
how to do this. Here is the link: Tutorial
7 of Chapter 2. |
Question:
When I try to link with the MFC library, I got tons of
errors!
|
|
This material is based upon work supported
by the National Science Foundation under Grant No. 0442420. Any
opinions, findings, and conclusions or recommendations expressed in this
material are those of the author(s) and do not necessarily reflect the views
of the Nation Science Foundation. |
|
The refinement of this course material is supported by a grant from
Microsoft Research under the Computer Gaming Curriculum in Computer Science
RFP, Award Number 15871. |
Kelvin Sung | Kelvin
Research Page | CSS
Home | UW
Bothell | UW
Seattle
|
|
|