LoadResourceFile()

Summary

Compiles a Caliper Script resource file.

Syntax

LoadResourceFile(string ui_db_name, string filename, string flags)

Argument Contents
ui_db_name The full path and filename, with the .dbdextension, of the UI Database into which the resource file is compiled
filename The full path and filename of the resource file that is compiled
flags User-defined compilation flags

Notes

  • If ui_db_name is null, the resource file is compiled into the current UI database.

  • If the UI Database or the resource file is in the program folder, the full path is not needed for that argument.

  • Only a macro that is part of the current interface can compile a resource file into the current interface.

  • The UI Database must already exist. To create a new UI Database, use the GISDK Toolbox or call the stand-alone version of the resource compiler; for more information, see Compiling Resources.

Example

LoadResourceFile(, "mymacros.rsc", )
LoadResourceFile(my_xfac, "mymenus.rsc", )

Error Codes

Error Type Meaning
Error There are errors in the resource file
NotFound The resource file does not exist