its an Apparent bug in Win32::API if function returns a float or a double Heh ... that's the post that started me thinking about this.
With floats, there may be an issue, but I don't think Win32::API should have any problems with doubles. At least, I don't think earlier versions did.
But then, when I try to build a dll using Visual Studio, I find that I can't even get the library files to behave in accordance with my expectations. Admittedly I don't use Visual Studio all that often.
I also don't use Win32::API very much (in fact I avoid it), but little issues like this keep gnawing away at me. Looks like I might have to spend a few hours on this. (My first thoughts were that it must just be a case of me doing something really stupid - which could yet prove to be the case.)
Thanks for the feedback.
Cheers,
Rob
Update: I'm getting very similar results if I change from doubles to ints - so I don't think it's just a doubles/floats issue. I'll see if anyone on the perl-win32-users list has any advice.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.