|
RicarDog
|
 |
« on: February 18, 2005, 01:27:12 AM » |
|
I've managed to make TV 6.2 work with Visual C++ .NET (unmanaged). I've seen some threads complaining about that so here is what I did. You have to change the tv3dcpp.h file as follows: #ifndef TV3D_ENGINE_HEADER #define TV3D_ENGINE_HEADER
#define WIN32_LEAN_AND_MEAN
typedef int DSCAPS;
/* * Defines */ #define tvtrue VARIANT_TRUE #define tvfalse VARIANT_FALSE
/* * TV3DEngine declarations */
#import <dx8vb.dll> auto_rename named_guids
// Replace with the location of your file: #import "D:\TV3DSDK\Bin\truevision3d.dll" /*auto_rename*/ named_guids
#include <d3d8.h>
using namespace TrueVision3D;
typedef _TVActor *ITVActor; typedef _TVActor2 *ITVActor2; typedef _TVAI *ITVAI; typedef _TVAtmosphere *ITVAtmosphere; typedef _TVBitmapParts *ITVBitmapParts; typedef _TVBSPTree *ITVBSPTree; typedef _TVCamera *ITVCamera; typedef _TVCameraFactory *ITVCameraFactory; typedef _TVCollisionResult *ITVCollisionResult; typedef _TVDelphiGlobals *ITVGlobals; typedef _TVEngine *ITVEngine; typedef _TVForceFeedEffect *ITVForceFeedEffect; typedef _TVForceFeedEffects *ITVForceFeedEffects; typedef _TVGameController *ITVGameController; typedef _TVGameControllers *ITVGameControllers; typedef _TVGraphicEffect *ITVGraphicEffect; typedef _TVInputEngine *ITVInputEngine; typedef _TVInternalObjects *ITVInternalObjects; typedef _TVKeyFrameAnim *ITVKeyFrameAnim; typedef _TVLandscape *ITVLandscape; typedef _TVLightEngine *ITVLightEngine; typedef _TVMaterialFactory *ITVMaterialFactory; typedef _TVMesh *ITVMesh; typedef _TVParticleSystem *ITVParticleSystem; typedef _TVPath *ITVPath; typedef _TVRenderSurface *ITVRenderSurface; typedef _TVScene *ITVScene; typedef _TVScreen2DImmediate *ITVScreen2DImmediate; typedef _TVScreen2DText *ITVScreen2DText; typedef _TVTextureFactory *ITVTextureFactory; typedef _TVTileMap *ITVTileMap; typedef _TVViewport *ITVViewport;
/* * Declaration of the Interface Creating functions */ ITVActor CreateTVActor(); ITVActor2 CreateTVActor2(); ITVAI CreateTVAI(); ITVAtmosphere CreateTVAtmosphere(); ITVBitmapParts CreateTVBitmapParts(); ITVBSPTree CreateTVBSPTree(); ITVCamera CreateTVCamera(); ITVCameraFactory CreateTVCameraFactory(); ITVCollisionResult CreateTVCollisionResult(); ITVGlobals CreateTVGlobals(); ITVEngine CreateTVEngine(); ITVForceFeedEffect CreateTVFeedEffect(); ITVForceFeedEffects CreateTVFeedEffects(); ITVGameController CreateTVGameController(); ITVGameControllers CreateTVGameControllers(); ITVGraphicEffect CreateTVGraphicEffect(); ITVInputEngine CreateTVInputEngine(); ITVInternalObjects CreateTVInternalObjects(); ITVKeyFrameAnim CreateTVKeyFrameAnim(); ITVLandscape CreateTVLandscape(); ITVLightEngine CreateTVLightEngine(); ITVMaterialFactory CreateTVMaterialFactory(); ITVParticleSystem CreateTVParticleSystem(); ITVPath CreateTVPath(); ITVScene CreateTVScene(); ITVScreen2DImmediate CreateTVScreen2DImmediate(); ITVScreen2DText CreateTVScreen2DText(); ITVTextureFactory CreateTVTextureFactory(); ITVTileMap CreateTVTileMap(); ITVViewport CreateTVViewport();
#define LIGHT(a) (DxVBLibA::D3DLIGHT8 *)(a)
typedef ::_D3DLIGHT8 TV_LIGHT ;
/* * Declaration of the Extra/Macro functions */
//RGBA returns the color in hex format, the arguments are 0-1 unsigned int RGBA(float r, float g, float b, float a);
//Extracts the path of a file, if you pass the GetModuleFileName path, //it will return the path where it is existing, the Application Path void AppPath(char* PathOfFile,char* ret_Path);
// light color inline _D3DCOLORVALUE LightColor(float r, float g, float b, float a) { _D3DCOLORVALUE cv; cv.r = r; cv.g = g; cv.b = b; cv.a = a; return cv; }
// Some strings conversion routines. // For example when you need to return a string from the TV3D DLL BSTR ConvertStringToBSTR(const char* pSrc); char* ConvertBSTRToString(BSTR pSrc);
// Don't forget to free the memory allocated by these functions. #endif Don't forget to replace the truevision3d.dll path in the code above. I've tested all C++ Tutorials, using Visual Studio 2005 Beta 1. Some of them require you to change the namespace of some types from TrueVision3D to DxVBLibA. Also I got a link error about LIBC.lib, which was resolved with the command /NODEFAULTLIB:"libc.lib" in the Linker options. Anyway it seems to work fine. 
|
|
|
|
|
Logged
|
|
|
|
|
Arli
|
 |
« Reply #1 on: February 18, 2005, 07:05:58 AM » |
|
Sweet. Lemme sticky it.
|
|
|
|
|
Logged
|
|
|
|
Yukito
Community Member

Posts: 246
|
 |
« Reply #2 on: March 08, 2005, 06:29:44 PM » |
|
thank you very much for this thingy... helped me really much... correctly sticked 
|
|
|
|
|
Logged
|
Reality is something for people, who cant handle dragons...
|
|
|
greg_quinn
Community Member

Posts: 1
|
 |
« Reply #3 on: April 18, 2005, 02:25:37 PM » |
|
Hi,
I'm using Visual Studio.NET 2003 and VC++.
I tried importing the VC6++ project in, but when I try to build I get 1000's of errors. I have tried changing the .hpp file as above, but no luck. I have made the references as explained in the docs, but still problems.
What else can I do?
Thanks
|
|
|
|
|
Logged
|
|
|
|
Midian
Community Member

Posts: 1
|
 |
« Reply #4 on: April 30, 2005, 07:39:49 PM » |
|
I am having the same problem, can someone please help??
|
|
|
|
|
Logged
|
|
|
|
aigam
Community Member

Posts: 3
|
 |
« Reply #5 on: May 05, 2005, 09:14:34 AM » |
|
I have the vs 2003 and I have compiled without errors.
Remember to place the directoris in VS of the libs, and make the configuration that is in the manual with vs6 but for vs7.
With all... I recomend you to use the vs6 version, you can have the two compilers at the same time in the same machine.
|
|
|
|
|
Logged
|
|
|
|
Stryker
Community Member

Posts: 56
|
 |
« Reply #6 on: June 03, 2005, 01:30:08 PM » |
|
c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\tv3dgame\Debug\dx8vb.tlh(6214) : error C2143: syntax error : missing '}' before '(' c:\Documents and Settings\Owner\My Documents\Visual Studio Projects\tv3dgame\Debug\dx8vb.tlh(6214) : fatal error C1903: unable to recover from previous error(s); stopping compilation
theres a new one for ya
|
|
|
|
|
Logged
|
|
|
|
ttom
Community Member

Posts: 15
|
 |
« Reply #7 on: June 06, 2005, 11:00:08 PM » |
|
below is error in the vs2003 anyone know this //--------------------------------------------------------------------
------ Build started: Project: Tutorial08, Configuration: Debug Win32 ------
Compiling... Tutorial 8.cpp d:\TV3DSDK\VC++6\TestTV3DSDK\Tutorial08\Tutorial 8.cpp(93) : warning C4311: 'type cast' : pointer truncation from 'HWND' to 'long' d:\TV3DSDK\VC++6\TestTV3DSDK\Tutorial08\Tutorial 8.cpp(191) : error C2664: 'TrueVision3D::_TVLandscape::SetWaterEffect' : cannot convert parameter 4 from '_D3DBLEND' to 'DxVBLibA::CONST_D3DBLEND' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
|
|
|
|
|
Logged
|
|
|
|
|
RicarDog
|
 |
« Reply #8 on: June 08, 2005, 04:16:52 PM » |
|
ttom, as I said you have to change the namespace of the enum type to DxVBLibA: pLand->SetWaterEffect(tvfalse, 0.5, tvtrue, (enum DxVBLibA::CONST_D3DBLEND)D3DBLEND_SRCALPHA, (enum DxVBLibA::CONST_D3DBLEND)D3DBLEND_INVSRCALPHA, tvfalse, 0);
|
|
|
|
|
Logged
|
|
|
|
ttom
Community Member

Posts: 15
|
 |
« Reply #9 on: June 09, 2005, 07:20:25 AM » |
|
Thansk to RicarDog I will try it ttom
|
|
|
|
|
Logged
|
|
|
|
ttom
Community Member

Posts: 15
|
 |
« Reply #10 on: June 10, 2005, 01:13:20 AM » |
|
It work fine, but the water is not transparent.
|
|
|
|
|
Logged
|
|
|
|
laulau
Community Member

Posts: 31
|
 |
« Reply #11 on: June 11, 2005, 03:27:20 AM » |
|
i install vs 2003 and i work in c++ i configure the lib and include for directx i change the tv3dcpp.h i see it in the tutoriel and i have a lot of error why??? Code: ------ Build started: Project: spacequake, Configuration: Debug Win32 ------
Compiling... spacequake.cpp c:\developpe\spacequake\Debug\truevision3d.tlh(716) : error C2146: syntax error : missing ';' before identifier 'GetBackbuffer' c:\developpe\spacequake\Debug\truevision3d.tlh(716) : error C2501: 'TrueVision3D::_TVInternalObjects::Direct3DSurface8Ptr' : missing storage-class or type specifiers c:\developpe\spacequake\Debug\truevision3d.tlh(716) : warning C4183: 'GetBackbuffer': missing return type; assumed to be a member function returning 'int' c:\developpe\spacequake\Debug\truevision3d.tlh(717) : error C2146: syntax error : missing ';' before identifier 'GetD3DXLibrary' etc...
thanks laulau
|
|
|
|
|
Logged
|
|
|
|
PaulMuaddib
Community Member

Posts: 171
|
 |
« Reply #12 on: June 30, 2005, 11:58:58 PM » |
|
that is because u have DX9... see my post for fix http://www.truevision3d.com/phpBB2/viewtopic.php?t=9476also for earlier post... I'm using Visual Studio.NET 2003 and VC++.
I tried importing the VC6++ project in, but when I try to build I get 1000's of errors. I have tried changing the .hpp file as above, but no luck. I have made the references as explained in the docs, but still problems.
I believe you have same issue....see my fix I posted
|
|
|
|
|
Logged
|
|
|
|
|
Guest
|
 |
« Reply #13 on: November 08, 2005, 12:50:53 AM » |
|
Tool that lets you scan for open proxies including HTTP and Socks proxies. http://www.checkproxy.net
|
|
|
|
|
Logged
|
|
|
|
seppuku arts
Community Member

Posts: 49
|
 |
« Reply #14 on: November 17, 2005, 11:37:39 AM » |
|
I'm still having build errors,
I uise Visual C++ Express 2005, I think its .NET, as I had to install the framework, I am very new to C++, I only got it yesterday, I use Dark Basic Pro before this and was told TV3D was a good conversion, but even trying this code, I can't run the tutorial code that came in the C++ 6 folder with TV3D....
|
|
|
|
|
Logged
|
|
|
|
seppuku arts
Community Member

Posts: 49
|
 |
« Reply #15 on: November 17, 2005, 02:22:22 PM » |
|
Nevermind, I got it working in VB.net so thats all I need 
|
|
|
|
|
Logged
|
|
|
|
Tan
Community Member

Posts: 107
|
 |
« Reply #16 on: December 18, 2005, 10:23:33 PM » |
|
I have tons of error
d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2079: 'TrueVision3D::_TVMaterialFactory::GetAmbient' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(29): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(30): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetAmbient' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2079: 'TrueVision3D::_TVMaterialFactory::GetDiffuse' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(36): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(37): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetDiffuse' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2079: 'TrueVision3D::_TVMaterialFactory::GetEmissive' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(43): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(44): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetEmissive' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2079: 'TrueVision3D::_TVMaterialFactory::GetSpecular' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(50): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(51): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetSpecular' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2079: 'TrueVision3D::_TVLightEngine::GetLightByIndex' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(213): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(214): error C2664: 'TrueVision3D::_TVLightEngine::raw_GetLightByIndex' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DLIGHT8 *' . . . What did i do wrong? I have tried pasting the header file, but it did not work. So i reveted it back to original. I am using visual studio 2003 C++.Net.
Can someone show me how to configure my C++. I am using C#, so i never touch C++ before except for C
Thanks everyone
|
|
|
|
|
Logged
|
Passion to Game Development Always
|
|
|
|
wfryatt
|
 |
« Reply #17 on: December 21, 2005, 08:39:43 AM » |
|
I really never used TV 6.2... As soon as I saw what TV could do and saw what 6.5 could do I bought a license so I could get the beta which is designed to work with Visual C++ 7. Just a guess, The errors here are complaining that it doesn't know what D3DCOLORVALUE is .... Have you tried finding the header file that D3DCOLORVALUE is defined in? This would be in the DirectX SDK. The other thought here would be to use Visual C++ 6, which 6.2 is designed to use. I have tons of error
d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2079: 'TrueVision3D::_TVMaterialFactory::GetAmbient' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(29): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(30): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetAmbient' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2079: 'TrueVision3D::_TVMaterialFactory::GetDiffuse' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(36): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(37): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetDiffuse' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2079: 'TrueVision3D::_TVMaterialFactory::GetEmissive' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(43): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(44): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetEmissive' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2079: 'TrueVision3D::_TVMaterialFactory::GetSpecular' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(50): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(51): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetSpecular' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2079: 'TrueVision3D::_TVLightEngine::GetLightByIndex' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(213): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(214): error C2664: 'TrueVision3D::_TVLightEngine::raw_GetLightByIndex' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DLIGHT8 *' . . . What did i do wrong? I have tried pasting the header file, but it did not work. So i reveted it back to original. I am using visual studio 2003 C++.Net.
Can someone show me how to configure my C++. I am using C#, so i never touch C++ before except for C
Thanks everyone
|
|
|
|
|
Logged
|
|
|
|
|
wfryatt
|
 |
« Reply #18 on: December 21, 2005, 08:40:48 AM » |
|
I really never used TV 6.2... As soon as I saw what TV could do and saw what 6.5 could do I bought a license so I could get the beta which is designed to work with Visual C++ 7. Just a guess, The errors here are complaining that it doesn't know what D3DCOLORVALUE is .... Have you tried finding the header file that D3DCOLORVALUE is defined in? This would be in the DirectX SDK. The other thought here would be to use Visual C++ 6, which 6.2 is designed to use. Here's another thread on the issue: http://www.truevision3d.com/phpBB2/viewtopic.php?t=8045I have tons of error
d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(28): error C2079: 'TrueVision3D::_TVMaterialFactory::GetAmbient' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(29): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(30): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetAmbient' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(35): error C2079: 'TrueVision3D::_TVMaterialFactory::GetDiffuse' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(36): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(37): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetDiffuse' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(42): error C2079: 'TrueVision3D::_TVMaterialFactory::GetEmissive' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(43): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(44): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetEmissive' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(49): error C2079: 'TrueVision3D::_TVMaterialFactory::GetSpecular' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(50): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(51): error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetSpecular' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DCOLORVALUE *' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(212): error C2079: 'TrueVision3D::_TVLightEngine::GetLightByIndex' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(213): error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8' d:\TV3DSDK\VC++6\Tutorial 1\Debug\truevision3d.tli(214): error C2664: 'TrueVision3D::_TVLightEngine::raw_GetLightByIndex' : cannot convert parameter 2 from 'int *' to 'TrueVision3D::D3DLIGHT8 *' . . . What did i do wrong? I have tried pasting the header file, but it did not work. So i reveted it back to original. I am using visual studio 2003 C++.Net.
Can someone show me how to configure my C++. I am using C#, so i never touch C++ before except for C
Thanks everyone
|
|
|
|
|
Logged
|
|
|
|
skatehead
Community Member

Posts: 44
|
 |
« Reply #19 on: January 07, 2006, 12:00:25 AM » |
|
is anything possible with Visual C++ 8 (2005) Express + TV 6.2 any help would be much appreciated thanks edit: ive modded the header file, and have managed to get rid of all the errors except this one: d:\program files\tv3dsdk\vc++6\tutorial 3\debug\truevision3d.tli(367) : error C2440: 'return' : cannot convert from '__missing_type__ *' to '__missing_type__' There is no context in which this conversion is possible any ideas?
|
|
|
|
|
Logged
|
|
|
|
|