Game Development Reference
In-Depth Information
program. If it works, that's great; you can now load textures from the disk. If it
fails to run then there are a couple of things that may have gone wrong.
If you get an exception of the form Unable to load DLL 'xx.dll': The
specified module could not be found , then xx.dll is not being found by
your binary file. It should be in the bin\debug directory. Check if it's there. If it's
not there then look in the Tao framework and copy it across.
If you get the exception BadImageFormatException , this has nothing to do
with the texture you're trying to load. Instead, it's having trouble loading the
DevIl libraries. The most likely reason for this is that you are developing with
Visual Studio 2008 on a 64-bit system, but the libraries have been compiled
for 32 bit. The easiest way to fix this is to go to the solution explorer. Right-click
the project and select Properties. Click the Build tab on the left, as shown in
Figure 6.9.
Figure 6.9
Viewing the project properties.
 
Search WWH ::




Custom Search