Re: MBF to IEEE (Beg. Q)

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Thu, 21 May 2009 07:56:18 -0400, "Jim Mack" <jmack@xxxxxxxxxxxxxxx>
wrote:

Hey Jim.

How do you know anything is going wrong? Is the above function not
working for you?

Oh, the function works great. Didn't mean to imply there was a
problem. I'm only trying to wrap my mind around what is going on with
this code.

I have code pieces found on the internet or kindly provided by folks
like you here on the newsgroup that I'll use to deal with some issue I
may have with a programming project. Yet, often I don't have a lot of
time to dig deep and see 'why' they solved the problem or 'what' they
actually do.

So what ends up happening is that my progress from novice is slow and
long. I simply want to start understanding more 'deeper' things so
that I can take all the ideas I have in my head and turn them into
great code without so much bloat.

But yes, the code I'm studying right now was written by Olaf and it is
working wonderfully. :-)

The DxToIEEEs function can take a byte array instead of a single if
you use a Declare to avoid the typelib. The included CVS() example
uses a string, but the same idea works for a byte array.

I don't understand the above. What do you mean by "if you use a
Declare to avoid the typelib."? What would be an example of how the
DxToIEEEs can accept an array(0 to 3) of byte and return an IEEE
single?

Thanks for the bit level explanation!

Cheers!
Webbiz

.



Relevant Pages

  • Re: CPtrList with CSocket
    ... This means you don't need to declare ... Generally, you should avoid the ancient and, frankly, poorly-done, classes like CPtrList, ... By using two iteration mechanisms, one of which is inherently unrelated to the structure ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: Using Typelib?
    ... > How can I use typelib instead of Declare to access functions in a .dll ... > tutorials on using typelib to get file information. ... IMHO, they are prone to development errors, contribute to code bloat, and ... Declarations in production code and are quite happy with them. ...
    (microsoft.public.vb.general.discussion)
  • Re: bad dll calling convention in debug only
    ... >> Are you also using the debug version of the MFC library? ... >> debugging the DLL. ... >> Create a typelib and use that to replace the Declare Directives. ... I also recommend Bruce McKinney's source for a WinAPI typelib. ...
    (microsoft.public.vb.general.discussion)
  • Re: How to optimize for win ce developlemnet
    ... There's not really any way to avoid that type of thing. ... You might declare a ... > Thanks paul for your advice. ... >> globally optimizing your code, at the cost of many weeks or months, ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Artifact bitfield full? Or can I use the high bits?
    ... then don't use the sign bits just out of convervatism. ... avoid the sign bit of each byte. ... and declare the type unsigned (and never ... be compatible with some external format ...
    (rec.games.roguelike.nethack)