VBC Error

  • Thread starter vengala s reddy
  • Start date
V

vengala s reddy

VBC :error BC30420: BC 'SubMain' was not found in 'MyTime.dll'.

I am trying to do is compiling a simple program like this
NameSpace Temperature
Public Class TemparatureCB

Inherits System.Web.UI.Page
Public sub CreateTemparatureTable()
Dim f as Double
For f = 1 to 10 step 1
Response.Write("<tr><td>Hello How are youi</td></tr>")
Next

End Sub

End Class
End Namespace
 
M

mikeb

vengala said:
VBC :error BC30420: BC 'SubMain' was not found in 'MyTime.dll'.

I am trying to do is compiling a simple program like this
NameSpace Temperature
Public Class TemparatureCB

Inherits System.Web.UI.Page
Public sub CreateTemparatureTable()
Dim f as Double
For f = 1 to 10 step 1
Response.Write("<tr><td>Hello How are youi</td></tr>")
Next

End Sub

End Class
End Namespace

What command are you using to compile this?

If you're using the vbc command line compiler, you need to add the
"/target:library" option so it knows you're building a DLL. The
compiler now thinks you're building an executable, so it's looking for a
subroutine named Main.

If you're using VS.NET or some other IDE, you need to set up your
project properties correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top