Results 1 to 4 of 4

Thread: Compile class without VS Studio .Net

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2003
    Location
    Three Rivers, MI
    Posts
    354

    Compile class without VS Studio .Net

    I have Visual Basic Standard Edition, which as far as I can tell, will not compile classes into a dll's (through the gui anyway). I know it can be accomplished using the VBC.exe and some command line arguments but I am not sure which arguments I should be using.

    I thought this would work (a modified version of something I found on the Internet) but it doesn't.

    vbc /t:library /r:System.dll class1.vb

    It give me errors on every line. Is it because I don't have any Imports in the class? Is there a better way to do this?

    By the way, this is how my class looks:
    Code:
    Public Class Class1
        Function about() As String
            Dim str1 As String = "About ClassLibrary1" & _
                StrDup(2, vbCr) & _
                "This is my story" & vbCr & _
                "This is my song."
            Return str1
        End Function
    End Class
    Just in case you are wondering this is a sample from a learn VB.Net book.
    Last edited by BukHix; Sep 23rd, 2003 at 03:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width