本文介绍了VB6到VB.NET,请评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序实时接收并显示心音和心电图。

此数据来自专有的USB 2.0设备。与大多数USB设备不同,

这些数据的发送时间短,大约为24字节。这些爆发可以快到每毫秒



声音和ECG迹线的显示类似于示波器

显示除了大约5个像素的空白区域,因为它扫过屏幕上的
。这意味着,对于每个数据突发,不仅为每个

跟踪绘制了六条水平线,而且接下来的六条现有水平线要消隐




以上相当于每分钟300次心跳(BPM)。这很容易由我的VB6应用程序处理



使用VB2005 Pro我试图转换这个VB6应用程序。截至目前,我使用

共享内存,一个进程中的线程来从USB捕获数据和一个

ActiveX线程来与USB接口。我试图用GDI,DirectX等绘图




我能得到的最好的是15 BPM的心率。


我正在考虑在我的ActiveX线程中进行绘图。实际上,所有数据捕获和绘制都是通过VB6完成的。

但是,如果我这样做,那么VB2005部分将成为其中一个使用命令按钮和文本框等显示表单

但是我的VB6应用程序已经这样做了。


所以我的问题是,有什么好处的?将此应用程序转换为VB.NET?


显然我可以在我的VB6应用程序上使用Interop Toolkit,而不是将

转换为VB2005。这样做有什么好处?


另外,99%的客户让我们购买电脑并安装

软件。厂。然后将计算机运送给他们。所以没有

安装问题。


我将不胜感激或赞成任何意见。


谢谢


Galen

My application receives and displays Heart sounds and ECG''s in real time.
This data comes from a proprietary USB 2.0 device. Unlike most USB devices,
this data comes in short bursts of about 24 bytes. These bursts could come
as fast as every millisecond.

The display of the sound and ECG traces is similar to an oscilloscope
display except a blank space of about 5 pixels is shown as it sweeps across
the screen. This means that not only is six horizontal lines drawn for each
trace, for each data burst, but the next six existing horizontal lines have
to be blanked.

The above equates to around 300 Heart Beats per Minute (BPM). This is easily
handled by my VB6 application.

Using VB2005 Pro I have attempted to convert this VB6 app. As of now I use
shared memory, an in process thread to capture data from the USB and an
ActiveX thread to interface with the USB. I have attempted to do the drawing
with GDI, DirectX, etc.

The best I can get is a 15 BPM heart rate.

I am contemplating doing the drawing in my ActiveX thread. The idea being
that all of the data capture and drawing is, in effect, being done via VB6.
But if I do this then the VB2005 portion becomes one of just showing forms
with Command buttons and Text boxes etc. But my VB6 app already does this.

So my question is, what''s the benefit of converting this app to VB.NET?

Apparently I can use the Interop Toolkit on my VB6 app instead of converting
to VB2005. What''s the benefit in doing that?

As an aside, 99% of the customers have us buy a computer and install the
software at the factory. Then the computer is shipped to them. So no
installation problems.

I would appreciate any comments pro or con.

Thanks

Galen

推荐答案



没有什么可以说你必须将VB6遗留应用程序

转换为VB.Net。如果它作为一个VB6应用程序更好,那么保持它为

这样,直到你被迫转换它。仍然有很多VB6

解决方案仍然在那里运行很长一段时间,因为不需要转换为.Net的各种原因。 br />

俗话就是这样。如果它没有坏掉,那么你就不会修复它。


但是,如果你需要将这个解决方案部署到Vista机器上,那么你就是

可能需要转到VB.Net才能生成一个.Net清单,用于
Vista的UAC。

There is nothing saying that you have to convert the VB6 legacy application
to VB.Net. If it works better as being a VB6 application, then keep it as
such, until you are forced to convert it. There will still be plenty of VB6
solutions still running out there for various reasons for a long time to
come that will have no need to be converted to .Net.

The old saying goes like this. If it''s not broke, then you don''t fix it.

However, if you need to deploy this solution to a Vista machine, then you
might need to go to VB.Net with its ability to produce a .Net manifest for
Vista''s UAC.





没有什么可以说你必须将VB6传统的

应用程序转换为VB.Net。如果它作为一个VB6应用程序更好,那么

然后保持它,直到你被迫转换它。仍有大量的VB6解决方案仍然存在,因为各种原因

a很长一段时间没有必要转换为.Net。


俗话就是这样。如果它没有坏掉,那么你就不会修复它。


但是,如果你需要将这个解决方案部署到Vista机器上,那么你就是

可能需要转到VB.Net,能够为
Vista的UAC生成.Net清单。


There is nothing saying that you have to convert the VB6 legacy
application to VB.Net. If it works better as being a VB6 application,
then keep it as such, until you are forced to convert it. There will still
be plenty of VB6 solutions still running out there for various reasons for
a long time to come that will have no need to be converted to .Net.

The old saying goes like this. If it''s not broke, then you don''t fix it.

However, if you need to deploy this solution to a Vista machine, then you
might need to go to VB.Net with its ability to produce a .Net manifest for
Vista''s UAC.



我将写入的数据文件拆分到一个单独的文件夹中。添加了一个清单

文件,Vista上的VB6应用程序正常运行


Galen

I split the data files, written to, into a separate folder. Added a manifest
file and the VB6 app runs fine on Vista

Galen


这篇关于VB6到VB.NET,请评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 20:57
查看更多