Omnis5 – Using dylib — example using a framework.
HI Doug,
I’ve been following updates to Xojo (formerly RealBasic), they have an equivalent call, that works for Mac AND Windows. On the Mac platform, this allows you to call various OS related frameworks natively – unlocking a huge amount of routines.
See github.com/macoslib/macoslib which creates a bunch of Xojo “declares” for MacOS routines to access eg Bonjour services, Networking stacks, threads, Elevated Privileges authorisation etc.
I’m sure that having the ability to elevate privileges, or to enumerate bonjour services etc would be useful to someone … I’ve just never thought about it until now.
Regards,
Paul.
> On 26 Mar 2018, at 8:08 pm, Doug Easterbrook <doug@artsman.com> wrote:
>
> register dll/call dll were never released and I found it was missing in Studio 8. We don’t use it at all on the mac, only in windows (which also had varied history, as I understand).
>
> so Engineering only compiled the headers upon request so that we can put stuff into git instead of having code lines that look like x123124235 ( ) . That being said, since it appears that its a low use feature — might be why.
>
>
>
>
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug@artsman.com
> www.artsman.com
> Phone (403) 650-1978
>
>
>
>
> see you at the third annual users conference
> tickets.proctors.org/TheatreManager/95/online?performance=29086 <tickets.proctors.org/TheatreManager/95/online?performance=29086>
>
>> On Mar 25, 2018, at 7:27 PM, Paul Mulroney <pmulroney@logicaldevelopments.com.au> wrote:
>>
>> Hi Doug,
>>
>> Well there you go – did not know that!
>>
>> I wonder why they disabled it?
>>
>> Regards,
>> Paul.
>>
>>
>>> On 26 Mar 2018, at 9:12 am, Doug Easterbrook <doug@artsman.com> wrote:
>>>
>>> hi Gianni/Paul:
>>>
>>>
>>> well here you go. Register DLL and Call DLL actually work on OSC under studio 5.2.x This example comes direct from the help documentation.
>>>
>>>
>>>
>>>
>>> ; MacOSX framework to activate a system beep: CarbonSound.framework
>>> Calculate lPath as “/System/Library/Frameworks/Carbon.framework/Versions/Current/Frameworks/CarbonSound.framework/Versions/Current/CarbonSound”
>>> Register DLL (lPath,’SysBeep’,’JJ’)
>>> Call DLL (lPath,’SysBeep’,10)
>>>
>>>
>>>
>>> Note: this does NOT work on studio 8.1 of OSX. the registerDLL/CallDLL are only placeholders for windows functions so that you can export to git on the mac.
>>>
>>>
>>>
>>> Doug Easterbrook
>>> Arts Management Systems Ltd.
>>> mailto:doug@artsman.com
>>> www.artsman.com
>>> Phone (403) 650-1978
>>>
>>>
>>>
>>>
>>> see you at the third annual users conference
>>> tickets.proctors.org/TheatreManager/95/online?performance=29086 <tickets.proctors.org/TheatreManager/95/online?performance=29086>
>>>
>>>> On Mar 25, 2018, at 6:58 PM, Paul Mulroney <pmulroney@logicaldevelopments.com.au> wrote:
>>>>
>>>> Hi Gianni,
>>>>
>>>> There isn’t any way to call dylibs on a Mac – wouldn’t it be a good idea if the RegisterDLL/CallDLL could be used to call the dylibs on a Mac!
>>>>
>>>> Maybe someone should suggest to Omnis Tech Support as an enhancement?
>>>>
>>>> Regards,
>>>> Paul.
>>>>
>>>>
>>>>> On 23 Mar 2018, at 10:00 pm, Omnis Central <omniscentral@gmail.com> wrote:
>>>>>
>>>>> Hi,
>>>>> I’m looking for a way to call a dylib on Mac as well
>>>>> as I call a dll on Windows.
>>>>> Are there similar commands to RegisterDLL and
>>>>> CallDLL on the Macintosh?
>>>>> Should I put the dylib file inside the
>>>>> xcomp / external folders?
>>>>>
>>>>> Thank you all!
>>>>>
>>
>>
>> Is it wrong that only one company makes the game Monopoly?
>> —
>> Paul W. Mulroney We Don’t Do Simple Pty Ltd
>> pmulroney@logicaldevelopments.com.au Trading as Logical Developments
>> www.logicaldevelopments.com.au ACN 161 009 374
>> Ph: +61 8 9458 3889 86 Coolgardie Street
>> BENTLEY WA 6102
>>
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
Is it wrong that only one company makes the game Monopoly?
—
Paul W. Mulroney We Don’t Do Simple Pty Ltd
pmulroney@logicaldevelopments.com.au Trading as Logical Developments
www.logicaldevelopments.com.au ACN 161 009 374
Ph: +61 8 9458 3889 86 Coolgardie Street
BENTLEY WA 6102
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com