Hi,
I have a decryption routine in VB6. I now want the same decryption in C#.
The strings that need decryption are in unicode, so I use Encoding.Unicode.GetString to read the input in C#. The input now looks exactly the same as in VB6.
The first few characters in the loop are decrypted ok! Then I encounter a difference...
The program ...
We migrated from VB 6 to VB.NET 2008. Convertion went fairly well. There is one issue with exception.
The following line in the InitializeComponent throws exceptions.
Me.dirSelector = New Microsoft.VisualBasic.Compatibility.VB6.DirListBox
The exception message says that "Invalid Property value". It happens only once. After that every...
I am replacing a VB6 application with a rewritten counterpart in VB.Net.
In the VB6 app there was a 'control' application which presented a form to the user and allowed them to select a 'client' from a drop down list. Selecting a client caused the reading of an ini file which set client-specific parameters, including the program names of...
I converted some code from vb6 to vb2005 that opens a recordset and populates a listbox
with about 8,000 names. It uses classic ado.
The vb6 code does it in about 0.75 of a second, the first vb2005 code does it in about
5.5 seconds while the second vb2005 code does it in about 4.5 seconds.
Is there any way to improve the vb2005 performa...
AFAIK ado.net datareaders and datasets don't seem to support joins in sql statements.
Is it possible to retrieve the ado.net equivalent of this ado recordset using just the information presented in this ado/vb code :
I am asking the question this way as I am trying to largely automate the conversion
of ado to ado.net
Dim myconn As...
I am upgrading a VB6 to VB.NET project using the upgrade wizard. I know this is going to give me a lot of grief, but I am trying to make the old application useable. I'd rewrite it if I had time but am currently finishing up a summer internship and would like to get something working.
One thing the wizard is doing that I can find no ju...
I have converted a VB6 application to VB.NET, because eventually I want to convert it to C#. But I have problems in regard of ShapeArray that inherits BaseControlArray. These are my problems :
I create a RectangleShapeArray class in the VB .Net solution. And then I converted to C#.
But when calling RectangleShapeArray.Load(1), it says...
I have a large project where we have 2-3 dll projects that are converted from VB6 to VB.NET. We have fixed all the issues that caused compilation errors, and most of obvious issues in running, so now we have basically a program up and running. The exe is created from scratch in VB.NET, using a lot of functionality from the converted dll'...
I'm writing a C# frontend to a legacy database that uses VB6 Rnd() and Randomize() methods for user password encryption. The encryption function is very simplistic and really not all that secure, but it's what all current passwords are stored with.
What I'd like to be able to do is authenticate legacy users from a C# application. I ca...
We are doing a conversion of a VB6 app to VB.NET. The old VB6 app had a control called FormFlow Filler, which is no longer supported (I believe its over 10 years old).
We have tried various third party controls to replace this but to no avail.
The control was used mainly for working with PDF's and when the user clicked on a PDF field ...
I'm working on porting some classic VB6 code to C# and just stumbled across a usage of the PV function.
I feels wrong including a reference to the Microsoft.VisualBasic Assembly. Is this something that is commonly done, or should I explore further options. The next idea that pops into my mind is exploring this PV function in Reflector.
...
I am having trouble converting some code from VB6 to VB.NET (I don't have as much experience with .NET). When I run the 'Select function (from the WS2_32.dll library) in .NET, using the same parameters as the VB6 program, it returns a result of -1 (indicating an error). I think the error may be related to an upgrade comment I saw about m...
Exact duplicate: How to switch a large app from VB6 to VB.Net
Exact duplicate: Best strategy for moving applications from VB6 to VB.Net
Exact duplicate: Conversion tool comparisons for VB6
can any one please tell the tool which converts vb6 to vb.net
thanks
dagg
...
I know a lot of question regarding VB6 migration have been asked, but I don't believe my exact situation has been answered in them.
Basically, our company is wanting to migrate our mission-critical VB6 Line-of-business app that is quite large, uses custom libraries to communication to other in-house programs and some dll's we don't have...
I have an application I am converting over from vb6 to vb.net 2.0/3.5. Using Subsonic 2.2 and the vb.net Interop Toolkit 2005. Cannot seem to get the .net form using subsonic to work inside the interop environment. It keeps saying it cannot find the subsonic service provider in the app.config. But I know it is there. Has anyone used thes...
I have some old C 32 Bit DLLs that are using Oracle's Pro C precompiler library (proc.exe) to expose a hundred or so sproc/func calls to an even older VB6 GUI which references these functions through explicit Declare statements like so:
Declare Function ConnectToDB Lib "C:\windows\system32\EXTRACT32.DLL" (CXN As CXNdets, ERR As ERRdets)...
I have been tasked to convert out VB6 program to VB.NET. In my research online everyone seems to say I need to go through my code and get rid of any Variants I have. I have had pretty good luck so far, but I am having an issue in replacing this one.
Private Sub lvThumbView_OLEDragDrop(Data As MSComctlLib.DataObject)
Dim File As Vari...
Completely unexpectedly, I (a webdeveloper, with a decent knowledge in OO), am tasked to re-design our old flagship Windows-application and drag it screaming and kicking into the next century.
Here's what we have now:
15 year old code, originally written in Delphi, about 8 years ago ported to Visual Basic (Kept in Visual Studio 2008)....
I have been tasked with converting an old VB6 program to to C#. One function I have been having trouble porting over is the calculation of a birthdate from a filed that was read from a binary file:
.BirthDate = CDate((CLng(recPatient.birthDateByte2) * 256) +
(recPatient.birthDateByte1 + 366))
The only function...
I have to upgrade a legacy VB6 app to VB.NET; this app uses a function call from a .dll that takes a memory address as one of it's parameters. The VB6 app does this with the VarPtr() function, but this function does not exist in .NET. How do I retrieve the memory location of a variable in .NET?
-Edit1
For example
aVariable1 = aFunct...