the function prototype for INetLibOpen() looks like this:

            Err INetLibOpen (UInt16 libRefnum, UInt16 config,
            UInt32 flags, DmOpenRef cacheRef,
            UInt32 cacheSize, MemHandle* inetHP)

the last parameter appears to want a pointer to a MemHandle that i have
already created with MemHandleNew().  is this correct? assuming that it is
correct, i have several questions about declaring a MemHandle.


this is the memhandle prototype:

            MemHandle MemHandleNew (UInt32 size)

first, what size should my MemHandle be?  (how big a struct will be returned
by INetLibOpen?)

second, what kind of variable should i use to store the results of
MemHandleNew()?

third, why does this code result in a syntax error...   (the compiler
highlights the = as the cause)
            unsigned short inethndl;
            inethndl = MemHandleNew(32);

fourth, is there a better way to do this?

fifth, does anyone have a code example of the simplest, most default usage
of INetLibOpen?

thanks

-kail



-- 
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