I am in the process of creating my first shared library. I cannot seem to
open it though!?!
The following output is from the debug console, it shows the shared
libraries installed:
*begin debug console output
dir -t libr -tc
^
name ID total data type creator
----------------------------------------------------------------------
ACopLib 001FED51 2.584 Kb 2.478 Kb libr ACLB
SampleLib 001FED4D 2.636 Kb 2.530 Kb libr SL??
Net Library 00D207E2 86.968 Kb 86.780 Kb libr netl
----------------------------------------------------------------
Total: 0
*end debug console output
There are three libraries in my Palm III. The only one that I can open is
the "Net Library" .
Interestingly enough the following SysLIbFind fails. If anyone can give me
some
pointers here, I would appreciate it!!!!!!
The code below is my actual code with comments about success or fail for the
pertinent functions.
*begin code example
Ret_Code = SysLibLoad('libr', 'netl', &ACopLibRef); // Success -
Ret_Code == 0
Ret_Code = SysLibFind("Net Library", &ACopLibRef); // Fail - Ret_Code
== sysErrLibNotFound
Ret_Code = SysLibLoad('libr', 'SL??', &ACopLibRef); // Fail -
Ret_Code == sysErrLibNotFound
Ret_Code = SysLibFind("SampleLib", &ACopLibRef); // Fail - Ret_Code
== sysErrLibNotFound
if ( SysLibFind(ACopLibName, &ACopLibRef) != 0 ) // Fail -
Ret_Code == sysErrLibNotFound *** This one expected ***
{
Ret_Code = SysLibLoad('libr', 'ACLB', &ACopLibRef); // Fail -
Ret_Code == sysErrLibNotFound
if (Ret_Code != 0)
{
if (Ret_Code == sysErrLibNotFound)
FrmCustomAlert(LibLoadErrAlert,
"Unable to load required library \"ACopLib\"", NULL, NULL);
else if (Ret_Code == sysErrNoFreeRAM)
FrmCustomAlert(LibLoadErrAlert,
"Unable to load required library \"ACopLib\": no free RAM",
NULL, NULL);
else if (Ret_Code == sysErrNoFreeLibSlots)
FrmCustomAlert(LibLoadErrAlert,
"Unable to load required library \"ACopLib\": no free
library slots",
NULL, NULL);
else
FrmCustomAlert(LibLoadErrAlert,
"Unable to load required library \"ACopLib\": undefined
error",
NULL, NULL);
// Exit app
event.eType = appStopEvent;
EvtAddEventToQueue(&event);
}
}
*end code example