vb6-migration

Best Strategy for moving from VB6 to .NET [closed]

对着背影说爱祢 提交于 2019-12-28 03:06:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . My company has tons of legacy applications that are written in VB6. We are in transitions from moving VB6 applications to .NET (3.5

C# DLL cannot affect value of a number passed by reference from a VB6 application

大憨熊 提交于 2019-12-28 02:17:17
问题 I have a legacy VB6 application that calls a VB6 DLL, and I am trying to port the VB6 DLL to C# without yet touching the main VB6 application code. The old VB6 DLL had one interface that received a VB6 long (32-bit integer) by reference, and updated the value. In the C# DLL I have written, the updated value is never seen by the main VB6 application. It acts as though what was really marshalled to the C# DLL was a reference to a copy of the original data, not a reference to the original data.

Is there a way to programmatically convert VB6 Formatting strings to .NET Formatting strings?

ⅰ亾dé卋堺 提交于 2019-12-28 02:11:07
问题 Does anyone know of a good reference for VB6 format-strings? Does anyone know of a converter from VB6 formatting strings to .NET strings? I'm working on porting a large VB6 code base to .NET. It is a database centric piece of software, and the database itself holds VB6 format-strings which are later loaded and used to display other data in the database. My question, like this article, is how to port this. However the answer chosen for that question isn't adequate for my needs. I'm

How to overload operator + for const char* and int

∥☆過路亽.° 提交于 2019-12-25 05:49:05
问题 I know this is silly and ugly, but I'm migrating some code automatically. My source language allows implicit conversion between strings and ints, and for example this is allowed: var = "hello " + 2 print(var) # prints "hello 2" How can I in C++ overload the + operator for const char* and int ? I'm getting the error: error: ‘std::string operator+(char* const&, int)’ must have an argument of class or enumerated type 回答1: What you are asking for is illegal To legally overload an operator at

keep only GUI when converting vb6 app to c#?

扶醉桌前 提交于 2019-12-25 02:43:14
问题 I have a large VB6 app which I want to convert to C#. The majority of the code in VB6 is quite badly written. I thought that a good strategy would be to keep the GUI design since it is adequate and would be a pain to recreate. But I would want to rewrite the code behind the GUI and the data layer. I could keep the GUI design by using one of the VB6 to .NET converters provided by Microsoft. Would this be a good strategy? 回答1: There are several migration tool to perform a migration from VB6 to

vb.net taking too much time to load user control containing Label control array

ε祈祈猫儿з 提交于 2019-12-24 18:03:14
问题 I am upgrading user control from vb6 to vb.net. In the vb6 application I am loading 3000 labels using a label control array. In vb.net I am doing same but it's taking too much time to load. In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. What is problem? Why does it take too much time in vb.net for same work? Code is given below, here Led is the label control array. For l = 1 To 3000 Led.Load(ledCounter) ColLed.Add(Led(ledCounter)) Led(ledCounter)

vb.net taking too much time to load user control containing Label control array

梦想的初衷 提交于 2019-12-24 18:01:17
问题 I am upgrading user control from vb6 to vb.net. In the vb6 application I am loading 3000 labels using a label control array. In vb.net I am doing same but it's taking too much time to load. In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. What is problem? Why does it take too much time in vb.net for same work? Code is given below, here Led is the label control array. For l = 1 To 3000 Led.Load(ledCounter) ColLed.Add(Led(ledCounter)) Led(ledCounter)

Which is better VB6 to .NET converter?

佐手、 提交于 2019-12-24 11:59:38
问题 Is the VB6 to .NET upgrade wizard included in VS2008 better than the one in VS2005? UPDATE: I ran the same VB6 code through both upgrade wizards and VS2008 produced far less reported issues in the ugprade report. The upgrade wizard in VS2008 must be an improved version. 回答1: Both VS2005 and VS2008 use the same convertion utility. 来源: https://stackoverflow.com/questions/8194038/which-is-better-vb6-to-net-converter

equivalent for vb6.Format function in vb.net without using Microsoft.Visualbasic.Compatibility.dll [duplicate]

删除回忆录丶 提交于 2019-12-24 10:59:23
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Is there a way to programmatically convert VB6 Formatting strings to .NET Formatting strings? during migration from vb6 to vb.net the Format$(1234567, "###,###,###,###") function is converted to vb6.Format(1234567,"###,###,###,###") function, which is defined in Microsoft.Visualbasic.Compatibility.dll. I dont want to use Microsoft.Visualbasic.Compatibility.dll. Is there any equivalent for this in .NET. Thanks in

Class Not registered Exception

不羁岁月 提交于 2019-12-23 02:50:54
问题 Recently i migrate the project from vb6 to vb.net with framework 2.0 in visual studio 2008 in xp system it is working fine in that. After that i changed the framework to 3.5 and opened the project in vs2010 in xp only there also it is working fine for me. Now i changed my Operating system to windows 7. here i opened the project i got some issues i solved and then build it it is succeed. but when i am trying to run i got error like below An error occurred creating the form. See Exception