I'm doing some testing on a plugin based on the plugin-1 example.
Currently I've to write a sync client, and I'm trying to implement a plugin
system.
Starting from the example code I've added some code to open the Net library,
but this fail:
Char l_pcLibrary[20];
StrCopy(l_pcLibrary, "Net.lib");
error = SysLibFind(l_pcLibrary, &l_pstGlobals->u16AppNetRefnum);
where globals is a struct, containg global variables of the plugin (they
lives in a MemHandle linked to a feature).
My programs can't find the requested library...
puttting a breakpoint after the StrCopy string I've seen that l_pcLibrary is
empty... if I change it's value (in the CW debugger) to "Net.lib", the
program finds the Net library.
So far, it seems to me that I'm loosing something important about where my
code lives. And what I can (or can't) do.
There is something that I've oversight in the plugin-1 example (limits on
the code that can be used in this conditions)?
Other solution it to write a SharedLibraries, I've already done that with
much less problem...
Best regards
Pietro F. Maggi
--
The users I like the most are the ones who try to
find the ANY key. (You know, when the docs say to
hit any key...).
Paul Yao
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/