Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hey madtoperl,

Are you by any chance also using the username "jesuashok"?

The reason I ask is that he also has trouble with crediting his sources, even to the point of asking questions which are taken from other sources, after removing the authors' names first.

On March 8, 2006, the following was posted at this site:

+ I'm trying to use the Win32::API module to call a simple test case DLL (call it "addValues.dll"). My DLL has a function in it called addValue +s: + extern "C" __declspec(dllexport) double addValues(double a, double b) { double c; c = a + b; cout << a << " " << b << " " << c << endl; return(c); } + My perl script to call this looks like: + use Win32::API; + $num1 = $ARGV[0]; $num2 = $ARGV[1]; + $myFunc = Win32::API->new('addValues', 'double addValues(double a, double b)'); $out = $myFunc->Call($num1, $num2); print "$out"; + When executing this, perl bombs at the Call line, giving me the "Perl Command Line Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience" message. + Note that if I change my dll function to take no arguments (hard codin +g a and b within the function) and return a double, I have no problems, e.g. + $myFunc = Win32::API->new('addValues', 'double addValues()'); $out = $myFunc->Call(); + I have also tried the alternative calling syntax: + $myFunc = Win32::API->new('addValues', 'addValues', 'DD', 'D') + with no success.
Now, apart from changing a few variable names (eg. "z = x + y;" instead "c = a + b;"), your post is identical to the one from 2 1/2 months earlier!  I notice you event have a typo where you changed "addValues" to "adnValues", but misspelled the function name:
$myFunc = Win32::API->new('adnalues', 'adnValues', 'DD', 'D')

Furthermore, like some of jesuashok's examples of plagiarism, you seem very interested in Perl poetry.  Unfortunately, in a number of cases, you have stolen that poetry from other people, and tried to pass it off as your own.  marto posted this node showing 5 examples where you took someone else's work without giving credit!

So, why are you ripping off other people's work?!


In reply to Re: why Crashing windows API using perl?? by liverpole
in thread why Crashing windows API using perl?? by madtoperl

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (4)
    As of 2021-01-28 08:45 GMT
    Find Nodes?
      Voting Booth?