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:

Framework contains all the global variable?

CodePudding user response:

Back to the 1st floor:
Is now module has been running for a long time, change of momentum is too big

CodePudding user response:

Global variables must be in the EXE file, or defined in PBL USEROBJECT when global object, it is ok to make the PBD in LIBRARYLIST, there is one possibility is that the original framework of global variables defined in your new PBL is different order, if do not change the EXE, only change the PBD, global variable must be the same, the definition of a new global variable must be defined in the final

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:

Global variables to estimate no,
Global variables defined in the application object

CodePudding user response:

No player?

CodePudding user response:

You can do a generic method, through the configuration file is used to dynamic load PBL, according to the configuration file inside the common methods to create an object, the object is written to a global array or data structure, use global variables are dynamically loaded modules in the dynamic creation object,

CodePudding user response:

This function can be achieved? Friendship to help.

CodePudding user response:

Didn't do it, for the top

CodePudding user response:

Don't quite understand what you mean
But there are a lot of permissions question better solution
  • Related