C# file:
....
[ClassInterface(ClassInterfaceType.AutoDispatch)]
class ActionSetImpl : ATLControllerLib.IActionSet
{
public void Bla(){}
}
[STAThread]
static void Main()
{
ATLControllerLib.IControllerClass cc = new
ATLControllerLib.IControllerClass();
ActionSetImpl AS = new ActionSetImpl();
AS.Buy();
ATLControllerLib.IEventHandler eh = cc.Init( AS );
return;
}
Implementation of COM methode: (created with .NET studio -> add simple ALT
object)
STDMETHODIMP CIController::InitController(IIActionSet* as, IIEventHandler**
ret)
{
as->Bla();
return S_OK;
}
"Arthur Nesterovsky" <ar****@nesterovsky-bros.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Hi,
i added this dll to my .NET project, implemented a C# class which
implements IActionSet.
then i pass this class to the method Init(...).
inside i just call foo()
what i get as result is a NullReferenceException.
Can you send whole code, including Init() method?
______________________________
With best wishes, Arthur Nesterovsky
Please visit my home page:
http://www.nesterovsky-bros.com