You can implement a Variant wrapper, as described in Adam Nathan's marvelous
book[1], but is a pain in the a**.

HTH, Stoyan Damov

[1]
http://www.amazon.com/exec/obidos/tg/detail/-/067232170X/102-0484756-5020958
?v=glance

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of MAHACO
Sent: 07/20/2003 14:13
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Implementing an interface with an argument of
datatype 'variant' in dotnet


Hello there,

I am in a process of porting my existing COM based application to one with
some .Net components.

I have an object that implements an interface IDataStore, on of the methods
of IDatastore has a parameter of type variant, the signature is,

Public Function InsertRecordPA(ParamArray pa() As Variant) As Collection

When i try to implement this in a .Net COM interop, i receive following
error,

'InsertRecordPA' Cannot implement 'InsertRecordPA' because there is no
matching function on interface IDataStore.

Is there any way to implement this method in .Net

Thanks in advance

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to