| I. Overview: As we all know, the localization of vbprograms is a headache. Now the Chinese technology for VC and Delphi programs is quite mature and complete, but it is difficult to perfect a VB program. First of all, the strings to be Chinese in the vbprogram are very scattered and unordered, and contain a lot of Unicode characters. Currently, no tool can easily process it. Of course, this problem can still be solved. Strings can still be written in Chinese, but it is only a bit of trouble. The biggest headache is how to modify the font and font size of the Chinese character string. You can imagine how ugly it would be if a large block of Chinese text is in the English font 8! Since the last century, I have been studying the Chinese language. There have been basically no technical articles on the localization of vbprograms, and the problem of how to normalize and modify fonts has never been solved, it is truly a "difficult Century. I used to seek help from many programming experts for this purpose, but there was no result. Maybe VB is a bad programming tool. Why did the Experts use it. No way, I had to install a vb50 on my own, hoping to find some solutions. I thought it would take a lot of time to solve this problem, but it actually took some time ...... In two days, the font problem has been basically solved. I don't know whether the problem is too good or too simple. It's a little dramatic that the problem of the century has been solved, of course, it is hard to understand why no one has solved this problem for a long time? Ii. Some statements: Go back to the topic. Since it was solved within two days, naturally I cannot guarantee the absolute reliability and adaptability of this method. So let's first declare something: 1. The research tool I used is vb50, and the research programs are also compiled by vb50. Therefore, whether my method can be fully applied to programs compiled by vb60 or other versions of VB remains to be verified. However, I think the basic things should be generic, but the names of some related files may change. I will explain them in the following sections. 2. This Article only discusses how to modify the font name and font size. I will explain how to normalize strings in detail in future articles, this article does not cover. 3. The tool I used to modify the font is ultraedit 5.0. We recommend that you use it as well, because there is no more convenient tool. Of course, please note that its version is 5.0, and other versions of ultraedit are not recommended to you. 4. In line with the purpose of being sufficient, this article describes in detail all the problems I can think of in the process of modifying the font. I did not carefully study other projects that do not need to be changed, if you are a programming expert and want to compile a VB-based tool, contact me for further research. 5 ,...... I can't think of it anymore. Let's talk and think about it ...... Iii. Classification of strings: According to my analysis, from the perspective of font classification, I think there are usually two types of strings in a program compiled by VB. One is a string that clearly defines the font name and font size, and the other is a string that does not define the font name and font size. Two types of strings may exist in a vbprogram at the same time, or only one of them may exist. From the Chinese perspective, both types of strings can be Chinese and font modified. Of course, the first type of modification is easier. For strings without font definitions, it will be a little more troublesome. Next I will talk about it separately. 4. A font string has been defined: If a character string has clearly defined the font, it will be much easier to modify. In the vbprogram, characters indicating the font name and font size are usually followed by each defined string. Therefore, if you haven't found any font characters near the end of a string, the character string is not clearly defined :-) Let's see: |