Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird TLB generated by C# solution

Status
Not open for further replies.

dcswee

Programmer
Jan 23, 2002
13
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top