.NETGURU
Can I return an Interface.?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.remoting.

Post a new message to this list...

Lord2702
Wed. Sep. 01, 2004 10:10 PM PT

I have a remoting server, on which I host a Business Object Component, I
want to return an Interface IDbConnection as follows...

IDbConnection *GetConnection() {
// code
return dbConnection; //as an interface
}

Thanks.

Reply to this message...
 
    
Henrik de Jong
It is in fact a common way to talk to remote objects by interfaces. You
can also return interfaces wich are remote-objects. By example, if you
've got the Advanced .Net Remoting from Ingo Rammer, you can read a nice
example about an IRemoteFactory wich returns a IRemoteObject based on
some parameters.

kind regards,
Henrik

Lord2702 schreef:
[Original message clipped]

Reply to this message...
 
    
Lord2702
Thu. Sep. 02, 2004 11:35 AM PT

It seems you didn't get my query, I already host a COM+ object and returning
its interface, now, let say in this COM object I have two methods,
DataSet *GetDataSet();
IDbConnection *GetConnection();

In first I return DataSet object, but have a problem while returning the
second one, the interface connection. It says, something like the object
cannot be marshalled, may be, the Interfaces are not by ExamGuruO, and also not
marked by ISerializable. Hence, my question is How do I return an Interface
? Although, I will not JUST return the interface, within GetConnection I
will assign the interface variable with full object.

Thanks for your reply.

"Henrik de Jong" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Data.DataSet
System.Data.IDbConnection
System.Runtime.Serialization.ISerializable




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification