遥控应用 [英] Remote Control application

查看:64
本文介绍了遥控应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以用vb开发一个远程控制应用程序,以及在哪里可以找到任何信息?

I was wondering if it's possible to develop a remote contol app with vb, and so where to find any info?

谢谢

托尼

推荐答案

托尼,

是的,非常有可能远程控制应用程序;不过,这并非易事.这在很大程度上取决于您要做什么. Windows中已经有一些应用程序具有这种功能,而Windows中的某些服务也具有这种功能.例如,如果您希望能够监视远程计算机上的资源(例如硬盘可用空间,CPU使用率和内存使用率),那么您可以研究WMI服务.另一个示例是,如果您想将数据远程插入数据库中,则需要查看提供远程登录和远程任务(例如SQL Server,Oracle,MySQL等)的数据库系统.在大多数情况下,您可以找到书面材料来告诉您如何执行常见任务.在许多情况下,已经有一个应用程序可以执行您想要的操作或可以将其配置为执行您想要的操作.例如,检测目录中是否存在文本文件,然后将其内容加载到数据库中;您将使用SQL Server 2005并使用名为SQL Server集成服务(SSIS)的服务进行阅读.如您所见,有很多方法可以解决此问题,当然,尝试创建自己的应用程序来执行简单的任务总是很有趣的!

Yes it is very possible to control an application remotely; no easy task though. A lot of it depends on what you want to do; there are some applications that already give you this power and some services within Windows that will also give you the power. An example would be if you were to want to have the ability to monitor resources on a remote computer, such as Hard Drive Free Space, CPU Usage, and Memory Usage, then you would look into WMI Services. Another example would be if you want to insert data remotely into a database, then you'd look into a database system that offers Remote Login and Remote Tasks (such as SQL Server, Oracle, MySQL, etc). In most cases, you can find written materials that tell you how to do common tasks; and many cases there is already an application out there that can do what you want or can be configured to do what you want. Such as detecting if a text file exists in a directory and then loading its contents into a database; you'd use SQL Server 2005 and read into using the service called SQL Server Integration Services (SSIS). As you can see there are many ways to go about this, and of course it's always enjoyable to try to create your own application to perform simplistic tasks!

您将克服许多障碍,例如如何正确设置远程客户端和远程主机的安全性,侦听远程连接,使用以下方法来回传递数据(例如命令和状态通知)线程,序列化等.

You will have many obstacles to overcome, such as how to properly setup the security of the remote client and remote host, listening for remote connections, passing the data (such as commands and status notifications) back and forth using threads, serializing, etc.

仅从编程的角度来看,您可能希望研究Windows Management Instrumentation(WMI),Windows Services和Windows Communication Foundation(WCF).根据您用来开发应用程序的方法以及应用程序需要执行的操作,这些角色将扮演最大的角色.

From a programming standpoint alone, you will probably want to look into Windows Management Instrumentation (WMI), Windows Services, and Windows Communication Foundation (WCF). Those will be the biggest roles depending on the method you use to develop the application and what the application needs to be able to do.

我建议从一本专门研究Windows Services或Windows Communications的书开始.一个示例是Microsoft Press的使用Microsoft Visual Basic 2008对Windows服务进行编程".有很多书籍涵盖了这些主题,而且有很多书籍仅涵盖了这些主题.看看您当地的书店和在线书店(例如Amazon.com或BarnesAndNoble.com).此外,在msdn.microsoft.com上搜索诸如"Remote App","Remote Connections"和"Remote Services"之类的关键字.没有真正的1(或很少的文档)可以涵盖整个主题,您可能必须分解应用程序设计的每个部分,然后进行研究,例如,研究侦听远程连接"或创建远程连接"或远程连接的安全性".

I'd recommend starting off with a book that specializes in Windows Services or in Windows Communications. An example would be by Microsoft Press, "Programming Windows Services with Microsoft Visual Basic 2008". There are many books that cover these topics, and many books that cover ONLY these topics. Take a look around at your local bookstore and online bookstores (like Amazon.com or BarnesAndNoble.com). Also, search msdn.microsoft.com for keywords such as "Remote App", "Remote Connections", and "Remote Services". There is no real 1 (or few documents) that will cover the entire topic, you will probably have to break down each section of the application design and do research on that, such as doing research on 'Listening for remote connections', or 'Creating Remote Connections', or 'Security for Remote Connections'.

如前所述,要使完整的远程应用程序运行起来并非易事.您会发现,使用预期的服务或为此目的而设计的应用程序(Windows XP中内置的远程桌面连接的示例)可以最好地处理基本操作.

As stated earlier, this is no simple task to get a full blown remote application going. You'll find that basic operations are best handled using either intended services or applications that were designed for this (example of Remote Desktop connections that are built into Windows XP).

我希望以上内容能对您有所帮助,

I hope the above helps,

詹姆斯


这篇关于遥控应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆