打破VB6项目成块使用Artinsoft免费版 [英] Break VB6 project into chunks to use free version of Artinsoft

查看:123
本文介绍了打破VB6项目成块使用Artinsoft免费版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个大的(200K线)VB6项目转换为C#。我只想表单设计进行转换,因为我想重写在C#中所有的实际代码。

I am trying to convert a large (200K lines) VB6 project into C#. I only want to convert the form design because I want to rewrite all the actual code in C#.

我想使用免费Artinsoft转换器,但这仅允许10K项目线。我想,我就能把VB6的项目为20个不同的项目,然后用Artinsoft,然后将转换的形式回成一个C#项目生成C#.NET形式。

I want to use the free Artinsoft converter but this only allows projects of 10K lines. I am thinking I could break the VB6 project into 20 separate projects and then generate the C#.NET forms by using Artinsoft, then bringing the converted forms back into one C# project.

这是可行的。

编辑:将这项工作?有什么潜在的问题?

Will this work? What are the potential problems?

推荐答案

我建议不要使用转换器的用户界面。它可能看起来微不足道,但也有功能,根本就没有在.NET本身存在(控件数组不为一个大的包装)。 。它创建控件封装不使用乐趣,也维持

I would advise against using a converter for the UI. It may seem trivial, but there are features that simply do not natively exist in .NET (control arrays without a wrapper for a big one). And the control wrappers it creates are not fun to use nor maintain.

VB6不端口好;用户界面也没有的代码。如果你要继续沿着这条道路,有事情,可以帮助。

VB6 does not port well; the UI nor the code. If you were to continue down this path, there are things that can help.


  1. 删除所有未使用的形式和代码

  2. 确保没有控件数组,如果有,正确的相关代码

  3. 获取包裹在班

  4. 所有的逻辑
  5. 确保你没有要求/加载/直接引用的形式和您正在使用一个实例化的对象

  6. 确保良好的封装实践在使用和良好的面向对象设计模式

  1. Remove all unused forms and code
  2. Ensure there are no control arrays and if there are, correct related code
  3. Get all logic wrapped in classes
  4. Ensure you are not calling/loading/referencing forms directly and that you are using an instantiated object
  5. Ensure good encapsulation practices are in use and good object oriented design patterns

我会认真考虑的转换。转换后的代码/ UI听起来不错,但在我用VB6转换不好的经验,也有因为根本不存在了开发商要和功能的不良VB6如何让这么多的问题。

I would seriously reconsider conversion. Converted code/UI sounds great, but in my bad experiences with VB6 conversion, there are so many problems because of how bad VB6 allowed developers to be and features that simply don't exist anymore.

帮自己一个大忙...开始一个新项目,创建一个从您使用标准控件继承的自定义控制库,并使用这些无处不在。不喜欢Cliptext工作在C#与VB6一个蒙面的文本框的方式吗?扩展或覆盖它。希望所有的列表视图可排序?简单,单点实现。该企业希望拼写检查的文本框的90%,每年发现的?很简单。

Do yourself a huge favor... Start a new project, create a custom control library that inherits from the standard controls you use, and use those everywhere. Don't like the way Cliptext works on a masked textbox in C# versus VB6? Extend it or override it. Want all your listviews to be sortable? Easy, single-point implementation. Find out in a year that the business wants spell checking on 90% of textboxes? Easy.

这篇关于打破VB6项目成块使用Artinsoft免费版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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