Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the distributed development of VB

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "VB development distributed how to understand", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "VB development distributed how to understand" it!

I. Overview

Activex is a set of standards developed by Microsoft for distributed computing, and its predecessor is known as ole automation. When distributed applications communicate over the network, activex can use two different mechanisms to respond to customer requests. One is called distributed component object pattern (dcom), which can only be used on windows nt and windows 95, and the other is remote Automation (remote automation), which can construct distributed applications in a 16-bit environment.

These two distributed mechanisms have extremely attractive characteristics: they are independent of the physical location of components. That is, when you construct an activex component, you don't need to know which machine it will be distributed on. The same component can be placed locally or distributed on other machines without having to recompile. In this way, we can easily adjust the distribution strategy of components according to the changes of network performance and network structure.

Of course, there are other advantages to using activex to build individual components of distributed applications:

The programming method of constructing remote components is exactly the same as constructing local components, without special engineering experience. You can use activex components to implement complex business rules on the server side. We have better means of programming, maintenance, and troubleshooting than using dbms (such as sql server) to do the same thing.

There are a large number of commercial components available. And there will be more and more such components. We only need to develop special business rules into components that can be used with purchased components.

II. Development and debugging

VB developing distributed components is the same as developing local components, and debugging can also be done locally, which is not discussed in this article. (you can see the example that comes with VB:\ sample\ clisvr\ booksale\ client\ book_cli.vbp client program;\ sample\ clisvr\ booksale\ client\ book_svr.vbp server program. When developing distributed server segment components, be aware of the following issues

The server-side project should be activex exe (an out-of-process activex component). It is also easy to understand that it is not possible to complete the same process on two machines, so it is not possible to use activex dll (in-process components).

Under the components section of the project properties dialog box, it should be set to remote server file. In this way, a vbr file is generated when the program is compiled, which is used when generating the installation disk. As we all know, the windows program is registered in the system registry, and this file is related to registration.

The class property should be set to mutiuse so that it can be used by multiple customer applications.

Thank you for your reading, the above is the content of "VB development distributed how to understand", after the study of this article, I believe you have a deeper understanding of VB development distributed how to understand this problem, the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report