Hi all !

I was trying to create a little algorithm in order to parse .x files.

So I used the .x file structures(IdirectXfileObject, etc ...) but I got a problem when attempting to get the data.

Just look at that line of code in C++ :

"pData->GetName(pName, &dwSize);"

I had some problems to translate it to Delphi...

pData is a IDirectXFileData
pName if a PCHAR
and dwSize if a DWORD

So ... Chat would be the delphi translation ?
I tried this :

pData.GetName(pName, @dwSize);

But I get bad result ...

Can someone help me ?

Thx a lot

Bye
Avatar

ps : Sorry if I made any mistake in my sentences