|
Table of Contents
format_CreateDescriptionCreate an instance of a file format handler for a particular project map. This function, or format_CreateGeneric, must be called at least once by a file input/output plugin before it can be used to save or load map files. Function prototypeZFORMAT CExtAPI::format_Create(const char* lpMapName, const char* lpLongName, const char* lpFileExt, const char* lpNativeProgramName); Arguments
Return valueNull if an error occurred or the format already existed, and otherwise a valid ZFORMAT handle. CommentsValid project map names currently include:
More will be added in future. Example// create my format
ZFORMAT hFormat = theAPI.format_Create("Design map", "L3DT Design Map File", "dmf", "L3DT");
if(!hFormat) {
// do nothing; this probably means the format already exists.
} else {
// set the flags
theAPI.format_SetFlags(hFormat, true, false); // native I/O, but not mosaic
}
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
|