Omnis5 – Using dylib — example using a framework.
Hi Doug,
I try your example but it doesn’t work for me
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)
The command Register DLL return 0 and all seems ok but Call DLL doesn’t
make any sound.
Any other ideas ?
Thks
2018-03-26 3:12 GMT+02:00 Doug Easterbrook <doug@artsman.com>:
> 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
> >
> > 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!
> >>
> >> Gianni
> >> _____________________________________________________________
> >> Manage your list subscriptions at lists.omnis-dev.com
> >> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
> >>
> >
> >
> > 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
> > 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
>
>
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com