CodePudding user response:
Global variables would be a problem, you put all of the PBL in an application directly (PBT) canWe are currently developing programs generally have SanSiShiGe PBL, divided into the subsystem of the 20 or so, development of separate development,
At compile time is generally all added to the compiled in an application, and then the menu according to permissions dynamically create, very flexible
CodePudding user response:
Don't make it related to global variables, global variables with only a few can use global variables, and other global variables can through the way of object, at the time of loading PBL dynamic registration, such as a module called ZY, so he all use to global variables, you put a call n_zyglobal object, establish in the create using "n_zyglobal" build,CodePudding user response:
A general structure design, used to hold n_zyglobal types of dataCodePudding user response:
The second floor, the create using "n_zyglobal"In the execution
CodePudding user response:
You can do a generic method, through the configuration file is used to dynamic load PBL, according to the configuration file in general method is carried outCodePudding user response:
This function can be achieved? Friendship to help.CodePudding user response:
Never do this, generally all is PBD hang, through the menu divided authorityGlobal variables can be considered exe is put a user object that PBL (automatically instantiated), are defined in the user object
CodePudding user response:
"But the module's global variables cannot be called"This sentence refers to which the global variable cannot be used