Enrico,

There's a problem with converting all NILs to OleDefaultArg() because  
we have no way to detect explicit NIL, vs. implied NIL. IOW:

    o:SomeOleCall( 1, , 3 )

    o:SomeOleCall( 1, NIL, 3 )

We have no way to know if the 2nd argument was an explicit NIL, or an  
omitted argument. Thus if we make such auto conversion of NIL to  
OleDefaultArg() any argument which expects a NIL (VT_EMPTY) will need  
to be passed as VTWrapper( VT_EMPTY ). At this point I have no idea  
which is preferable.

Ron

On May 20, 2008, at 1:36 AM, Enrico Maria Giordano wrote:

>
> -----Messaggio Originale-----
> Da: "Ron Pinkas" <[EMAIL PROTECTED]>
> A: "Enrico Maria Giordano" <[EMAIL PROTECTED]>
> Cc: "xHarbour-Developers" <xharbour-developers@lists.sourceforge.net>;
> "Patrick Mast, xHarbour.com" <[EMAIL PROTECTED]>
> Data invio: martedì 20 maggio 2008 1.23
> Oggetto: Re: [xHarbour-developers] Time for a release?
>
>
>> The correct way to pass a default argument to OLE Servers is using
>> OleDefaultArg() function or OLE_DEFAULT_ARG macro. Please try:
>>
>>       oExcel:WorkBooks:Open( cXls, , , OleDefaultArg(), , , ,
>> OleDefaultArg(), , , .T., , .T. )
>
> Sorry, it works fine with latest CVS!
>
> Thank you.
>
> By the way, what about automatically replace NIL parameters with
> OleDefaultArg()?
>
> EMG
>
> --
> EMAG Software Homepage:     http://www.emagsoftware.it
> The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
> The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
> The EMG Music page:         http://www.emagsoftware.it/emgmusic
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> xHarbour-developers mailing list
> xHarbour-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to