Migrating vb 6 to vb.net

  • Thread starter Thread starter Diego F.
  • Start date Start date
D

Diego F.

Hello. I have to migrate an old vb 6 application to vb.net.
I don't have to rewrite the application, just getting it compiled.

My first problem is in the data access. I use an Oracle database and in the
code there are RDO objects, as rdoConnection, rdoEnvironment... Is still
that in .NET? Is there any reference I can add to get that compiled?
 
I'm confident you'll get more specific advice than what I have to offer, but
the reality is that you will have to rewrite most of your VB6 app. Any
significant app just has too many changes. And RDO is dead.
 
Diego F. said:
Hello. I have to migrate an old vb 6 application to vb.net.
I don't have to rewrite the application, just getting it compiled.

My first problem is in the data access. I use an Oracle database and in
the code there are RDO objects, as rdoConnection, rdoEnvironment... Is
still that in .NET? Is there any reference I can add to get that compiled?


Did you already try to open the project in VS.NET? The conversion wizard
will convert it to VB.NET. However, note that the code generated by the
conversion wizard is of very bad quality and a rewrite is the better
solution.
 
Hello. I have to migrate an old vb 6 application to vb.net.
I don't have to rewrite the application, just getting it compiled.

My first problem is in the data access. I use an Oracle database and in the
code there are RDO objects, as rdoConnection, rdoEnvironment... Is still
that in .NET? Is there any reference I can add to get that compiled?

--

Regards,

Diego F.

Hi DiegoF.

Now in VB. Net you can use OleDB and ODBC classes to connect to Oracle
Database. I recommend OleDB. Objects changes: Now you need:
OleDbDataReader (recordset), OledDbConnection (Old Connection Object)
and OleDbCommand (to execute queries). It's so easy too.

Cheers
 
Back
Top