adding a C# dll to a VB .Net app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hutch@ankaaa.org.au

    #1

    adding a C# dll to a VB .Net app

    Hi gurus,

    A contractor has built us a database application in VB dotNet. But he
    has included a DLL which was written in C# to provide a VirtualListView
    control. The source of the C# project is included in the soluiton. I
    want to fix some bugs in the VB app, but I've only got VB dotNet 2003
    so I can't build the C# project.

    Is there any way I can reference the DLL for the C# DLL without having
    to build it?


    Thanks

    Stephen Hutchison

    Darwin, Australia

  • Tom Shelton

    #2
    Re: adding a C# dll to a VB .Net app

    On 2005-07-21, hutch@ankaaa.or g.au <hutch@ankaaa.o rg.au> wrote:[color=blue]
    > Hi gurus,
    >
    > A contractor has built us a database application in VB dotNet. But he
    > has included a DLL which was written in C# to provide a VirtualListView
    > control. The source of the C# project is included in the soluiton. I
    > want to fix some bugs in the VB app, but I've only got VB dotNet 2003
    > so I can't build the C# project.
    >
    > Is there any way I can reference the DLL for the C# DLL without having
    > to build it?
    >
    >
    > Thanks
    >
    > Stephen Hutchison
    > www.aboriginalart.org
    > Darwin, Australia
    >[/color]

    You should just be able to reference the compiled dll in the add
    reference dialog.

    --
    Tom Shelton [MVP]

    Comment

    • David Anton

      #3
      RE: adding a C# dll to a VB .Net app

      You could convert the C# project to VB.NET.

      As Tom mentioned, just referencing the existing dll is probably a better
      solution, but if you want the flexibility of being able to modify it in your
      preferred language then conversion is a good option.

      --
      David Anton
      Source code converters: Convert between C#, C++, Java, and VB with the most accurate and reliable source code converters

      Home of:
      Instant C#: VB.NET to C# Converter
      Instant VB: C# to VB.NET Converter
      Instant J#: VB.NET to J# Converter


      "hutch@ankaaa.o rg.au" wrote:
      [color=blue]
      > Hi gurus,
      >
      > A contractor has built us a database application in VB dotNet. But he
      > has included a DLL which was written in C# to provide a VirtualListView
      > control. The source of the C# project is included in the soluiton. I
      > want to fix some bugs in the VB app, but I've only got VB dotNet 2003
      > so I can't build the C# project.
      >
      > Is there any way I can reference the DLL for the C# DLL without having
      > to build it?
      >
      >
      > Thanks
      >
      > Stephen Hutchison
      > www.aboriginalart.org
      > Darwin, Australia
      >
      >[/color]

      Comment

      Working...