How do I install a .net dll to work for VB6.0 in XP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWNpZQ==?=

    #1

    How do I install a .net dll to work for VB6.0 in XP

    Hi,

    I have a VB6.0 application for which I need to convert old code with DSO to
    the new AMO object. The DSO object is a COm, while the new AMO is a .net
    manged API. Unfortunately, I can not register the new dll from SQLServer'05
    Analysis Services with the ususal Regsvr32 program.

    Is there a way that I can register it so that I can use AMO from VB6.0 ?

    Would the regasm pgm do it, and where do I get it ? I don't have .net
    software.

    thanks,
    Acie
  • Dick Grier

    #2
    Re: How do I install a .net dll to work for VB6.0 in XP

    You would need to built a COM wrapper around the .NET dll (example:
    http://msdn.microsoft.com/en-us/vbasic/bb419144.aspx). So... You do need to
    do this in Visual Studio .NET.

    --
    Richard Grier, MVP
    Hard & Software
    Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
    Edition,
    ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
    2006.
    See www.hardandsoftware.net for details and contact information.


    Comment

    • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

      #3
      RE: How do I install a .net dll to work for VB6.0 in XP

      Acie,

      You can download the free Visual Studio 2008 Express to do this.

      Kerry Moorman


      "Acie" wrote:
      Hi,
      >
      I have a VB6.0 application for which I need to convert old code with DSO to
      the new AMO object. The DSO object is a COm, while the new AMO is a .net
      manged API. Unfortunately, I can not register the new dll from SQLServer'05
      Analysis Services with the ususal Regsvr32 program.
      >
      Is there a way that I can register it so that I can use AMO from VB6.0 ?
      >
      Would the regasm pgm do it, and where do I get it ? I don't have .net
      software.
      >
      thanks,
      Acie

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: How do I install a .net dll to work for VB6.0 in XP

        Hi Acie,

        See some HKW articles.

        Cor

        "Acie" <Acie@discussio ns.microsoft.co mschreef in bericht
        news:7EC8A53F-D04D-4144-AFDB-104CA33ED809@mi crosoft.com...
        Hi,
        >
        I have a VB6.0 application for which I need to convert old code with DSO
        to
        the new AMO object. The DSO object is a COm, while the new AMO is a .net
        manged API. Unfortunately, I can not register the new dll from
        SQLServer'05
        Analysis Services with the ususal Regsvr32 program.
        >
        Is there a way that I can register it so that I can use AMO from VB6.0 ?
        >
        Would the regasm pgm do it, and where do I get it ? I don't have .net
        software.
        >
        thanks,
        Acie

        Comment

        • =?Utf-8?B?QWNpZQ==?=

          #5
          Re: How do I install a .net dll to work for VB6.0 in XP

          I'm not familiar with HKW articles. Can you point me to them, thanks.

          "Cor Ligthert[MVP]" wrote:
          Hi Acie,
          >
          See some HKW articles.
          >
          Cor
          >
          "Acie" <Acie@discussio ns.microsoft.co mschreef in bericht
          news:7EC8A53F-D04D-4144-AFDB-104CA33ED809@mi crosoft.com...
          Hi,

          I have a VB6.0 application for which I need to convert old code with DSO
          to
          the new AMO object. The DSO object is a COm, while the new AMO is a .net
          manged API. Unfortunately, I can not register the new dll from
          SQLServer'05
          Analysis Services with the ususal Regsvr32 program.

          Is there a way that I can register it so that I can use AMO from VB6.0 ?

          Would the regasm pgm do it, and where do I get it ? I don't have .net
          software.

          thanks,
          Acie
          >

          Comment

          • Cor Ligthert[MVP]

            #6
            Re: How do I install a .net dll to work for VB6.0 in XP

            I'm not familiar with HKW articles. Can you point me to them, thanks.
            >
            Strange in this newsgroup HKW is in my idea more known then DSO or AMO.

            (Decision Support Objects (DSO), Analysis Management Objects (AMO) )

            Cor

            >"Acie" <Acie@discussio ns.microsoft.co mschreef in bericht
            >news:7EC8A53 F-D04D-4144-AFDB-104CA33ED809@mi crosoft.com...
            Hi,
            >
            I have a VB6.0 application for which I need to convert old code with
            DSO
            to
            the new AMO object. The DSO object is a COm, while the new AMO is a
            .net
            manged API. Unfortunately, I can not register the new dll from
            SQLServer'05
            Analysis Services with the ususal Regsvr32 program.
            >
            Is there a way that I can register it so that I can use AMO from VB6.0
            ?
            >
            Would the regasm pgm do it, and where do I get it ? I don't have .net
            software.
            >
            thanks,
            Acie
            >>

            Comment

            • zacks@construction-imaging.com

              #7
              Re: How do I install a .net dll to work for VB6.0 in XP

              On Sep 24, 12:04 pm, Acie <A...@discussio ns.microsoft.co mwrote:
              Hi,
              >
              I have a VB6.0 application for which I need to convert old code with DSO to
              the new AMO object.  The DSO object is a COm, while the new AMO is a .net
              manged API. Unfortunately, I can not register the new dll from SQLServer'05
              Analysis Services with the ususal Regsvr32 program.
              >
              Is there a way that I can register it so that I can use AMO from VB6.0 ?
              >
              Would the regasm pgm do it, and where do I get it ? I don't have .net
              software.
              >
              If I understand you correctly we do this where I work. We have a
              primary application in VB6 that we have not had time to convert
              to .NET yet. We have developed some "plug ins" in .NET to enhance the
              product that the VB6 program makes use of. All we do in the VB6
              program is to declare an object that will link to the .NET dll,

              Dim myDll As Object

              The link it up with:

              Set myDll = CreateObject("D LL Namespace Name")

              Then invoke a public method in the .NET DLL with:

              myDll.SomeMetho dName

              The .NET DLL resides in the same folder the VB6 EXE is in, and it was
              marked as COM Visible.

              Comment

              Working...