c++ - What is the meaning of "extern PACKAGE TMyForm * MyForm" -


in c++builder xe2 ide place line of code in header file associated tmyform after tmyform class. i'm relates the fact of properties tmyform defined in myform.dfm , need linked executable somehow, can't find reference in documentation or online. googling "extern package" yields lot of code samples contain phrase.

strangely, commenting out doesn't seem have effect. deleted .res file , did rebuild , form works fine without it. seems negate assumption above.

extern tmyform *myform used declare global variable (which resides in form's .cpp file). variable points tform object @ runtime if configured auto-loaded @ app startup, or if assign manually in own code.

package macro expands __declspec(package), marks class being compilable in package, if ever choose use inside of package.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -