[Mono-list] ActiveX dll with mono on windows

Jonathan Chambers joncham at gmail.com
Mon Mar 9 10:56:38 EDT 2009


Hello,      Visual Studio generates the Interop.cwbx.dll file from some
actual COM library using tlbimp. Interop.cwbx.dll is a managed assembly
providing the required definitions of the types in your COM library. gmcs
can compile your app referencing this library because it requires no COM
Interop to compile a managed assembly. However, once you try to run your
application you'll need the COM support that exists in the mono runtime.

Yes, you can write all the code contained in the Interop.cwbx.dll by hand if
you choose, just make sure to get it right or you'll get odd errors at
runtime.

Thanks,
Jonathan

On Mon, Mar 9, 2009 at 10:49 AM, Bartolomeo Nicolotti
<bnicolotti at siapcn.it>wrote:

>
> Hi,
>
> sorry, but I would like to understand more precisely:
>
> I've taken the file
>
> Interop.cwbx.dll
>
> from the visual studio Project folder, I've searched and it'is only there
> on
> my pc.
>
> i've compiled with
>
>        gmcs -r:Interop.cwbx.dll MyTest.cs
>
> and it works. Do you mean that without mono support COM Interop this
> wouldn't have compiled?
>
> Without the tools support and without visual studio this Interop.cwbx.dll
> can be written by hand, right?
>
> Many thanks
>
> Best regards
>
>
> Da:     Jonathan Chambers <joncham at gmail.com>
> A:      Bartolomeo Nicolotti <bnicolotti at siapcn.it>
> CC:     mono-list at lists.ximian.com
> Oggetto:        Re: [Mono-list] ActiveX dll with mono on windows
> Data:   Mon, 9 Mar 2009 09:53:14 -0400 (14.53 CET)
>
>
> Hello,
>     COM Interop in mono on windows should work the same as COM Interop on
> .Net. The tools support is not there (mono has no equivalent of tlbimp for
> example), but the runtime should be fine. If not, file a bug.
>
>
> Thanks,
> Jonathan
>
>
>
> Da:     Jonathan Chambers <joncham at gmail.com>
> A:      Bartolomeo Nicolotti <bnicolotti at siapcn.it>
> CC:     mono-list at lists.ximian.com
> Oggetto:        Re: [Mono-list] ActiveX dll with mono on windows
> Data:   Mon, 9 Mar 2009 10:32:31 -0400 (15.32 CET)
>
>
> Hello,
>
> On Mon, Mar 9, 2009 at 10:21 AM, Bartolomeo Nicolotti <
> bnicolotti at siapcn.it>
> wrote:
> Hello,
>
>        Great! Do you mean that this compiles
>
>         gmcs -r:Interop.cwbx.dll MyTest.cs
>
>
>         using Com Interop?
>        This compiles like any normal managed application. Interop.cwbx.dll
> is just a managed assembly. COM Interop tools were used to generate that
> assembly I assume, and the runtime needs to support COM Interop in order
> for
> it to run (which mono should, unless there is a bug).
>
>
>        Interop.cwbx.dll is generated by VisualStudio.
>
>        Do you think that using this Interop.cwbx.dll is fine or do you
> suggest
>        to use a wrapper written in mono?
>
>        IBM provides us also another dll that's an assembly, but the classes
>        used are different, do you think that we can keep our code as is and
> use
>        a wrapper to unmanaged code or we should modify our code to use
> managed
>        assembly?
>        I would try your code as is first, although things being all managed
> would help with portability (for other platforms if you care about them).
>
>
>        Many thanks
>
>        best regards
>
>
>
> Bartolomeo Nicolotti wrote:
> >
> >
> > Da:   Justin Dearing <zippy1981 at gmail.com>
> > A:    Bartolomeo Nicolotti <bnicolotti at siapcn.it>
> > Oggetto:      Re: [Mono-list] ActiveX dll with mono on windows
> > Data:         Mon, 9 Mar 2009 08:02:57 -0400 (13.02 CET)
> >
> >
> > The activeX dll is a DLL containing com.
> >
> >
> > This blog seems to indicate thats not as impossible as I thought:
> >
> >
> >
> http://jonathanchambers.blogspot.com/2007/02/three-com-interop-updates.html
> >
> >
> > Do you have the source for he activex dll? What language is it written
> in?
> > If its a VB6 dll, visual studio has a nice wizard to upgrade vb6 code to
> > vb.net.
> >
> >
> > No, I don't have the sources, it's an IBM.
> >
> > Visual Studio produces an Interp.cwbx.dll that used with
> >
> > gmcs -r:Interop.cwbx.dll MyTest.cs
> >
> > compiles! I think that's a wrapper assembly for the ActiveX dll.
> >
> > Bye
> >
> >
> > Bartolomeo Nicolotti wrote:
> >>
> >> Hi,
> >>
> >> I've sonme code written in C# with VisualStudio. I want to migrate to
> >> mono. The problem is that this code uses a .dll that's an ActiveX and
> not
> >> an assembly. Is there a way to use this dll in mono?
> >>
> >> Many thanks
> >>
> >> Best regards....
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/ActiveX-dll-with-mono-on-windows-tp22411525p22413427.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090309/675b3920/attachment-0001.html 


More information about the Mono-list mailing list