"Nothing" was returned? How do you fit "nothing" into a datatype of 'N'? And "didn't work" does not say anything about was was or wasn't returned or what was or wasn't written to STDERR. So "nothing was returned with no error message" is certainly tons better than "didn't work", despite the first half of it being inaccurate.

I don't see your code trying to print an eror message so I'm not at all surprised that no error message was printed. You might want to read up on the API you are using to figure out how it reports errors so that you can add error message(s) to your code. It is certainly quite unusual for a useful programming API to simply write information to STDERR when you use the API wrong. Useful APIs tend to report error information to the caller (in ways that you have to read the documentation or even the code to determine accurately) so that the calling code can decide whether it should pass that on to the user (and how it should be passed on to the user) or whether the failure should be dealt with some other way.

Also, D is double, and that's what I had.

Your node had 'N' and the node that you said you tried had 'N', so if you had 'D', then your problem report was even worse.

- tye        


In reply to Re^5: Win32::API question (work) by tye
in thread Win32::API question by gbotzz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.