i have a X text file, now i want transfer it to binary file, i do not know
algorithm to transfer, anybody clearly about text, binary file, pls help me,
thanks very much.
>i have a X text file, now i want transfer it to binary file, i do not know
>algorithm to transfer, anybody clearly about text, binary file, pls help me,
>thanks very much.
There used to be a utility called convx, I think, in the SDK that
would let you do this. Otherwise you can write your own code that
reads in a .x file and saves it out in binary.
(Richard) legalize+jeeves@mail.xmission.com spake the secret code thusly:
>[...] Otherwise you can write your own code that
>reads in a .x file and saves it out in binary.
To be more specific:
1) D3DXFileCreate to get an ID3DXFile
2) ID3DXFile::CreateEnumObject to read in the text file
3) ID3DXFile::CreateSaveObject to write out the binary file (use
D3DXF_FILEFORMAT_BINARY)
4) traverse all children using the enum object and save all children
using the save object
You should note however that it refers to the binary format for .x
files as a "legacy-format binary file". I would interpret this to
mean that binary file support may disappear in the future.