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

How do I upgrade to a new version of an OCX control from source or a third party?

$
0
0
Many examples of source code downloaded from the website.
Some old controls are used, and the controls are lost when the project is opened.
can automatically upgrade to a new version?

File size is not important. Just to study why this is the case?
The follow test remove that property page. user can save hundreds of kilobytes of space.
When compiling to exE, the choice of running faster or reducing the size of the compilation will also cause the final size of the software to change.

I can accept a 500mb webview2 win7 browser kernel.

I mainly focus on how to load some third-party controls with source code and related files into the new project at one time.
For example, like VB6, if it is continuously updated, it may eventually cause the installation package to reach 5 GB in size. 20gb

If in the process of development. Save some older versions that are more stable.
Like control version 1.0, 2.0, 3.0.
Maybe 1.0 might only be 200KB. Version 2.0 reaches 500KB, and version 3.0 reaches one megabyte.
rc3.dll,rc5.dll,rc6.dll
The old version can be easily registered on a computer, and the new version is more difficult to register on a few computers.
Some people need some simple tab control functions, and it is possible that his earliest version is enough to use.


If a control is used on the user's project. Significant changes have been made in subsequent versions. If you use a lot of attributes, you can also set them.
If the new version attribute name has also changed, it may not be possible to upgrade directly.

In fact, it has a common API interface when reading and writing properties.
If these attributes can be saved directly as a text file, it is also a good way.For example, the set image or the style ID.
Distinguishing keywords, such as form name, control name.

One of the most convenient uses is to turn these attributes directly into VB code.
Ordinary users do not use these functions at all.
I am developing A plug-in that can manage multiple different source code controls.
Just like some people do, some old versions of Enterprise Edition controls are replaced with new ones. If you just modify the guid or attribute of the vb6 project, it is also relatively simple.

Otherwise, the control may be lost. To add the control again, set many properties manually.

Previously, someone studied how to read the configuration file of the form, which is in encrypted format, and save the images of the controls on the form, as well as various properties.
Is there also a way to pass directly? Save the properties of the control at runtime.
Or use the VB6 plug-in to read out the control attributes.

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>