New topic: 

embedding a library in project

<http://forums.realsoftware.com/viewtopic.php?t=37385>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Schmurfy          Post subject: embedding a library in 
projectPosted: Wed Feb 02, 2011 7:34 am                         
Joined: Tue Sep 23, 2008 4:33 am
Posts: 12                Hello,
I want to add functionalities to my application by using an external library 
with declares.
I already managed to make everything works in test condition but my problem 
comes from a really little thing:
How can tell a declare statement to use a library in a relative path (inside my 
application folder as a resource) ?

I currently have this:
Declare Function my_func Lib "/full/path/to/library.dylib" ( ... ) as Int32

but I cannot use a variable in it, what I wish to write is:
path = "relative/path/to/library.dylib"
Declare Function my_func Lib path ( ... ) as Int32

Is there a way to do something similar ?


The reason I want to do this is really simple: I have a library already 
compiled for linux, windows, etc... and it works quite well using declare, the 
other alternatives would be to create a plugin linked to the library but since 
it is a dynamic library I am still screwed (I don't want my users to have to 
install anything) or to include the library code in my plugin which means to 
battle with the build system.

The plugin license allow any of the choices I mentioned there.
Thanks for any advice.   
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to