thank you for your answer.
i have some problem and hope some one can help me:
1-how can i debug a dll in delphi in winXP .
2-there is a problem in code of dx9library.pas:
ddsd : TD3DSURFACE_DESC;
// check the texture format
if not FAILED(dx9tex.GetLevelDesc(0,ddsd)) then
begin
if not (ddsd.Format in [D3DFMT_A8R8G8B8,D3DFMT_A4R4G4B4,D3DFMT_A1R5G5B5,D3DFMT_R5G6B5]) then
begin
Result := _VAR(2); // format not supported
Exit;
end;
as you can see ddsd in define and used in GetLevelDesc .
the problem is every time i start my dll it go to exit line.
and do nothing.