By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,454 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,454 IT Pros & Developers. It's quick & easy.

how to pass a recordset from VC6 to C# COM object

P: n/a
I'm designing a C# object that must be usable from VC6 and VB6, as well as
..NET. How do I create the following method in C# so that VC6 and VB6 can
pass in readonly recordsets?

InputFARS(_RecordsetPtr *FARS);

And then how do I traverse the recordset once in C#?

[I'm very new to C#.]

--
Doug Taylor
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Doug,

You are going to have to set a reference in your project to "Microsoft
Active X Data Object Library". Once you do that, just declare your function
like this:

public void InputFARS(ADODB.Recordset FARS)
{
}

Then, when exposing this through COM interop, it should work.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Doug Taylor" <dv******@nospam.nospam> wrote in message
news:E4**********************************@microsof t.com...
I'm designing a C# object that must be usable from VC6 and VB6, as well as
.NET. How do I create the following method in C# so that VC6 and VB6 can
pass in readonly recordsets?

InputFARS(_RecordsetPtr *FARS);

And then how do I traverse the recordset once in C#?

[I'm very new to C#.]

--
Doug Taylor

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.