Migrating vb 6 to vb.net

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?
 
E

Earl

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

Herfried K. Wagner [MVP]

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

diAb0Lo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top