Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: functions with optional arguments in Windows DLLs

by BrowserUk (Pope)
on Dec 13, 2007 at 20:35 UTC ( #656913=note: print w/ replies, xml ) Need Help??


in reply to Re^2: functions with optional arguments in Windows DLLs
in thread functions with optional arguments in Windows DLLs

According to this, optional arguments are 'filled in' to their default values, by the compilers of languages that support them. It also says that the default values should be clearly documented.

The upshot appears to be that you will have to pass the default values when calling from a language that does not support this behaviour. So, you will need to look up the dfault values and provide them explicitly either every time you call via Win32::API or supply a wrapper function that fills them in.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: functions with optional arguments in Windows DLLs
Re^4: functions with optional arguments in Windows DLLs
by spurperl (Priest) on Dec 14, 2007 at 06:30 UTC
    Yes, I suppose I'll have to do that. Thanks for the help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://656913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-11-28 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls