PC Review


Reply
Thread Tools Rate Thread

using vb 6 com+ from c# Variant

 
 
=?Utf-8?B?UnVzcw==?=
Guest
Posts: n/a
 
      21st Jul 2004
Hi,
I’m trying to use net remoteing with Com+. I created a wrapper for the com object. I can call the com object from my c# client and an able to get return type of strings and int’s. One of the methods returns a variant. I can get the object back from the com object but cannot convert it. I tried using adodb. examples I tried is.

object dept = obj.tryme();--- this wraps the com call which returns a variant.
ADODB._Recordset rs = (ADODB._Recordset) dept; and

OleDbDataAdapter da = new OleDbDataAdapter();
da.Fill(DS,dept, "test");

dept is the variant that is return from the com object. which is a recordset.
The current asp page uses it like this.
rsDept = objdept.getdepartment(1,"")
using the da.fill I get an exeception of
Unable to retrieve the IRowset interface from the ADODB.Recordset object.

The type of object retruned is system._comobject.

Any suggestions?

Thanks
Russ


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using created variant value to reference to a variant within my code TD Microsoft Excel Programming 1 22nd Apr 2009 11:53 AM
using find with variant? =?Utf-8?B?RG9uIFM=?= Microsoft Excel Programming 4 16th Aug 2005 04:52 PM
Creating a CrossTab Report using data in variant Dennis Bachani Microsoft Excel Programming 1 7th May 2004 12:34 PM
PlatformSDK..using VARIANT =?Utf-8?B?QXJyIFM=?= Microsoft C# .NET 1 27th Mar 2004 09:47 AM
Using a variant for report field name Laura Microsoft Access Reports 1 23rd Jul 2003 03:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 PM.