vb6-migration

Debug an active x dll in vb6

天大地大妈咪最大 提交于 2020-05-17 07:24:10
问题 i am trying to debug an application in vb6 which has output type ActiveX Exe , and have reference of active dll , i have tried changing to binary compability for both of projects. but i am not able to step into that activex dll project code. can you help me with step into other project dll and debug code ? i have even tried creating project group but even i am setting up Exe project as start up , i think it is trying to run dll project first and giving an error. 来源: https://stackoverflow.com

Converting VB6 Custom Type (with Fixed Length Strings) to VB .NET

本秂侑毒 提交于 2020-01-21 09:42:05
问题 I have upgraded some VB6 code, which uses fixed length strings in custom types, to VB .NET by using the UpgradeWizard and am having trouble with the use of the LSet method that I was hoping someone could help me out with. The Existing VB6 code (type declarations); Public Type MyType PROP1 As String * 15 PROP2 As String * 25 End Type Public Type MyTypeBuffer Buffer As String * 40 End Type Example usage; LSet instOfMyTypeBuffer.Buffer = ... LSet instOfMyType = instOfMyTypeBuffer What would be

Uprading VB6 MSFlexGrid to VB.NET

狂风中的少年 提交于 2020-01-14 02:55:20
问题 I want to upgrade MSFlexGrid to .net datagridview, what is equivalent code for these code?? With gridview If .Row > .FixedRows Then bDoNotEdit = True .Row = .Row - 1 bDoNotEdit = False End If If .Row < .Rows - 1 Then bDoNotEdit = True .Row = .Row + 1 bDoNotEdit = False End If End With 回答1: While VS 2008 and earlier can migrate a VB6 application to .Net, it won't use the .Net idioms (particularly the better databinding functionality). VS2010 removed the migration wizard. The real question here

Uprading VB6 MSFlexGrid to VB.NET

為{幸葍}努か 提交于 2020-01-14 02:55:05
问题 I want to upgrade MSFlexGrid to .net datagridview, what is equivalent code for these code?? With gridview If .Row > .FixedRows Then bDoNotEdit = True .Row = .Row - 1 bDoNotEdit = False End If If .Row < .Rows - 1 Then bDoNotEdit = True .Row = .Row + 1 bDoNotEdit = False End If End With 回答1: While VS 2008 and earlier can migrate a VB6 application to .Net, it won't use the .Net idioms (particularly the better databinding functionality). VS2010 removed the migration wizard. The real question here

VB6 to VB.net conversion [closed]

孤街醉人 提交于 2020-01-09 05:36:34
问题 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 . Exact duplicate: Best strategy for moving applications from VB6 to VB.Net Exact duplicate: Conversion tool comparisons for VB6 can any

Convert VB6 Scripting.Dictionary to .NET Generic Dictionary

喜欢而已 提交于 2020-01-02 13:58:31
问题 Currently im working on wrapping and converting some old VB6 code to .NET and i need to be able to use the scripting.dictionary returned by huge old price of VB6 code. I want to convert this to the .NET generic Dictionary(Of TKey, TValue) 回答1: The solution is to write an extension method for scripting.dictionary to convert to a .net Dictionary(Of TKey, TValue) VB.NET <Extension()> Public Function ToDictionary(Of T, T2)(dic As Scripting.Dictionary) As Dictionary(Of T, T2) Return dic.Cast(Of

Convert VB6 Scripting.Dictionary to .NET Generic Dictionary

喜夏-厌秋 提交于 2020-01-02 13:58:11
问题 Currently im working on wrapping and converting some old VB6 code to .NET and i need to be able to use the scripting.dictionary returned by huge old price of VB6 code. I want to convert this to the .NET generic Dictionary(Of TKey, TValue) 回答1: The solution is to write an extension method for scripting.dictionary to convert to a .net Dictionary(Of TKey, TValue) VB.NET <Extension()> Public Function ToDictionary(Of T, T2)(dic As Scripting.Dictionary) As Dictionary(Of T, T2) Return dic.Cast(Of

Equivalent of “Dim As String * 1” VB6 to VB.NET

被刻印的时光 ゝ 提交于 2020-01-01 09:34:09
问题 I have some VB6 code that needs to be migrated to VB.NET, and I wanted to inquire about this line of code, and see if there is a way to implement it in .NET Dim strChar1 As String * 1 Intellisense keeps telling me that an end of statement is expected. 回答1: That's known as a "fixed-length" string. There isn't an exact equivalent in VB.NET. Edit : Well, OK, there's VBFixedStringAttribute , but I'm pretty sure that exists solely so that automated migration tools can more easily convert VB6 code

What does the Attribute keyword do in VB6?

我与影子孤独终老i 提交于 2020-01-01 05:39:20
问题 I am converting some VB6 code to VB.Net. Since my VB6 installation appears to be damaged beyond repair I am using Notepad to read the original source code and can see at near the top of the file:- Attribute VB_Name = "clsBulge" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_PredeclaredId = False Attribute VB_Exposed = False Attribute VB_Description = "Some text here" Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes" Attribute VB_Ext_KEY = "Member0" ,

Utility to Convert Legacy VB6 Function Calls to .NET [closed]

拟墨画扇 提交于 2019-12-31 03:03:13
问题 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 . I am looking for a utility/tool to convert calls to legacy VB6 functions to the .NET equivalent. For example, it would convert this...