Mach-O V4RB?
Ruslan Zasukhin
sunshine at public.kherson.ua
Thu Feb 2 13:40:27 CST 2006
On 2/2/06 1:25 PM, "Dave Addey" <support at dj1800.com> wrote:
> I have a working approach for this for another MachO library I use at runtime.
> I have a copy of the dylib in the same folder as my project file, so it is in
> the same folder as my debug application when it is created. When I build a
> final version of my app, I copy the dylib inside the bundle, and reference the
> bundled copy of the dylib. Then, in RB I have the following declare code
> wherever I use the bundle (for example):
>
>
> #if DebugBuild
> Const kHIDLib = "@executable_path/../../../libHIDUtilities.dylib" // use
> the ³outside² copy
> #else
> Const kHIDLib = "@executable_path/../Frameworks/libHIDUtilities.dylib" //
> use the ³bundled² copy
> #endif
Wow, REALbasic allow control @executable_path ?!
This is good probably
> #if TargetMachO
> Declare Function HIDGetFirstDeviceElement Lib kHIDLib(inDevicePtr as
> integer, inElementTypeMask as integer) as integer
> return New HIDElement(HIDGetFirstDeviceElement(Data.Address,
> inElementTypeMask), Data.Address)
> #endif
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina-beta
mailing list