Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1] 2
  Print  
Author Topic: C++ Programmers : Element Not Found problem resolved.  (Read 22876 times)
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« on: August 20, 2003, 04:16:28 PM »

Hello, you were a lot of persons who couldn't compile tutorials and projects with c++ and tv6.0, because the error Element Not found, occured.

Basically the problem is that the DirectX VB Dll has been changed between DX9.0 and DX9.0b (for no reason I guess by microsoft). This changes resulted in a GUID change for this dxvb8.dll, this means that when VC++ tried to import the dll, it couldn't find the corresponding guids in the registry (especially after a format like two persons did yesterday and got the same error).

So the way to fix that is actually to recompile the TV VB dll with DX9.0b, I did it and retested here.

If you absolutely need this dll for dx9.0b before the patch that should happen in 1 or 2 weeks, then drop me a message to sylvain@truevision3d.com
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Javin
Customers
Community Member
*****
Posts: 990


« Reply #1 on: September 11, 2003, 03:04:46 PM »

Or, alternately, download the unoffical TV Patch at:

www.Javin-Inc.com

-Javin
Logged

Come and join us on IRC for TV3D help!
Server: www.TrueVision3D.com:6667
Channel: #TV3DLicensed
(Open to both licensed, and non-licensed users.)
gameboy
Community Member
*
Posts: 29


« Reply #2 on: October 01, 2003, 05:27:11 AM »

I'm still having problems even with the unofficial TV patch. Using VC++ Tutorial 1 as an example, it will now compile without errors, but it does not link correctly. I now get two errors:

LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Tutorial 1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


When I use the /NODEFAULTLIB:LIBC under Project Settings>Link, I get these errors:

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Tutorial 1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


Is anyone else getting these errors? Am I doing something wrong?
Logged
Javin
Customers
Community Member
*****
Posts: 990


« Reply #3 on: October 01, 2003, 05:27:38 PM »

I'm by no means an expert in C++, but the only thing I might suggest is to make sure you registered the TrueVision3D.dll after replacing it with the "patch."

-Javin
Logged

Come and join us on IRC for TV3D help!
Server: www.TrueVision3D.com:6667
Channel: #TV3DLicensed
(Open to both licensed, and non-licensed users.)
gameboy
Community Member
*
Posts: 29


« Reply #4 on: October 02, 2003, 03:19:05 PM »

Thanks for the info Javin, but after re-registering truevision3d.dll I'm still getting the same error as above:

Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Tutorial 1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
 :cry:
Logged
DaveHunt
Community Member
*
Posts: 13


« Reply #5 on: October 02, 2003, 03:36:59 PM »

It looks like you specified a Console app instead of a Windowed app when you created your project. Console apps require main(), while Windowed apps require WinMain().
Logged
gameboy
Community Member
*
Posts: 29


« Reply #6 on: October 03, 2003, 02:04:44 PM »

Thanks DaveHunt. I created a new project and specified it as a Win32 app, then added Tutorial 1.cpp and made the changes described above, and it compiled and ran.  :mrgreen:
Logged
Project_Man
Community Member
*
Posts: 7


« Reply #7 on: October 25, 2003, 09:03:08 AM »

c:\TV3DSDK\VC++6\tv3dcpp.h(154) : warning C4278: 'LoadCursor': identifier in type library 'C:\TV3DSDK\Bin\truevision3d.dll' is already a macro; use the 'rename' qualifier
c:\TV3DSDK\VC++6\tv3dcpp.h(154) : warning C4278: 'DrawText': identifier in type library 'C:\TV3DSDK\Bin\truevision3d.dll' is already a macro; use the 'rename' qualifier
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(28) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(28) : error C2079: 'TrueVision3D::_TVMaterialFactory::GetAmbient' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(29) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(30) : error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetAmbient' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(35) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(35) : error C2079: 'TrueVision3D::_TVMaterialFactory::GetDiffuse' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(36) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(37) : error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetDiffuse' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(42) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(42) : error C2079: 'TrueVision3D::_TVMaterialFactory::GetEmissive' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(43) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(44) : error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetEmissive' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(49) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(49) : error C2079: 'TrueVision3D::_TVMaterialFactory::GetSpecular' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(50) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(51) : error C2664: 'TrueVision3D::_TVMaterialFactory::raw_GetSpecular' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(212) : error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(447) : see declaration of 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(212) : error C2079: 'TrueVision3D::_TVLightEngine::GetLightByIndex' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(213) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(214) : error C2664: 'TrueVision3D::_TVLightEngine::raw_GetLightByIndex' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DLIGHT8 *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(219) : error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(447) : see declaration of 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(219) : error C2079: 'TrueVision3D::_TVLightEngine::GetLightByName' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(220) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(221) : error C2664: 'TrueVision3D::_TVLightEngine::raw_GetLightByName' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DLIGHT8 *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(233) : error C2027: use of undefined type 'TrueVision3D::D3DLIGHT8'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(447) : see declaration of 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(233) : error C2079: 'TrueVision3D::_TVLightEngine::GetLightInfo' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(234) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DLIGHT8'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(235) : error C2664: 'TrueVision3D::_TVLightEngine::get_LightInfo' : cannot convert parameter 2 from 'int *__w64 ' to 'TrueVision3D::D3DLIGHT8 *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(332) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(339) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(346) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(353) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(360) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(367) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(490) : error C2027: use of undefined type 'TrueVision3D::D3DVECTOR2'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(867) : see declaration of 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(490) : error C2079: 'TrueVision3D::_TVMathLibrary::RotateAroundPoint2D' uses undefined struct 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(491) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(492) : error C2664: 'TrueVision3D::_TVMathLibrary::raw_RotateAroundPoint2D' : cannot convert parameter 4 from 'int *__w64 ' to 'TrueVision3D::D3DVECTOR2 *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(2782) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(2789) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3781) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3781) : error C2079: 'TrueVision3D::_TVGlobals::ColorValue' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3782) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3783) : error C2664: 'TrueVision3D::_TVGlobals::raw_ColorValue' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3801) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3801) : error C2079: 'TrueVision3D::_TVGlobals::DXColor' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3802) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3803) : error C2664: 'TrueVision3D::_TVGlobals::raw_DXColor' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3836) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3836) : error C2079: 'TrueVision3D::_TVGlobals::MakePlane' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3837) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3838) : error C2664: 'TrueVision3D::_TVGlobals::raw_MakePlane' : cannot convert parameter 3 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3843) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3843) : error C2079: 'TrueVision3D::_TVGlobals::MakePlane2' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3844) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3845) : error C2664: 'TrueVision3D::_TVGlobals::raw_MakePlane2' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3850) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3850) : error C2079: 'TrueVision3D::_TVGlobals::MakePlaneFromPoints' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3851) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3852) : error C2664: 'TrueVision3D::_TVGlobals::raw_MakePlaneFromPoints' : cannot convert parameter 4 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3896) : error C2027: use of undefined type 'TrueVision3D::RECT'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(5315) : see declaration of 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3896) : error C2079: 'TrueVision3D::_TVGlobals::REC' uses undefined struct 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3897) : error C2079: '_result' uses undefined struct 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(3898) : error C2664: 'TrueVision3D::_TVGlobals::raw_REC' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::RECT *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4849) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4849) : error C2079: 'TrueVision3D::_TVDelphiGlobals::DXColor' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4850) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4851) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_DXColor' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4891) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4891) : error C2079: 'TrueVision3D::_TVDelphiGlobals::MakePlane' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4892) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4893) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_MakePlane' : cannot convert parameter 3 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4898) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4898) : error C2079: 'TrueVision3D::_TVDelphiGlobals::MakePlane2' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4899) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4900) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_MakePlane2' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4905) : error C2027: use of undefined type 'TrueVision3D::D3DPLANE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(934) : see declaration of 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4905) : error C2079: 'TrueVision3D::_TVDelphiGlobals::MakePlaneFromPoints' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4906) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DPLANE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4907) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_MakePlaneFromPoints' : cannot convert parameter 4 from 'int *__w64 ' to 'TrueVision3D::D3DPLANE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4937) : error C2027: use of undefined type 'TrueVision3D::D3DCOLORVALUE'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(307) : see declaration of 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4937) : error C2079: 'TrueVision3D::_TVDelphiGlobals::ColorValue' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4938) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DCOLORVALUE'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4939) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_ColorValue' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::D3DCOLORVALUE *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4951) : error C2027: use of undefined type 'TrueVision3D::RECT'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(5315) : see declaration of 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4951) : error C2079: 'TrueVision3D::_TVDelphiGlobals::REC' uses undefined struct 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4952) : error C2079: '_result' uses undefined struct 'TrueVision3D::RECT'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(4953) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_REC' : cannot convert parameter 5 from 'int *__w64 ' to 'TrueVision3D::RECT *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(5041) : error C2027: use of undefined type 'TrueVision3D::D3DVECTOR2'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(867) : see declaration of 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(5041) : error C2079: 'TrueVision3D::_TVDelphiGlobals::RotateAroundPoint2D' uses undefined struct 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(5042) : error C2079: '_result' uses undefined struct 'TrueVision3D::D3DVECTOR2'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(5043) : error C2664: 'TrueVision3D::_TVDelphiGlobals::raw_RotateAroundPoint2D' : cannot convert parameter 4 from 'int *__w64 ' to 'TrueVision3D::D3DVECTOR2 *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(6116) : error C2027: use of undefined type 'TrueVision3D::DIDEVCAPS'
        c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tlh(8026) : see declaration of 'TrueVision3D::DIDEVCAPS'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(6116) : error C2079: 'TrueVision3D::_TVGameController::GetCapabilities' uses undefined struct 'TrueVision3D::DIDEVCAPS'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(6117) : error C2079: '_result' uses undefined struct 'TrueVision3D::DIDEVCAPS'
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(6118) : error C2664: 'TrueVision3D::_TVGameController::get_Capabilities' : cannot convert parameter 1 from 'int *__w64 ' to 'TrueVision3D::DIDEVCAPS *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\truevision3d.tli(6236) : error C2564: 'void *' : a function-style conversion to a built-in type can only take one argument
c:\TV3DSDK\VC++6\Tutorial 1\Tutorial 1.cpp(59) : warning C4311: 'type cast' : pointer truncation from 'HWND' to 'long'

Build log was saved at "file://c:\Documents and Settings\Project_Man\My Documents\Visual Studio Projects\Truevision\Debug\BuildLog.htm"
Truevision - 97 error(s), 3 warning(s)


---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

I run in Visual C++.NET ,DirectX9.0b
what is the problem
Logged
Project_Man
Community Member
*
Posts: 7


« Reply #8 on: October 25, 2003, 09:10:33 AM »

c:\TV3DSDK\VC++6\tv3dcpp.h(154) : warning C4278: 'LoadCursor': identifier in type library 'C:\TV3DSDK\Bin\truevision3d.dll' is already a macro; use the 'rename' qualifier
c:\TV3DSDK\VC++6\tv3dcpp.h(154) : warning C4278: 'DrawText': identifier in type library 'C:\TV3DSDK\Bin\truevision3d.dll' is already a macro; use the 'rename' qualifier

This is a Main Problem
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #9 on: October 26, 2003, 02:04:25 PM »

This wrapper isn't compatible with .NET, and probably won't be, due to some DLL import bugs in VC.NET. This will be changed in the version 6.5 tho, when the linkage will be as Win32 functions and not COM anymore for c++ users.

Sorry about this inconvenience.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Project_Man
Community Member
*
Posts: 7


« Reply #10 on: November 02, 2003, 06:44:19 AM »

Is TrueVision3D SDK 6.1b support for Visual C++.NET & DirectX 9.0b?
Logged
Shadow_Wolf
Community Member
*
Posts: 3


« Reply #11 on: November 29, 2003, 03:17:17 PM »

I am new to TrueVision3D (just downloaded it lastnight) and I'm getting this error when trying to compile the MSVC++ tutorial1. Can anyone shed some light on how I might fix this.

Quote

--------------------Configuration: Crow_Adventure - Win32 Debug--------------------
Compiling...
crowMain.cpp
c:\tv3dsdk\projects\crow_adventure\tv3dcpp.h(50) : fatal error C1084: Cannot read type library file: './truevision3d.dll': Element not found.
Error executing cl.exe.

Crow_Adventure.exe - 1 error(s), 0 warning(s)
Logged
stodge
Community Member
*
Posts: 154


« Reply #12 on: November 29, 2003, 03:44:47 PM »

Quote from: "Shadow_Wolf"
I am new to TrueVision3D (just downloaded it lastnight) and I'm getting this error when trying to compile the MSVC++ tutorial1. Can anyone shed some light on how I might fix this.

Quote

--------------------Configuration: Crow_Adventure - Win32 Debug--------------------
Compiling...
crowMain.cpp
c:\tv3dsdk\projects\crow_adventure\tv3dcpp.h(50) : fatal error C1084: Cannot read type library file: './truevision3d.dll': Element not found.
Error executing cl.exe.

Crow_Adventure.exe - 1 error(s), 0 warning(s)


Make sure you have the latest version of DirectX installed.
Logged

Shadow_Wolf
Community Member
*
Posts: 3


« Reply #13 on: November 29, 2003, 04:43:45 PM »

Quote from: "stodge"
Make sure you have the latest version of DirectX installed.


Do you mean the lastest version of the DirectX SDK, or just of the DirectX runtimes. I have the DirectX9.0b runtimes installed, but only the DirectX7 SDK...
Logged
Arli
Administrator
Community Member
*****
Posts: 993


« Reply #14 on: November 29, 2003, 05:02:19 PM »

Yes you need the SDK aswell.
Logged

Happy Coding

Arli
Truevision3D Developer
Arli@Truevision3D.com
Shadow_Wolf
Community Member
*
Posts: 3


« Reply #15 on: November 29, 2003, 06:05:04 PM »

Thanks for getting that cleared up Arli. Guess it's time to start downloading the SDK, going to take forever on my 56k though :roll:
Logged
Gf11speed
Community Member
*
Posts: 151


WWW
« Reply #16 on: November 30, 2003, 03:28:29 AM »

Quote from: "SylvainTV"
Hello, you were a lot of persons who couldn't compile tutorials and projects with c++ and tv6.0, because the error Element Not found, occured.

Basically the problem is that the DirectX VB Dll has been changed between DX9.0 and DX9.0b (for no reason I guess by microsoft). This changes resulted in a GUID change for this dxvb8.dll, this means that when VC++ tried to import the dll, it couldn't find the corresponding guids in the registry (especially after a format like two persons did yesterday and got the same error).

So the way to fix that is actually to recompile the TV VB dll with DX9.0b, I did it and retested here.

If you absolutely need this dll for dx9.0b before the patch that should happen in 1 or 2 weeks, then drop me a message to sylvain@truevision3d.com




My boy Sylvain didn't give me any credit on helping him find the reason behind this problem.  Smiley
Logged

Syntasoft.com
Programming Dept.
"I think that I think, therefore I think that I am."
MadProgrammer
Community Member
*
Posts: 86


« Reply #17 on: December 06, 2003, 03:10:32 AM »

Well all these answer seem fine to me, just one thing, did you move the tv3dcpp.h to your src dir or your VC++ include dir? Cuz if you did then you need to change #import "..\Bin\truevision3d.dll" to #import "C:\TV3DSDK\Bin\Truevision3D.dll" or whatever your install path is.
Logged

Programming today is a race between software engineers  
striving to build bigger and better idiot-proof programs,  
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
mathijs
Community Member
*
Posts: 369


« Reply #18 on: December 06, 2003, 05:31:03 AM »

Quote
My boy Sylvain didn't give me any credit on helping him find the reason behind this problem.  Smiley


Expected a free license? Tongue
Logged
mathijs
Community Member
*
Posts: 369


« Reply #19 on: December 06, 2003, 05:31:40 AM »

Damn double posting :S
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks