Reference 编译错误:用户定义类型未定义VB 6.0

Reference 编译错误:用户定义类型未定义VB 6.0,reference,vb6,Reference,Vb6,我在以下位置得到此错误: Dim frmD as frmDocument 我正在使用WindowsXP下的VB6.0,请任何人告诉我需要添加哪些参考资料 这是确切的代码: Private Sub LoadNewDoc() Static lDocumentCount As Long Dim frmD As frmDocument // at this line i got error, User defined type not defined lDocumentCou

我在以下位置得到此错误:

Dim frmD as frmDocument
我正在使用WindowsXP下的VB6.0,请任何人告诉我需要添加哪些参考资料

这是确切的代码:

Private Sub LoadNewDoc()
    Static lDocumentCount As Long
    Dim frmD As frmDocument  // at this line i got error, User defined type not defined
    lDocumentCount = lDocumentCount + 1
    Set frmD = New frmDocument
    frmD.Caption = "Document " & lDocumentCount
    frmD.Show
End Sub

您应该添加对任何包含
frmDocument
的内容的引用,这些内容不是系统类型,也不是任何人都知道的。也许应该有一种形式叫它。通常它在同一个项目中,所以如果它不在那里,可能有人已经删除了它。在“as”之后,我在intellicence中没有选择FRM文档。那么,我如何才能在Intelligence中获得frmDocument选项,那么我应该为此添加哪个引用?您应该添加对任何包含
frmDocument
的内容的引用,该引用不是系统类型,也不是任何人都知道的。只有你知道那可能是什么。frmDocument在你的项目中是一个表单吗?