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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -