c# - Registering a VB6 Interop DLL with Castle.Windsor -
i'm converting c# solution use castle.windsor. 1 of dependencies of of components vb6 developed dll referenced via interop.
how can register castle.windsor successfully?
before:
private aerosuspcalc.suspcontrol _suspcontrol; _suspcontrol = new aerosuspcalc.suspcontrol();
this works fine. however, if register this:
container.register(component .for<aerosuspcalc.suspcontrol>() .implementedby<aerosuspcalc.suspcontrol>());
the services count incremented one, , debug suggests it's resolved. when next register component depends on this, debug suggests cannot resolved.
some dependencies of component not statically resolved. 'aerosusp.vb6.suspcontrol' waiting following dependencies: - service 'aerosuspcalc.suspcontrol' not registered.
and indeed once try , use component:
can't create component 'aerosusp.vb6.suspcontrol' has dependencies satisfied.
'aerosusp.vb6.suspcontrol' waiting following dependencies: - service 'aerosuspcalc.suspcontrol' not registered.
googling hasn't helped much!
Comments
Post a Comment