Article # 209, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
What does the 'noload' keyword mean in the .gp file?
The 'noload' keyword means that the library doesn't automatically get loaded when your application starts up. However, if your application calls routines within the library, the 'noload' flag will be ignored by Glue. What noload does allow you to do is refer to constants defined within a given library without actually forcing that geode to be loaded. It's very handy when you want to share a data structure, but not actually share any code. If you do want to call routines within the library without Glue ignoring the 'noload' flag, you will need to access the routines via the library's entry point routine. Here's an example of how that is done: libHandle = GeodeUseLibrary( "mylibrary", MAJOR_PROTO, MINOR_PROTO, &errs ); funcPtr = ProcGetLibraryEntry( libHandle, entryNumber ); ProcCallFixedOrMovable_pascal( [function_parameters,] funcPtr ); Remember that you need to call GeodeUseLibrary to load the library before trying to call the routines.