Abstract interfaces and classes - Urgent Help



Hi,

I have an OCX I need to use in an implementation and always gets a
protection level error saying:
I get an error message saying:
OCXReference.InterfaceClass is inaccessible due to its protection level

The OCX module has basically the following structure:

Namespace OCXmodule
{
public abstract interface Interface_A : _Interface_B, Interface_C
{
}

public abstract Interface _Interface_B
{
public abstract new void method1();
}

public abstract interface _Interface_C
{
public abstract new void method2();
public abstract new void method3();
}

public class InterfaceClass
{
public virtual new void Method2()
{
}

public virtual new void method3()
{
}
}
}

I am trying to create an instance of InterfaceClass Class to use the base
code.

I tried the following 2 approaches:

Attempt 1:
using System;
using OCXReference;

NameSpace MySpace
{
Public class _MyClass : OCXReference.InterfaceClass
{
public void Method2()
{
base.Method2();
}

public void method3()
{
base.Method3();
}
}
}

I get an error message saying:
OCXReference.InterfaceClass is inaccessible due to its protection level

Attempt 2:
using System;
using OCXReference;

NameSpace MySpace
{
Public class _MyClass : OCXReference.Interface_A
{
private OCXReference.InterfaceClass oClass = new
CXReference.InterfaceClass();

public void Method1()
{
oClass.Method2();
}

public void Method2()
{
oClass.Method2();
}

public void method3()
{
oClass.Method3();
}
}
}

I get same error message when creating the new CXReference.InterfaceClass()
saying:
OCXReference.InterfaceClass is inaccessible due to its protection level

How can I call the code contained in the Class to use the base code?

I will appreciate any help.

Carlos Lozano
www.caxonline.net
.



Relevant Pages

  • Re: Abstract interfaces and classes - Urgent Help
    ... > "public class InterfaceClass" ... >> I get an error message saying: ... >> OCXReference.InterfaceClass is inaccessible due to its protection level ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Event id 4 KRB_AP_ERR_MODIFIED
    ... I've got one error message saying: ... Do you know to restore the secure channel for one DC? ... Run dcdiag, netdiag and repadmin in verbose mode. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Transport Tycoon Deluxe
    ... I get an error message saying that ttdx.exe or tycoon.exe or gamegfx.exe could not be found. ... This probably means that you have the wrong version of the patch. ... Transport Tycoon Deluxe, but rather some other game, or that you've installed TTDPatch in the wrong folder (it must be in TTD's ...
    (microsoft.public.windowsxp.games)
  • RE: MailMessageEvent is inaccessible
    ... The error message you got indicate that the following method is not ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager ... How do set the protection level so that the application can send this ...
    (microsoft.public.vsnet.general)
  • SqlServer 2000, MSSearch and Fulltext search problems
    ... When we try to do an incremental population or rebuild the catalog from ... we get an error message saying that the ... the server goes into BlueScreen. ...
    (microsoft.public.sqlserver.fulltext)

Loading