Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

glROCKs();

Guys, I need your help.

This topic is 6934 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

creating my own data-types --------------------------- I want to read a binary file that contains floats and unsigned int''s. The problem is that the float''s are stored in 4bytes and the uint''s in 2 bytes. Now if I''m having this right: with the new 32bit compilers float''s are 8 bytes long and uint''s 4 bytes. I''m not sure how to solve this problem, except by making my own data types. Am I correct??and how do I do it? Please help me out here. Tnx The Rock

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
not the float is 4 bytes & short is 2 bytes also in visual c++ 6, btw in visual c++ there is so many types as __uint16 etc.....
u can find it in the msdn
try to search it!
dylan
RamJam Programmer
Nayma Software

Share this post


Link to post
Share on other sites
a float should still be 4 bytes, read the ints into unsigned short ints (2 bytes).



crazy166
some people think i'm crazy, some people know it

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!