Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

VB6 package manager,Like NET's nuget.exe and Python's Npm.exe

$
0
0
Similar to nuget.exe for.NET or Npm.exe for Python, the required files and configurations for a component or control can be downloaded and automatically added to the project (or removed entirely).For example, the source code of newtab.ocx requires 22 files (including forms frm, module bas class and other files), and RC6.DLL requires auxiliary files such as SQLITE.DLL.

Name:  VB6_addin_addocxDLL.jpg
Views: 18
Size:  51.7 KB

If each such project had a separate JSON native file, it would be convenient to import it with one click of code.
For example, each open source control, class module and other projects, fixed a download website, in this file there is the update date, the latest update content, version number,ZIP download website and other information.
Similar to how Google plugins are configured.
For example, each VB project of GITHUB saves a local file, VB6 programmers can use code to detect whether the version is updated, you can write code to automatically download and decompress.
Or have a professional package manager ADD-IN that automatically detects updated plug-ins.
It is mainly necessary to have such a website space (10-50GB) capacity, which can save multiple different OCX controls or source code project files

When writing code and debugging in the VB6 IDE, you can choose to load OCX controls to improve debugging speed and stability.
(There are many Usercontrol source code subclassing and other procedures, will cause IDE crash and other unknown errors)
When formally compiled into the final executable file, you can save a new project, add the required modules, classes and other source files, compiled to generate an independent application EXE..

Methods for automatically importing components into a new project (write a VB6 ADD-IN) :
There is a sample DEMO.VBP project that contains all the required files, as well as the TLB and other DLLS that need to be referenced,OCX
To add this component to a new project, read the sample project and component configuration file, add all modules and other source files, reference the relevant DLL,ocx.

The download is a simple test, you are welcome to add more features
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles