Home > database >  Pb dynamic loading PBD.
Pb dynamic loading PBD.

Time:09-28

Program has several modules, I'd like to do a framework program, enter the framework program, according to the permissions dynamically loaded modules, now use AddToLibraryList () can be loaded, but the original module's global variables can not call, who had done this thing, please give directions

CodePudding user response:

Global variables would be a problem, you put all of the PBL in an application directly (PBT) can

We 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 data

CodePudding 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 out

CodePudding 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 authority
Global 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
  • Related