Mike Davis wrote:
> Are you saying that if I include 'pilot.h' that I can despense with
> using these below?
>
> #include <Common.h>
> #include <System/SysAll.h>
> #include <UI/UIAll.h>
> #include <DLServer.h>
>
> Well I included 'pilot.h' and removed the others; compiled and got
> these errors:
>
> APCalc.c:1392: `dlkUserNameBufSize' undeclared (first use this
> function)
> APCalc.c:1533: `dlkUserNameBufSize' undeclared (first use this
> function)
>
> So, it appears that I need more than just 'pilot.h'. That is why I
> asked for a place where I could get:
>
> Functions and which headers are required.
Yeah, pilot.h does not include DLServer.h (among others). Here's what I
do: I start with pilot.h. Then if I get errors, I grep the header files
to find which addtional one(s) I need to include. It's not as easy as
just looking at some documentation (think Unix man pages here), but
it's fairly quick and I don't have to do it too often.
You can automate it somewhat if you use bash (warning: my mailer
probably wraps the next lines)
PPINC=//d/Progra~1/GNUPal~1/m68k-p~1/include/PalmOS
export PPINC
alias posfind="find $PPINC -name '*.[hH]' -print | xargs grep"
Then to do the search I just say
posfind DlkGetSyncInfo
If I want a case-insensitive search:
posfind -i dlkgetsyncinfo
You get the idea.
--
Roger Chaplin
<[EMAIL PROTECTED]>