The "Script_Save()" function is called when the user has selected the "Script save as..." from the "File" menu.
The function receive a file pointer as argument, it should then write a series of script commands to that file. These commands should be recognized by your parser and they should restore your module to the same configuration as it had when the save function was called. We also suggest that you write a short description of each command as comments (comment lines start with a semi-colon ";").
Syntax
extern "C" __declspec(dllexport) int Script_Save(
FILE *fd
)
Parameters
fd
File pointer f\to the target file.
Return value
The function returns 0 if an error occurred, 1 otherwise.
Remarks
This function is optional.
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
This is the "Script_Save" function for the "Morpho.dll" module.
See also