Sturmritter![]() Member Posts: 17 From: San Rafael, CA, USA Registered: 06-13-2002 |
Well, not really a problem for me, just my compiler ![]() I'm using DirectX to Assign Skin Meshes to a model I'm working on, but the compiler is giving me a strange error. Here is the SDK information on the COM Interface: ID3DXSkinMesh::UpdateSkinnedMesh HRESULT UpdateSkinnedMesh( Parameters If the method fails, the return value can be D3DERR_INVALIDCALL. Remarks Requirements See Also
SkinMesh->UpdateSkinnedMesh(Matrix, Mesh->PropMesh); (SkinMesh is a LPD3DXSKINMESH pointer, PropMesh is the LPD3DXMESH pointer I want returned to my Mesh Structure) The Compiler tells me the function doesn't take 2 parameters!! What's up with this?!? error C2660: 'ID3DXSkinMesh::UpdateSkinnedMesh' : function does not take 2 parameters Can anyone help me with this? I'm at a loss. Thanks in advance and God Bless! Sturmritter ------------------ quote: |
Sturmritter![]() Member Posts: 17 From: San Rafael, CA, USA Registered: 06-13-2002 |
Go figure! It was the compiler after all! (or at least the SDK information provided by it!) With DirectX 8.1 The UpdateSkinnedMesh function requires THREE parameters: HRESULT UpdateSkinnedMesh( They probably added the NULL as some future COM hook/parameter return function yet to be added. Anyways, that solved the problem. I just wish they'd update the SDK help files more often! God Bless and take care. Hope this helps anyone else who might encounter a similar problem. - Sturmritter ------------------ quote: |
rowanseymour![]() Member Posts: 284 From: Belfast, Northern Ireland Registered: 02-10-2001 |
The online SDK docs for 8.1 have the updated function params http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dx8_c/directx_cpp/dx8start_c_81.asp ------------------ |
Sturmritter![]() Member Posts: 17 From: San Rafael, CA, USA Registered: 06-13-2002 |
Thanks Rowan! - Sturmritter ------------------ quote: |