Hi guys,

I have a problem that looks very strange to me:
In my program I want to load a .x-File

if failed(D3DXLoadMeshFromX(pChar(FileName), D3DXMESH_SYSTEMMEM,
scene.D3DDEV8, Adjacency, D3DXMtrlBuffer,
NumMaterials, Mesh)) then begin ShowMessage('Oh shit!'); exit; end;
But the function fails (so the message is showed). As I understood DX, in HRESULT of the function should be displayed the error message. but HRESULT is empty. no message like invalidcall or outofmemory...

Can somebody help me with that? The program compiles normally and without the error message I don't know how to fix my problem.

Sven