I have the following interface in a .cs file...
using System;
using System.Runtime.InteropServices;
using System.Collections;
namespace MyNamespace
{
[Guid("AFB7038E-2D1B-49c5-86FE-3B28F7765FAE"
]
interface IWCDocumentVersionList
{
ArrayList DocumentVersions {get;}
WCDocumentVersion Item(int lIndex);
int Count{get;}
}
[Guid("3704668E-3952-45df-8E22-C132CF9FD1F2"
,
ClassInterface(ClassInterfaceType.None)]
public class WCDocumentVersionList : WCDocumentVersionList
{ ....... }
}
Somehow when I #import the generated type library from VC++ 6.0, neither IWCDocumentVersionList or WCDocumentVersionList are found, and when I add a reference to the generated type library in VB 6, the object browser shows some strange methods: - ToString, Equals, GetHashCode and GetType, but NOT the methods I implemented in WCDocumentVersionList.
I need to be able to call the methods from an ATL COM component written using Visual Studio 6.
Has anyone got any clues? Have I added the class to the project wrongly?
-Dan Sweeting.
using System;
using System.Runtime.InteropServices;
using System.Collections;
namespace MyNamespace
{
[Guid("AFB7038E-2D1B-49c5-86FE-3B28F7765FAE"
interface IWCDocumentVersionList
{
ArrayList DocumentVersions {get;}
WCDocumentVersion Item(int lIndex);
int Count{get;}
}
[Guid("3704668E-3952-45df-8E22-C132CF9FD1F2"
ClassInterface(ClassInterfaceType.None)]
public class WCDocumentVersionList : WCDocumentVersionList
{ ....... }
}
Somehow when I #import the generated type library from VC++ 6.0, neither IWCDocumentVersionList or WCDocumentVersionList are found, and when I add a reference to the generated type library in VB 6, the object browser shows some strange methods: - ToString, Equals, GetHashCode and GetType, but NOT the methods I implemented in WCDocumentVersionList.
I need to be able to call the methods from an ATL COM component written using Visual Studio 6.
Has anyone got any clues? Have I added the class to the project wrongly?
-Dan Sweeting.