关于VBC.EXE的问题:
我在用VBC编程VB.NET 时总有一些错误 请大家指教
如下列代码(书上例子)
Module module1
Private WithEvents ad As AppDomain
Public Sub main()
Dim x As Int16
Dim y As Int16
ad = AppDomain.CurrentDomain
End Sub
Public Sub ad_unhandleexception(ByVal sender As Object, ByVal
e As System.UnhandledExceptionEventArgs) Handles
ad.UnhandledException
MessageBox.Show(e.ExceptionObject.VbString)
End Sub
End Module
在DOS下输入 VBC MYPRO.VB 它提示"Int16","MessageBox" type is not defined
另外 AppDomain是什么?