X binary file
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.graphics only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... graphics Profile…
 Up
X binary file         


Author: David
Date: Apr 6, 2008 21:02

hi all,

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.

David,
3 Comments
Re: X binary file         


Date: Apr 7, 2008 10:40

[Please do not mail me a copy of your followup]

"David" yahoo.com> spake the secret code
thusly:
>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.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
no comments
Re: X binary file         


Date: Apr 7, 2008 15:34

[Please do not mail me a copy of your followup]

(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.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
no comments
Re: X binary file         


Author: David
Date: May 12, 2008 03:51

Thank you very much,

"Richard [Microsoft Direct3D MVP]" mail.xmission.com> wrote
in message news:%%23qv%%23N%%23PmIHA.1204@TK2MSFTNGP03.phx.gbl...
> [Please do not mail me a copy of your followup]
>
> (Richard...
Show full article (1.18Kb)
no comments