Hi Steven. The problem isn't so much me calling the COBOL dll, but that I
can't reference a VB.NET dll that has it as a dependency. We have a
subsidiary company that uses COBOL and in order to call into their
applications we've had them write a VB.NET wrapper around several of their
business functions. When I try to reference the VB.NET dll in my Web Service
it tries to pull the COBOL dependencies in to my project, but obviously
can't find them as they can't run on my non-COBOL development machine.
Ideally what I want to do is perhaps reference some kind of interface that I
can compile against, that at runtime knows to hook into the VB.NET dll on
the destination server. Can this be done without remoting?
In the short term I'm sending them the code to the Web Service to compile in
their development environment that contains all relevant dependencies and
have them bundle it up and deploy, but in the future I would like to be able
to maintain and extend the Web Service from my end without all these
referencing issues.
Regards,
Sam.
[quoted text, click to view] "Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:RtU%236J3BFHA.3048@cpmsftngxa10.phx.gbl...
> Hi Sam,
>
> Thanks for your posting. As for the COBOL dll you mentioned, is it a pure
> Managed dll( CLS compatible) or a unmanaged one( win32 or COM dll)?
>
> If it's a unmanaged dll, we need to call it via InteropService. If this is
> a COM dll, we can generate the managed Wrapper class for it( through
VS.NET
> or the tlbimp.exe tool). The wrapper class (just the RCW ) is pure managed
> classes which can be called as strong-typed component in .net code.
>
> Please feel free to let me know if you have any further concerns.
> Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure!
www.microsoft.com/security > (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
>