Ben,
I downloaded Palm_SDK_Headers.zip from pluggedin.palm.com but didn't find any
mention of HsExtKeyboardEnable. I did, however, find mention of the systrap
HsSelExtKeyboardEnable, so when I added the following prototype to my own code:
Err HsExtKeyboardEnable (Boolean enable)
SYS_SEL_TRAP (sysTrapHsSelector, hsSelExtKeyboardEnable);
And compiled, I got the following message:
In file included from /PalmDev/sdk-5r4/include/Common/HsCommon.h:81,
from /PalmDev/sdk-5r4/include/68K/Hs.h:30,
from ../golog.c:8:
/PalmDev/sdk-5r4/include/Common/Libraries/PmKeyLib/PmKeyLibCommon.h:32:
palmOneSystemCommon.h: No such file or directory
I remedied this by adding
"$(SDK_LOCATION)/include/common/system"
to my list of includes for the compiler. After that, it compiled with no
problem.
Two questions:
1) did I miss something with the HsExtKeyboardEnable function? I would have
expected a prototype to be defined in the Palm SDK header files someplace.
2) I thought that the compiler would search everything under the /include
directory for the necessary headers. How come I have to add this directory to
my includes for the compiler?
Thanks for your help -
Dave Ek
-----Original Message-----
>From: Ben Combee <[EMAIL PROTECTED]>
>Sent: Apr 3, 2006 4:55 PM
>To: Palm Developer Forum <[email protected]>
>Subject: Re: Old Handspring headers?
>
>This header should be part of the current Palm add-on SDK from
>pluggedin.palm.com.
>
>On 4/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> All,
>>
>> I'm using a brand-new install of Palm OS Developer Suite and I'm trying to
>> compile an older Palm program as a 68K application. It was written to run on
>> a Handpsring Visor (as well as other Palm devices) and uses a function named
>> HsExtKeyboardEnable whose prototype is found via "HsExt.h" (this function
>> was used to disable the daemon that watched for a keyboard, so that the
>> serial port could be accessed by my app). Originally, I downloaded a package
>> of Handspring headers from the Handspring developer site. Is there a newer,
>> approved way of accessing this Handspring-specific function with the Palm OS
>> 5.4 SDK that's included with PODS?
>>
>> Thanks -
>>
>> Dave Ek
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/