in reply to Value Sought from Subroutine Argument?

Have you tried assigning the result of GetDWORDValue() to $dwValue? I don't use the Win32 namespace, but that would be something I'd try.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Value Sought from Subroutine Argument?

Replies are listed 'Best First'.
Re^2: Value Sought from Subroutine Argument?
by Dismas (Acolyte) on Mar 02, 2005 at 16:15 UTC
    Dear Dragonchild,

    If by "result" you mean the value returned, that won't do. The sub returns a 0 for success and an error code for failure.

    Thanks JTS,

    Dismas