ok im trying to understand a file format it has the value then the format type

example

1 = Byte
2 = word
3 = float
4 = string

this is what i thought its formating ment at first...

but value 2 needs to have decimal point ability same with 3

signed valuse only have + - for word right ???

so then my question is...

if both 2 and 3 require the ability to have "0.69" decimal points then what is the likely two formats that they are...

also since wsprintf does not support floats

i went got a iDEF.exe program that makes a list of the DLL exports into a .def file then i linked it into a lib

i did this to the dll that has
sprintf and a lot of other cool apis.

now in masm i can use spintf which supports floats... the problems is either it only supports 56.00... because on the
valuse that should be 0.98 they are 0.00... this is on the 2 format i said above... i have not ran into a file with the 3 format quite yet so i dont know if it will do the same thing.

so my second question is... is there any windows api that C or C++ has that does the 0.96
Posted on 2003-07-30 13:23:05 by devilsclaw
also

all of these valuse only have the room of one dword

so im now guessing that

it goes like this

1 = Unsgned Dword
2 = Float
3 = Double ;that is if its possilbe to have a double with out having two dwords im new to this
4 = String
Posted on 2003-07-30 13:54:48 by devilsclaw
Hmm, could you type up some excerpt from the file? What type of file is it? I'm guessing it's some database.
Posted on 2003-07-30 15:36:27 by Sephiroth3
its more of a text resource with variables


TEXTSTR = BLANK,0.98,BLANK


the items that use the 1 2 3 4 structure are the leafts
example

ITEM = LEAF

the leafs are both string a number variables...
Posted on 2003-07-30 17:08:34 by devilsclaw
well i figured out what the 2 is and i found out the 3 is not used at all...

grabed it from my really really old notes....

so then has any one tryed to use sprintf on a float-double

and if you have have you ever gotten it to show the exponets 0.98

if so please explain to me how...

OR does anyone have a ASM float-double to ASCII Decimal code that i could use

and i only need it to go two decimals deep 0.00

if so thanks...
Posted on 2003-07-31 10:51:13 by devilsclaw
also to be more exact the float point is intel notation
Posted on 2003-07-31 10:53:52 by devilsclaw