Hi Fox,
For a default ATL COM object which inherits the interface A, it's
definition would be like:
class ATL_NO_VTABLE CA :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CA, &CLSID_A>,
public IDispatchImpl<IA, &IID_IA, &LIBID_PINT23Lib>
{
..
and when I tested the following code in a C# program, it is compiled OK:
public class AInstCSharp : AClass //the COM object CA
{
}
class B
{
public static void Do( A a ){}
}
..
AInstCSharp a = new AInstCSharp();
B b = new B();
B.Do(a);
..
I think the class AInst in your code snippet may be not a valid COM object,
so you cannot see the interface A in object browser.
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------