how can one compile vb code into dll?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gg

    #1

    how can one compile vb code into dll?

    how can one compile vb code into dll?

    The vstdio build project it tends to build exe. When I looked at the build
    in help I did not find anything about configuring for DLL. I even try
    custom build but did not see anything like dll.

    When I looked at the command line tools and sample, I only saw c code not
    vb. for dll

    the environment I have is
    V7.1.3
    ms .net frame work 1.1.4322
    Installed products: ms vb .net

    I would very much appreciate help. even if only a push towards some
    documentation will help greatly


  • CT

    #2
    Re: how can one compile vb code into dll?

    I'm not sure which edition of VB .NET you have and if your edition allows
    you to create class libraries, which will result in a DLL assembly and not
    an EXE assembly. When in the IDE, check the properties for your project and
    try changing the project type to a Class Library.

    --
    Carsten Thomsen
    Enterprise Development with VS .NET, UML, AND MSF


    "gg" <gg@nomail.ni l> wrote in message
    news:uUoOo7vdFH A.1504@TK2MSFTN GP15.phx.gbl...[color=blue]
    > how can one compile vb code into dll?
    >
    > The vstdio build project it tends to build exe. When I looked at the
    > build
    > in help I did not find anything about configuring for DLL. I even try
    > custom build but did not see anything like dll.
    >
    > When I looked at the command line tools and sample, I only saw c code not
    > vb. for dll
    >
    > the environment I have is
    > V7.1.3
    > ms .net frame work 1.1.4322
    > Installed products: ms vb .net
    >
    > I would very much appreciate help. even if only a push towards some
    > documentation will help greatly
    >
    >[/color]


    Comment

    • Larry Lard

      #3
      Re: how can one compile vb code into dll?



      gg wrote:[color=blue]
      > how can one compile vb code into dll?
      >
      > The vstdio build project it tends to build exe. When I looked at the build
      > in help I did not find anything about configuring for DLL. I even try
      > custom build but did not see anything like dll.
      >
      > When I looked at the command line tools and sample, I only saw c code not
      > vb. for dll
      >
      > the environment I have is
      > V7.1.3
      > ms .net frame work 1.1.4322
      > Installed products: ms vb .net
      >
      > I would very much appreciate help. even if only a push towards some
      > documentation will help greatly[/color]

      In the New Project dialog, choose the 'Class Library' template. This
      sets the Output Type, found on the General page of the Project
      Properties screen to Class Library, which in turn sets the output file
      to be a DLL rather than an EXE.

      --
      Larry Lard
      Replies to group please

      Comment

      • Armin Zingler

        #4
        Re: how can one compile vb code into dll?

        "gg" <gg@nomail.ni l> schrieb[color=blue]
        > how can one compile vb code into dll?
        >
        > The vstdio build project it tends to build exe. When I looked at
        > the build in help I did not find anything about configuring for DLL.
        > I even try custom build but did not see anything like dll.
        >
        > When I looked at the command line tools and sample, I only saw c
        > code not vb. for dll
        >
        > the environment I have is
        > V7.1.3
        > ms .net frame work 1.1.4322
        > Installed products: ms vb .net
        >
        > I would very much appreciate help. even if only a push towards some
        > documentation will help greatly
        >
        >[/color]


        http://msdn.microsoft.com/library/en...ryTemplate.asp


        Or, after creation of an Exe project, change the "output type" in the
        project properties:
        http://msdn.microsoft.com/library/en...ertiespage.asp

        Armin

        Comment

        • Larry Lard

          #5
          Re: how can one compile vb code into dll?



          gg wrote:[color=blue]
          > how can one compile vb code into dll?
          >
          > The vstdio build project it tends to build exe. When I looked at the build
          > in help I did not find anything about configuring for DLL. I even try
          > custom build but did not see anything like dll.
          >
          > When I looked at the command line tools and sample, I only saw c code not
          > vb. for dll
          >
          > the environment I have is
          > V7.1.3
          > ms .net frame work 1.1.4322
          > Installed products: ms vb .net
          >
          > I would very much appreciate help. even if only a push towards some
          > documentation will help greatly[/color]

          In the New Project dialog, choose the 'Class Library' template. This
          sets the Output Type, found on the General page of the Project
          Properties screen to Class Library, which in turn sets the output file
          to be a DLL rather than an EXE.

          --
          Larry Lard
          Replies to group please

          Comment

          • Herfried K. Wagner [MVP]

            #6
            Re: how can one compile vb code into dll?

            "gg" <gg@nomail.ni l> schrieb:[color=blue]
            > how can one compile vb code into dll?
            >
            > The vstdio build project it tends to build exe. When I looked at the
            > build
            > in help I did not find anything about configuring for DLL. I even try
            > custom build but did not see anything like dll.
            >
            > When I looked at the command line tools and sample, I only saw c code not
            > vb. for dll
            >
            > the environment I have is
            > V7.1.3
            > ms .net frame work 1.1.4322
            > Installed products: ms vb .net[/color]

            Creating class libraries with the Standard edition of Visual Basic .NET
            <URL:http://dotnet.mvps.org/dotnet/faqs/?id=standardcla sslibraries&lan g=en>

            --
            M S Herfried K. Wagner
            M V P <URL:http://dotnet.mvps.org/>
            V B <URL:http://classicvb.org/petition/>

            Comment

            • Chris Dunaway

              #7
              Re: how can one compile vb code into dll?

              Create a ClassLibrary project. That will compile to a .dll. Or from
              the command line compiler use the /target:library

              Comment

              • Herfried K. Wagner [MVP]

                #8
                Re: how can one compile vb code into dll?

                "Chris Dunaway" <dunawayc@gmail .com> schrieb:[color=blue]
                > Create a ClassLibrary project. That will compile to a .dll.[/color]

                Yeah, but the Standard Edition of VB.NET neither includes this template nor
                does it support setting the output type in the project properties to "Class
                Library".

                --
                M S Herfried K. Wagner
                M V P <URL:http://dotnet.mvps.org/>
                V B <URL:http://classicvb.org/petition/>

                Comment

                • gg

                  #9
                  Re: how can one compile vb code into dll?

                  Thank you. that was very helpful documentation I sorely need.
                  Thanks for everyone else being so helpful too
                  "Armin Zingler" <az.nospam@free net.de> wrote in message
                  news:eS5suYwdFH A.2128@TK2MSFTN GP14.phx.gbl...[color=blue]
                  > "gg" <gg@nomail.ni l> schrieb[color=green]
                  >> how can one compile vb code into dll?
                  >>
                  >> The vstdio build project it tends to build exe. When I looked at
                  >> the build in help I did not find anything about configuring for DLL.
                  >> I even try custom build but did not see anything like dll.
                  >>
                  >> When I looked at the command line tools and sample, I only saw c
                  >> code not vb. for dll
                  >>
                  >> the environment I have is
                  >> V7.1.3
                  >> ms .net frame work 1.1.4322
                  >> Installed products: ms vb .net
                  >>
                  >> I would very much appreciate help. even if only a push towards some
                  >> documentation will help greatly
                  >>
                  >>[/color]
                  >
                  >
                  > http://msdn.microsoft.com/library/en...ryTemplate.asp
                  >
                  >
                  > Or, after creation of an Exe project, change the "output type" in the
                  > project properties:
                  > http://msdn.microsoft.com/library/en...ertiespage.asp
                  >
                  > Armin[/color]


                  Comment

                  • gg

                    #10
                    Re: how can one compile vb code into dll?

                    I find the same result.


                    So I will use the suggestion from Armin: compiler option

                    "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                    news:eiEHhHzdFH A.580@TK2MSFTNG P15.phx.gbl...[color=blue]
                    > "Chris Dunaway" <dunawayc@gmail .com> schrieb:[color=green]
                    >> Create a ClassLibrary project. That will compile to a .dll.[/color]
                    >
                    > Yeah, but the Standard Edition of VB.NET neither includes this template
                    > nor does it support setting the output type in the project properties to
                    > "Class Library".
                    >
                    > --
                    > M S Herfried K. Wagner
                    > M V P <URL:http://dotnet.mvps.org/>
                    > V B <URL:http://classicvb.org/petition/>[/color]


                    Comment

                    • gg

                      #11
                      how can one compile vb code into dll? - neither vbc nor classlibrary template are avail

                      OOPS, could not find vbc anywhere!
                      Of course, there is no class library template in my standard version of
                      dotnet 2003
                      Worse, changing output type in the vbproject does not do anything either.

                      For a while I thought I got an easy solution for the standard edition of dot
                      2003 with vbc.exe.

                      Looks like I have to do some digging ( so far no luck with google nor msdn)

                      Help!

                      "Armin Zingler" <az.nospam@free net.de> wrote in message
                      news:eS5suYwdFH A.2128@TK2MSFTN GP14.phx.gbl...[color=blue]
                      > "gg" <gg@nomail.ni l> schrieb[color=green]
                      >> how can one compile vb code into dll?
                      >>
                      >> The vstdio build project it tends to build exe. When I looked at
                      >> the build in help I did not find anything about configuring for DLL.
                      >> I even try custom build but did not see anything like dll.
                      >>
                      >> When I looked at the command line tools and sample, I only saw c
                      >> code not vb. for dll
                      >>
                      >> the environment I have is
                      >> V7.1.3
                      >> ms .net frame work 1.1.4322
                      >> Installed products: ms vb .net
                      >>
                      >> I would very much appreciate help. even if only a push towards some
                      >> documentation will help greatly
                      >>
                      >>[/color]
                      >
                      >
                      > http://msdn.microsoft.com/library/en...ryTemplate.asp
                      >
                      >
                      > Or, after creation of an Exe project, change the "output type" in the
                      > project properties:
                      > http://msdn.microsoft.com/library/en...ertiespage.asp
                      >
                      > Armin[/color]


                      Comment

                      • Robert S. Liles

                        #12
                        Re: how can one compile vb code into dll?

                        Go to the directory where your source files are. Find a file named with
                        your source name, but without an extension, it will be labelled a "Visual
                        Basic .NET Project". Open that file with Notepad. Find the line with
                        "Output type" in it. Change the text following it to "Library" and and save
                        it. You are done.

                        Bobbo


                        Comment

                        • gg

                          #13
                          Re: how can one compile vb code into dll?

                          thx, I tried that but I still get exe not dll built
                          "Robert S. Liles" <rliles@midsout h.rr.com> wrote in message
                          news:dliue.5826 $pU.5083@tornad o.ohiordc.rr.co m...[color=blue]
                          > Go to the directory where your source files are. Find a file named with
                          > your source name, but without an extension, it will be labelled a "Visual
                          > Basic .NET Project". Open that file with Notepad. Find the line with
                          > "Output type" in it. Change the text following it to "Library" and and
                          > save it. You are done.
                          >
                          > Bobbo
                          >[/color]


                          Comment

                          • Armin Zingler

                            #14
                            Re: how can one compile vb code into dll? - neither vbc nor classlibrary template are avail

                            "gg" <gg@nomail.ni l> schrieb[color=blue]
                            > OOPS, could not find vbc anywhere!
                            > Of course, there is no class library template in my standard
                            > version of dotnet 2003
                            > Worse, changing output type in the vbproject does not do anything
                            > either.
                            >
                            > For a while I thought I got an easy solution for the standard
                            > edition of dot 2003 with vbc.exe.
                            >
                            > Looks like I have to do some digging ( so far no luck with google
                            > nor msdn)
                            >
                            > Help![/color]



                            vbc.exe is part of the .Net Framework somewhere @
                            c:\windows\micr osoft.net\frame work....


                            Armin

                            Comment

                            • Robert S. Liles

                              #15
                              Re: how can one compile vb code into dll?

                              Something I think we all forgot to add, in addition to setting "OutputType "
                              to "Library" instead of "WinExe" or "Exe", set "StartupObj ect" to "". If
                              you do BOTH of these, it really SHOULD work. It works fine for me. If it
                              still won't work, email me. I was doing this so often that I wrote a VB
                              program to do it for me. I can email the program to you as an attachment.
                              You run the program then pick the solution you want as a DLL. The program
                              then makes the changes for you.

                              Bobbo


                              Comment

                              Working...