delphi - How do I make the compiler choose the BinaryWriter.Write overload I want? -


i using binary readers , writers read / write data file. example this:

mywriter.write(ord(tmyenum(2))); 

i expect write down smallint read with

myreader.readsmallint 

but in ide see writes down byte. how force writer write type want?

cast smallint

smallint(someenum) 

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -