CDOpenDocument

Applies To:

ChemDraw Menu Extensions Interface:  Access Functions

Description:

Opens a document.

Syntax:

long CDAPI CDOpenDocument( long *documentToken,
                                                       const char *documentName
);

documentName a null-terminated string containing the name of the file to open.
documentToken a pointer to a document token representing the opened document if it is opened successfully.

Returns a long indicating success (0) or failure (!0) of the function.

Remarks:

This function must have ordinal number 5 in the Import Definition File.

If an error is returned, the DLL may call CDGetApplicationErrorString for a string explaining the error.

Example:

See Also:

CDGetApplicationErrorString


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA