That is very understandable, Segments use Global Memory pointers, and those
are not available in shared libraries.
As for the original question, what I would do is follow the instructions to
create a plug-in, see the sample code at the knowledge base of palmos.com
(You might have to register, it's free). Then have the shared library open
the plug-in. The easiest way is to have each plug-in handle one external
function (or else it should have one external function, which should return
pointers to internal functions, but that will be complicated).
What I would do afterwards, is extract the code resource from the plug-in,
and add it as a resource to the shared library database with a unique ID (&
I suggest, a unique Resource type), that way you can have the library as a
single database.
This is only an idea, and I'm sure there are many other ways of doing it.
If you need more clarification, give me a holler.
LionScribe

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Flex
Sent: Friday, September 12, 2003 3:52 PM
To: Palm Developer Forum
Subject: Re: Multi-segmented Shared Library


MultiSegment shared library?
hm. I've splitted my to 2 parts but the first one has the functions
declarations from the second and they call the functions in the second...
that's ugly but all my tries to do a multisegment shared library with cw
failed. In fact I tried with gcc too, it compiles fine but crashes on
function call. no more ideas :(

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi all,
>
> I've seen an interesting implementation of a multi-segmented shared
> library splited into two or more .prc files. In this implementation all of
> the databases have the same creator id, and just one of them has the
> 'libr' type, the other ones are resources databases with just one resource
> type 'libr'.
>
> Does any body know how to implement this kind of libraries?
>
>
> Thanks in advance.
>
>



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to