--- In [email protected], "Sheri" <sheri...@...> wrote: > > --- In [email protected], "entropyreduction" > <alancampbelllists+yahoo@> wrote: > > > > Yes, but what I'm not doing is fetching the default value, if > > there is one. Time to reinstate that I think. > > Wouldn't that be some static default, whereas here the default value can be > manipulated by the user?
Depends how amazingly clever the COM framework is. Just conceivable that when I pick up the pointer to the default VARIANT pointed to by the ELEMDESC for a parameter, it's been dynamically updated by the server app (Excel e.g.). One can wish. Try comPlugin0.72_100115.zip in the usual place. Only change is attempt to pick up default arg values. Try sending the VT_ERROR Variant ByRef. > I read that methods that change the content of an argument must receive the > variant with the VT_BYREF flag set. Yeah, true, but we're not altering the parameter, are we? > Maybe the method itself needs to change the content of the argument to its > default. It would be free to do so, internally. Even if an argument is passed by value, nothing prevents called code from altering it's value. Even true in Powerpro (where scalars anyway are always passed by bvalue). > Also see either of these has anything useful: > <http://www.canaimasoft.com/f90VB/OnlineManuals/Reference/TH_112.htm> That's a wrapper around COM stuff for "Fortran-OLE Automation". > <http://blogs.msdn.com/eric_carter/archive/2004/04/15/114079.aspx> Ah, now that's interesting, and I may have to revise wot I just said above.
