vb6-migration

C# equivalent of VB6's GetObject

The following VB6 code connects to some third party software and forces a login with the admin username and password: Set obj = GetObject(, "workspace.application") obj.System.FixLogin strAdminUsername, strAdminPassword I am wanting to do the same task in C# but as a very green C# developer (about 3 months experience) I have no idea h...

Replacing a VB6 DLL called by a CreateDispatch call with a C# Equivalent

An existing Visual C++ application makes the following call; BOOL bRet = pMyClass.CreateDispatch("BlahBlah.MyClass"); if ( !bRet ) { // Error handling snipped } else { pMyClass.MyMethod(); pMyClass.ReleaseDispatch(); } pMyClass is a class which was apparently auto-generated by ClassWizard, and it inherits from COleDisp...

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

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 Str...

how to convert vb6 to vb.net programmatically

Visual Studio comes with Wizard that converts vb6 code to vb.net. Is there are any way to call this conversion via code? ...

TABCTL32.OCX(1.1.0)

I am trying to upgrade a VB6 project to run it on VB8, but I am getting an error which says that you need to install TABCTL32.OCX(1.1.0). What shall I do? Please Help. Thanks in advance. ...

Convincing legacy application VB6 developers to make the switch to C#

I know this question could be similar to others but really I'm looking for reasons why VB6 developers should switch to C#. My company recently approved project to be written in C#, so we have a lot of VB.Net programmers, however, we have some legacy app developers as well that are in VB6. We have a time frame to re-write those apps in...

VB6 to VB.NET conversion issue, function call to a .dll function returns an error

I recently converted a VB6 program to VB.NET. This program is used to communicate with the Superlogics PCM Series DAQ card that the company no more produces and has no support for VB.NET. My program was running fine in VB6 but has problems in VB.net due to the the functions in the external .dll file (I am not sure though) I read many fo...

Ado.Net RecordSet member equivalent?

I'm currently re-writing a Vb6 program relying on ADO into C# w/ ADO.NET. I've run into several places in the original code with stuff like this: Dim rs As New Recordset rs.CacheSize = 500 Call rs.Open(sSql, cnMeta, adOpenForwardOnly, adLockReadOnly) Is there an equivalent (or even a need for an equivalent) to ADO.RecordSet.CacheSize...

How do I convert Twips to Pixels in .NET?

I'm working on a migration project in which a database actually stores display sizes in twips. Since I can't use twips in .NET, I was wondering if .NET has a conversion method usable at runtime? Near as I can tell no one has asked this question yet. I've already figured it out, so I figured I'd post in case someone else had a better so...