GithubHelp home page GithubHelp logo

pbox2's Introduction

PBox is a modular development platform based on Dll Form

I. Development purpose

Based on the principle of minimizing or not modifying the original project source code;
Support Delphi、VC、QT, Dll Form;

II. Development platform

Delphi10.3.3、WIN10X64;
The code does not use any third-party controls;
It refers to the OpenSource code Library,It is placed under the 3rdparty directory; directly referenced and does not need to be installed;
WIN7X64、WIN10X64 test pass;Support X86、X64;
Email:[email protected]
QQ   :101611228

III.Usage

Delphi:

  • Delphi original exe project, modified to DLL project. Output specific functions, the original code without any modification.
  • Put the compiled DLL file in the plugins directory.
  • Example: Module\SysSPath
  • Delphi function declaration:
 type
 {supported file types} 
 TSPFileType = (ftDelphiDll, ftVCDialogDll, ftVCMFCDll, ftQTDll, ftEXE);  
 procedure db_ShowDllForm_Plugins(
 var frm: TFormClass;
 var ft: TSPFileType;
 var strParentModuleName,
 strSubModuleName, strClassName, strWindowName, strIconFileName: PAnsiChar; 
 const bShow: Boolean = True); stdcall;

VC:

  • The original exe project of VC remains unchanged, and the EXE is compiled. Copy obj and res files generated by compilation (copy the entire directory);
  • Create a new xxx.cpp file and export the db_ShowDllForm_Plugins function. Compile and generate xxx.obj;
  • Link xxx.obj and the obj and res files generated by the original compiled exe to get the DLL file and put it in the plugins directory.
  • Example 1:DOC\VC\Dialog\7zip
  • Example 2:DOC\VC\Dialog\Notepad2
  • VC function declaration:
 enum TSPFileType {ftDelphiDll, ftVCDialogDll, ftVCMFCDll, ftQTDll, ftEXE};
 extern "C" __declspec(dllexport) void db_ShowDllForm_Plugins(
 void** frm, 
 TSPFileType* spFileType,
 char** * strParentModuleName,
 char** strSubModuleName,
 char** strClassName,
 char** strWindowName,
 char** strIconFileName,
 const bool show = true)

IV: Description of DLL output function parameters

 procedure db_ShowDllForm_Plugins(
 var frm: TFormClass;
 var ft: TSPFileType;
 var strParentModuleName,strSubModuleName, strClassName, strWindowName, strIconFileName: PAnsiChar;
 const bShow: Boolean = True); stdcall;

 frm                 :Delphi only. Dll main form class name in Delphi; VC NULL; 
 ft                  :Type of this Dll;Support: 
        ftDelphiDll   :The form DLL written by Delphi;  
        ftVCDialogDll :The form DLL written by dialog mode in VC language; 
        ftVCMFCDll    :The form DLL written by MFC    mode in VC language; 
        ftQTDll       :The Form DLL written by QT                language; 
        ftEXE         :EXE file with form;  
 strParentModuleName :Parent module name;  
 strSubModuleName    :Sub module name;  
 strClassName        :VC only; VC DLL main form class name; Delphi null;  
 strWindowName       :VC only; VC DLL main form title name; Delphi null;  
 strIconFileName     :Icon file; can be empty. In PBox configuration, select the icon;  
 bShow               :VC only; display DLL form or not; when VC DLL is called for the first time, it is not necessary to create a display DLL form, just to get parameters.  

V. Features

The UI supports menu display, button (dialog box) display and list view display.  
PBox also supports the display of an EXE form program in our forms. 
Support the EXE program of dynamic change of form class name. 
Support x86 program to call x64 program, x64 program to call x86 program.

Vi. Next work:

Add database support (because I am not familiar with the database, the development is slow, and it is developed in my spare time)  
Add support for VC MFC DLL / Qt DLL Forms;  

pbox2's People

Contributors

dbyoung720 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.