realbasic-nug
[Top] [All Lists]

Re: Declare question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Declare question
From: Mars Saxman <mars at realsoftware dot com>
Date: Wed, 30 Nov 2005 11:22:04 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <eb8fc1930511301017h444304cpc4be0b0a51fe5032 at mail dot gmail dot com> <2052CF98-B873-4090-8C65-0D4A03CB2344 at nc dot rr dot com> <eb8fc1930511301116p108c53f8o9fb7e13e5813e17e at mail dot gmail dot com>

On Nov 30, 2005, at 11:16 AM, dda wrote:

Thank you Christian. I am not sure this would work, so I have taken
another route:

Declare Sub myfunction Lib myLib (x As Integer, p As Ptr)
Declare Sub myfunction Lib myLib (x As Integer, i As Integer)
Declare Sub myfunction Lib myLib (x As Integer, b As Boolean)

Yes, that's the way to do it.

(ParamArray and varargs are two completely different solutions to the same general problem; they are not compatible. Don't use ParamArray on a declare statement.)

Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>