Develop green software with VB

xiaoxiao2021-03-06  21

The green software I think is free of installation, short-sized software, and most shared software is such a class (or close to the green software).

Even the relatively large Phoshop software also puts some registration items into a special registration file (REG file), which is reinabled, just imports the registry that the REG file is imported. In addition, such as Jinshan software, it is basically no installation to run.

At present, most of the sharing software is done with delphi. Although its Pascal syntax is awkward, you can still insist, the best reason is that it is very convenient to do green software, an EXE file basically gets all .

Use VC to share software, if it is based on API development (non-MFC), it is always a bit of killing chicken. The feeling of cow knife (current machine configuration is relatively high, shared software is generally applying applet, unlike servers, It is as high as performance requirements, and then, with VC development, the cycle is relatively long).

Although MFC is relatively fast, there is also a running library problem, making a dynamic link, the Windows 9X series cannot be used, compiled into a static link, the software size is expanded, more than 1m, is not rich in network bandwidth In the case, it is still less used.

Doing green software with VB, there are many introductions, but a slightly complex program, also bring a lot of dowry: VB runtime, OCX controls, etc. If the software also uses a database (such as ADO, DAO, etc.), Then you can make a green software or an unknown number.

However, VB is easy to go, the development software is more fast. If the API technology is better, most software can achieve better implementation. If you use VB to share the software, development is easy, but also increase extra income, why not?

But how can I solve the problem above? In conjunction with my experience and develop some green software, I will talk about my opinion, improper, please ask the family ax.

First, the problem for the runtime can be solved this. At present, most users are Win2000, XP platforms, and Win2000 platform Microsoft has added a running library to the system directory. (About this, Delphi users are very dissatisfied, think this is unfair competition, VB's runtime, MFC running library is integrated into the system, so Delphi is at least in the software size of the software that is far behind VB and MFC development software Therefore, this part of the user does not have to consider the issue of the running library. For the 9X series users, you can put the VB runtime on the Internet, and if you need it, let users download directly from the Internet. If you don't mind if you don't mind the software size, you can also release the running library with your software (directly put the running library to the same directory of the current software).

Although Microsoft does not support VB, as long as Windows's subsequent version is integrated with VB runtime, use VB to develop shared software or a big foreground (Microsoft's 100g .NET platform dare to integrate, more ways to have 1.25m VB operation What about the library? I am optimistic about this :)

Second, if you use VB to develop sharing software, I recommend using only VB's basic controls, do not use databases such as DAO, ADO, etc., if you operate, I suggest you define your database format (you can follow DBASE. Format), in the case where the amount of data is not large (such as 10,000 records), you can do this, the current user machine is relatively high, there is no need to consider too much performance issues. This way only needs to run the library to run the VB program, which can be run directly in Win2000 or higher. Third, the software interface is aesthetics, and you can use the image control to map, I have always love it. For multi-language versions, you can read the INI file method, you can also directly read the VC compiled pure resource file (you can refer to I write): VB Dynamic Load Pure DLL Resources (http://blog.9cbs.net /yefanqiu/archive/2005/03/16/320640.aspx).

Fourth, after the software development is completed, it is best to compress it with EXE compression software, there are two benefits, one is to add an obstacle to being cracked, the second is, the software size is greatly reduced, which is beneficial to the release.

Fifth, as for encryption, it is the benevolent to see the benevolence, the wise thing is wisdom, I don't have to talk more.

--------------------------------

Ye Fan CR Box, this is the green software I have developed with VB, you can change the language, you can also change the skin, I think it is not a program that is more than VC and Delphi.

Download address: http://www.sky-walker.com.cn/yefan/yfcodes.rar

Interested friends can have more opinions. My email: Yefanqiu@yahoo.com.cn yefanqiu@sohu.com

--------------------------------

转载请注明原文地址:https://www.9cbs.com/read-43550.html

New Post(0)