Jump to content

  • Log In with Google      Sign In   
  • Create Account

crysisbigfan

Member Since 02 Mar 2013
Offline Last Active Mar 19 2013 01:30 PM

Posts I've Made

In Topic: Directx8 error LNK2019: unresolved external symbol PLEASE HELP!

08 March 2013 - 01:27 PM

Hey Thanks it worked ! :)

 

Now I have working program but the profesor is very angry. I keep telling him Im going to do it. lol

 

I'll probably give UDK a try if this doesn't works out.

 

Thanks for all replies from all of you ! :) :)


In Topic: Directx8 error LNK2019: unresolved external symbol PLEASE HELP!

03 March 2013 - 02:32 AM

Hi !

First of all i would really like to thank you for your help. This means a lot to me. Yes, Im using Directx8 sdk with 2004 update(Maybe thats the problem ill try to reinstall SDK without this update).  In Directx SDK help for C++ was

 

HRESULT GenerateSkinnedMesh( 

DWORD Options, 

FLOAT minWeight,
CONST LPDWORD pAdjacencyIn, 

LPDWORD pAdjacencyOut, 

DWORD* pFaceRemap,  
LPD3DXBUFFER* ppVertexRemap,    

LPD3DXMESH* ppMesh  );

 

pFaceRemap [out, retval] Pointer to the an array of DWORDs containing the face remap
array. This parameter is optional and can be specified with NULL. ppVertexRemap [out, retval] Pointer to an LPD3DXBUFFER interface,
representing the vertex remap data. This parameter is optional and can be
specified with NULL. ppMesh [out, retval] Pointer to an ID3DXMesh interface, representing
the generated skinned mesh.

 

So the problem is becouse i have only one argument after  pAdjacencyOut, where there should be three. pFaceRemap can be NULL and ppVertexRemap can be NUll too.

Nice! Too bad i didn't use that earlier. The functions are fixed only two errors remains before i can draw my level

 

1>LIBCMTD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
1>Core_Graphics.obj : error LNK2019: unresolved external symbol _DirectXFileCreate@4 referenced in function "public: int __thiscall cMesh::Load(class cGraphics *,char *,char *)" (?Load@cMesh@@QAEHPAVcGraphics@@PAD1@Z)
1>.\Debug\Diavolo.exe : fatal error LNK1120: 2 unresolved externals

 

I did some resarch:

1>LIBCMTD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main is Usually when people are using console application settings. I checked I have windows application. But the other one no idea.

 

Thanks again for all working advices smile.png
 


In Topic: Directx8 error LNK2019: unresolved external symbol PLEASE HELP!

02 March 2013 - 05:02 AM

WOW !

thanks ! smile.png
im only getting thease errors now 

 

c:\program files (x86)\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1124): error C2664: 'ID3DXSkinMesh::UpdateSkinnedMesh' : cannot convert parameter 2 from 'ID3DXMesh *' to 'const D3DXMATRIX *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1280): error C2660: 'ID3DXSkinMesh::GenerateSkinnedMesh' : function does not take 6 arguments
1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1788): error C2660: 'ID3DXSkinMesh::UpdateSkinnedMesh' : function does not take 2 arguments
1>

 

I added couple of NULL but now i get

1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1124): error C2664: 'ID3DXSkinMesh::UpdateSkinnedMesh' : cannot convert parameter 2 from 'ID3DXMesh *' to 'const D3DXMATRIX *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1280): error C2664: 'ID3DXSkinMesh::GenerateSkinnedMesh' : cannot convert parameter 5 from 'ID3DXMesh **' to 'DWORD *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\users\klemen\documents\matura\diavolo\igra\core_graphics.cpp(1789): error C2664: 'ID3DXSkinMesh::UpdateSkinnedMesh' : cannot convert parameter 2 from 'ID3DXMesh *' to 'const D3DXMATRIX *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

 

Im new to directx sorry sad.png

Thank you for your time


PARTNERS