"Avilla, Dane" <[EMAIL PROTECTED]> wrote in message
news:76621@palm-dev-forum...
>
> Greetings all,
>
> I'm kicking myself for not asking this last week, but I had forgotten
to
> write it down (doh) so here goes:
>
> I've got a shared library I use, and it's just a .lib file with some
.h
> files I include in my code.  I'd like to get CW to hilite the lib
functions
> along with the OS functions and my app's functions.  Any idea how I
can get
> CW to recognize and hilite the functions in the lib, which are defined
in a
> .h file?
>
> (And yes, I recognize I can just put them into a custom keyword set,
but I
> don't think that's the "best" way of doing things :)

Isn't that a static library?  A .lib file that you link against your app
is static.  A PRC that you call dynamically is shared.

The browser only currently works with function definitions.  The Palm OS
headers work by accident -- all those prototypes are really inline
function definitions that insert assembly to call a system trap.

To get highlighting for your library in your project, you need to add
the library's build project to your client project.  This has two
benefits.  First, it links the browser databases, so you can browse
through the symbols defined in the library.  Second, you can set it up
so that you get your library rebuild automatically if source it depends
on is modified by marking the dependency between the projects.  You do
this on the targets tab by putting arrows on the subtargets you depend
on.



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

Reply via email to