Omnis5 – Using dylib — example using a framework.
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.
see you at the third annual users conference
> On Mar 25, 2018, at 6:58 PM, Paul Mulroney <firstname.lastname@example.org> 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?
>> On 23 Mar 2018, at 10:00 pm, Omnis Central <email@example.com> wrote:
>> 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!
>> Manage your list subscriptions at lists.omnis-dev.com
>> Start a new message -> mailto:firstname.lastname@example.org
> Took my dog to a bonfire and as he sat there staring at it blankly I realized he loves sticks. I was burning a giant pile of his toys. (onelinefun.com)
> Paul W. Mulroney We Don’t Do Simple Pty Ltd
> email@example.com 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:firstname.lastname@example.org