MSVC++ is really screwed up with direct x 8...
I REALLY NEED HELP WITH MSVC++ AND USING DIRECT X 8.1 WITH IT EVEN THE SAMPLES IT CAME WITH HAVE 77 ERRORS!!!!
HELP!!
~~JonMon
Here are my errors:
Compiling...
t3dconsole2.cpp
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dconsole2.cpp(28) : fatal error C1083: Cannot open include file: ''dxguid.lib'': No such file or directory
t3dlib1.cpp
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2208: ''struct IDirectDrawSurface4 *'' : no members defined using this type
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2501: ''images'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(177) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(202) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(215) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(215) : error C2227: left of ''->SetColorKey'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(269) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(270) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(282) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(283) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(283) : error C2227: left of ''->Release'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(331) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(371) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(412) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(452) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(498) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(498) : error C2227: left of ''->Lock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(518) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(518) : error C2227: left of ''->Unlock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(565) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(565) : error C2227: left of ''->Lock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(587) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(587) : error C2227: left of ''->Unlock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1660) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1665) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1671) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1677) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1685) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1692) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1701) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1708) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1717) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1723) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1732) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1738) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1781) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1788) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1797) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1804) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1813) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1819) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1828) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1834) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(3818) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(3936) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4061) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4185) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4805) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4806) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4807) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4886) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4895) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4903) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4904) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4905) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4906) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4912) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4913) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4919) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4920) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5256) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5257) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5269) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5270) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5307) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5316) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5324) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5325) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5326) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5327) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5333) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5334) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5340) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5341) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5677) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5678) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5690) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5691) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5899) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5899) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5902) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5902) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5909) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5910) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
t3dlib2.cpp
c:\direct x sdk\dxf\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2208: ''struct IDirectDrawSurface4 *'' : no members defined using this type
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2501: ''images'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib2.cpp(83) : error C2065: ''DirectInputCreate'' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib2.cpp(110) : error C2065: ''DIDEVTYPE_JOYSTICK'' : undeclared identifier
Error executing cl.exe.
Results
galaxy_alpha.exe - 28 error(s), 77 warning(s)
~~JonMon
Compiling...
t3dconsole2.cpp
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dconsole2.cpp(28) : fatal error C1083: Cannot open include file: ''dxguid.lib'': No such file or directory
t3dlib1.cpp
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2208: ''struct IDirectDrawSurface4 *'' : no members defined using this type
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2501: ''images'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(177) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(202) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(215) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(215) : error C2227: left of ''->SetColorKey'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(269) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(270) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(282) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(283) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(283) : error C2227: left of ''->Release'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(331) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(371) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(412) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(452) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(498) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(498) : error C2227: left of ''->Lock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(518) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(518) : error C2227: left of ''->Unlock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(565) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(565) : error C2227: left of ''->Lock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(587) : error C2039: ''images'' : is not a member of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(139) : see declaration of ''BOB_TYP''
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(587) : error C2227: left of ''->Unlock'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1660) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1665) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1671) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1677) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1685) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1692) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1701) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1708) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1717) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1723) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1732) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1738) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1781) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1788) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1797) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1804) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1813) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1819) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1828) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(1834) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(3818) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(3936) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4061) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4185) : warning C4244: ''='' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4805) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4806) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4807) : warning C4244: ''='' : conversion from ''double'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4886) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4895) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4903) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4904) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4905) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4906) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4912) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4913) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4919) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(4920) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5256) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5257) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5269) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5270) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5307) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5316) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5324) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5325) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5326) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5327) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5333) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5334) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5340) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5341) : warning C4244: ''initializing'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5677) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5678) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5690) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5691) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5817) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5828) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5856) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5867) : warning C4244: ''argument'' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5899) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5899) : warning C4244: ''argument'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5902) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5902) : warning C4244: ''initializing'' : conversion from ''int'' to ''float'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5909) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.cpp(5910) : warning C4244: ''='' : conversion from ''float'' to ''int'', possible loss of data
t3dlib2.cpp
c:\direct x sdk\dxf\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2208: ''struct IDirectDrawSurface4 *'' : no members defined using this type
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib1.h(162) : error C2501: ''images'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib2.cpp(83) : error C2065: ''DirectInputCreate'' : undeclared identifier
c:\program files\microsoft visual studio\myprojects\galaxy_alpha\goodies\t3dlib2.cpp(110) : error C2065: ''DIDEVTYPE_JOYSTICK'' : undeclared identifier
Error executing cl.exe.
Results
galaxy_alpha.exe - 28 error(s), 77 warning(s)
~~JonMon
First, you don''t include lib files. They are for the linker.
Second, post line 162 of t3dlib1.h.
Third, are you including appropriate DX headers? Search the boards for instructions on setting up your include and lib directories as well.
Something gives me a feeling that you didn''t write all this code. 6k source lines and "include dxguid.lib"? No offense intended, but you should start with small projects. Since you have DX8.1SDK, go to Samples\Multimedia\Direct3D\Tutorials and check the stuff over there. The docs also have detailed explanations of what those tutorials do.
Finally, please do us all a favor and wrap your errors with [ source] and [ /source] tags, so that we won''t have to scroll so much.
Second, post line 162 of t3dlib1.h.
Third, are you including appropriate DX headers? Search the boards for instructions on setting up your include and lib directories as well.
Something gives me a feeling that you didn''t write all this code. 6k source lines and "include dxguid.lib"? No offense intended, but you should start with small projects. Since you have DX8.1SDK, go to Samples\Multimedia\Direct3D\Tutorials and check the stuff over there. The docs also have detailed explanations of what those tutorials do.
Finally, please do us all a favor and wrap your errors with [ source] and [ /source] tags, so that we won''t have to scroll so much.
You see, the problems lies in the human-chair interface. I think I saw answer to your problem in Microsoft Knowledge Base article 1D10T.
u are right i did not write it i got it from a book and its a template for making a game, i just didn''t know how to get it set up in VC++
~~JonMon
~~JonMon
Source code for one compiler usually requires modifications to compile with another. Probably certain compilers do allow you to #include lib files instead of just passing them as a parameter to the linker... but VC++ does not.
~CGameProgrammer( );
~CGameProgrammer( );
vc++ allows you to inlucde libs within the source. you use #paragma, not #include.
jonmon, you are realy quite silly. saying the dx 8.1 samples are compiling with errors when you are having problems with source code from a book.
jonmon, why dontyou learn some programming, and a bit about the compiler and ide you are using before you start writing games. it may seem "boring", but face it, unless you take this step you will get nowhere.
jonmon, you are realy quite silly. saying the dx 8.1 samples are compiling with errors when you are having problems with source code from a book.
jonmon, why dontyou learn some programming, and a bit about the compiler and ide you are using before you start writing games. it may seem "boring", but face it, unless you take this step you will get nowhere.
i fixed my big prob. and it was a really stupid one but i have one more
DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
How do u set the version u want to use?
~~JonMon
DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
How do u set the version u want to use?
~~JonMon
ahh i remember these days. ahh the lib files =)
need a blank app all set up for directx. resetting up those lib files is slow for a quick learning thing. then again you learn them... not also that debug and release get two different versions of a few of them.
also at issue here is the header files and the c files. you got to set up your defaults.
need a blank app all set up for directx. resetting up those lib files is slow for a quick learning thing. then again you learn them... not also that debug and release get two different versions of a few of them.
also at issue here is the header files and the c files. you got to set up your defaults.
#define blah version
check the header files for valid versions and the correct "blah" to use. make sure the define is done before including any directx hedaers, and done for each file you include dx headers in. not too tough, espeically if you make a single header file that includes all the dx headers you will use and sets the version. then you just inclue that one header in each file you need instead of the dx headers you will be using.
you dont need to touch the lib files at all. if you are doing directdraw, you use ddraw.lib as normal. same with dsound, dinput, and dplay. d3d, i think you just use the d3d8.lib, but i would check the docs to be 100% sure.
declspec, i have no idea what your talking about. the libs are merely simple wrappers for the com interface, and hide it to make things easier. you dont need to link to ANY dx lib to compile correctly. this would require loading the dx lib through LoadLibrary() and getting the dx create function (using GetProcaddress() as it is the one you use when linking with the libs). bevcause when linking to a lib, is just automagically having the compiler ste your exe to load the library an dget teh correct function address. you could further remove yourself by using com direcly. then you call CoCreateInstance() (dont forget CoInitilize() and CoUnintilize()). then you odnt even need to wrroy about the lib files, nor loading the dlls manually.
check the header files for valid versions and the correct "blah" to use. make sure the define is done before including any directx hedaers, and done for each file you include dx headers in. not too tough, espeically if you make a single header file that includes all the dx headers you will use and sets the version. then you just inclue that one header in each file you need instead of the dx headers you will be using.
you dont need to touch the lib files at all. if you are doing directdraw, you use ddraw.lib as normal. same with dsound, dinput, and dplay. d3d, i think you just use the d3d8.lib, but i would check the docs to be 100% sure.
declspec, i have no idea what your talking about. the libs are merely simple wrappers for the com interface, and hide it to make things easier. you dont need to link to ANY dx lib to compile correctly. this would require loading the dx lib through LoadLibrary() and getting the dx create function (using GetProcaddress() as it is the one you use when linking with the libs). bevcause when linking to a lib, is just automagically having the compiler ste your exe to load the library an dget teh correct function address. you could further remove yourself by using com direcly. then you call CoCreateInstance() (dont forget CoInitilize() and CoUnintilize()). then you odnt even need to wrroy about the lib files, nor loading the dlls manually.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement