Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 6 - Types, Constants, and Global Functions / Global Functions


InitCyberdog

Creates and initializes Cyberdog and the global session object.

pascal OSErr InitCyberdog (Environment* ev, ODSession* session);
ev
A pointer to the SOM environment parameter used to pass exceptions.
session
A pointer to the ODSession object to associate with the CyberSession object.
return value
An error code.
DISCUSSION
Any part that calls Cyberdog methods should call this function during its initialization to initialize Cyberdog and create the global session object. An ODSession object must exist before a Cyberdog session object can be created. This function returns the error code noErr if the initialization was successful. You can also create the global session object by calling the CyberExtension::CreateCyberSession method.

SEE ALSO
The CyberExtension::CreateCyberSession method (page 219).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996