vbc /t:library /out:aa.dll /r:System.Data.dll a.vb b.vb

解决方案 »

  1.   

    在.net下编译工程,然后运行都可以!用vbc.exe编译时出现如下错误:E:\AspNet\TAPCS\Components\ClsAIssueMaterial.vb(20) : error BC30002: Type 'TextBox' is not defined.        Public Function CheckNBR(ByRef Flag As Integer, ByVal Msiss_nbr As String, ByRef Msiss_wonbr As TextBox, _
                                                                                                            ~~~~~~~   
    E:\AspNet\TAPCS\Components\ClsAIssueMaterial.vb(21) : error BC30002: Type 'DropDownList' is not defined.                                  ByRef Msiss_site As DropDownList, ByRef Msiss_vend As TextBox, _
                                                          ~~~~~~~~~~~~                                
    E:\AspNet\TAPCS\Components\ClsAIssueMaterial.vb(21) : error BC30002: Type 'TextBox' is not defined.                                  ByRef Msiss_site As DropDownList, ByRef Msiss_vend As TextBox, _
      

  2.   


    为什么提示
    Type 'TextBox' is not defined.
      

  3.   

    1.
    Imports System.Windows.Forms
    2.
    vbc  /r:System.Windows.Forms.DLL yourvb.vb
      

  4.   


    谢谢! 我加了
    Imports System.Web.UI.WebControls(我的是web控件)
    那些textbox之类的错误都没有了!不过还有类型
    Exception
    Page
    DateTime
    函数
    IsNumeric
    Year
    Month
    说没有定义或声明
    我对.net的命名空间的结构不了解,所以不知道该引用那些命名空间!
    麻烦你指点一下!顺便问一句,我怎么才可以查到这些东西呢? :)
      

  5.   

    Imports System
    Imports System.Web
    Imports System.Web.UI
    Imports System.Web.UI.WebControls
    Imports System.Web.UI.HtmlControls