473,383 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

access database using rdo

Hi,

I'm currently writing an application using C#. However, to access and update
a database, I must only use rdo (due to a certain reason). I heard I can use
the VB6 to make the function of accessing and updating the database and
then, compile it into dll. After that, using the C#, adding the reference of
the dll, I would be able to access or update the database.

Q1) Is this true?
Q2) If so, how do I do that? Can anybody share some codes about this?

Thanks in advance
pcPirate
Nov 15 '05 #1
3 2292
pcPirate,

Whichever way you go, you will have to use COM interop to do this. If
you can completely isolate all of the data access into a VB6 set of
components, then you probably should do that, as it will cut down on the
interop you will have to do with .NET if you made the calls to the RDO
components through COM interop.

Basically, create your COM component (ActiveX dll project in VB6). Once
you have the dev done on that, you can set a reference to the component by
selecting "add reference" when right clicking on the references folder in
your project. It will show up in the COM tab.

When distributing your application, make sure that you distribute the
interop dll that is created, as well as your VB6 dll, and RDO, as all of
those will need to be on the machine that you are deploying to.

One thing, since you have the option of containing all of your data
access in a single component, I don't understand why you need to use RDO.
What is the requirement that says you have to use that?

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

"pcPirate" <ph****@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm currently writing an application using C#. However, to access and update a database, I must only use rdo (due to a certain reason). I heard I can use the VB6 to make the function of accessing and updating the database and
then, compile it into dll. After that, using the C#, adding the reference of the dll, I would be able to access or update the database.

Q1) Is this true?
Q2) If so, how do I do that? Can anybody share some codes about this?

Thanks in advance
pcPirate

Nov 15 '05 #2
Good Lord!

I didn't think anyone was using RDO for development any more. Sounds to me
like you're copying an old code base to write a .NET app. Am I right?

Anyhow, you can do it by just adding the RDO component to your .NET project.
The IDE will make a wrapper for it and then you're in business.

Otis

"pcPirate" <ph****@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm currently writing an application using C#. However, to access and update a database, I must only use rdo (due to a certain reason). I heard I can use the VB6 to make the function of accessing and updating the database and
then, compile it into dll. After that, using the C#, adding the reference of the dll, I would be able to access or update the database.

Q1) Is this true?
Q2) If so, how do I do that? Can anybody share some codes about this?

Thanks in advance
pcPirate

Nov 15 '05 #3
Hi,
Yes, you're absolutely right that I have to copy and old code base that's
relating to an application. Since the developer of the application has
mentioned that the database access must be done by RDO, it really leave me
no other option.

Thanks for your help.

Dim rdoConn As rdo.rdoConnection
Dim rdoEnv As rdo.rdoEnvironment
Dim rdoEnvs As rdo.rdoEnvironments
Dim rdoRS As rdo.rdoResultset

This are some of the code I might want to convert into C#. Do you think it's
possible even after I've add the Microsoft RDO reference? In fact, I'm still
trying hard on it... sigh~~~~

Thanks in advance,
pcPirate.
"Otis Mukinfus" <Ot**@Otis.Com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Good Lord!

I didn't think anyone was using RDO for development any more. Sounds to me like you're copying an old code base to write a .NET app. Am I right?

Anyhow, you can do it by just adding the RDO component to your .NET project. The IDE will make a wrapper for it and then you're in business.

Otis

"pcPirate" <ph****@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm currently writing an application using C#. However, to access and update
a database, I must only use rdo (due to a certain reason). I heard I can

use
the VB6 to make the function of accessing and updating the database and
then, compile it into dll. After that, using the C#, adding the

reference of
the dll, I would be able to access or update the database.

Q1) Is this true?
Q2) If so, how do I do that? Can anybody share some codes about this?

Thanks in advance
pcPirate


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
9
by: WalterR | last post by:
This is my first time here, so there may be earlier relevant threads of which I am unaware. Though my experience with DB2 is not extensive, such as it is was under OS/390 or equ. My main...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.