I M Getting The Error User- Defined Type Not Defined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nani2717
    New Member
    • Feb 2008
    • 2

    I M Getting The Error User- Defined Type Not Defined

    HI ALL,
    I m currenly working with a visual basic 6 project.i m new to VB.wen i tried to comile a file i got the error "user defined type not defined".i don know wat appropriate reference to add.i m enclosing the code here.

    [code=vb]
    Private Sub Form_Load()
    On Error Resume Next
    tries = 1
    Load frmDialog
    Set FRM = frmDialog
    AutoRedraw = LoadResString(1 07)
    If LoadResString(1 07) = "0" Then
    Dim obj3 As New Class3
    obj3.SET_BACKCO LOR Me
    cmdCancelImageB utton.Visible = False
    cmdOkImageButto n.Visible = False
    End If
    End Sub[/code]

    i m getting an error on Dim obj3 as new class3
    i do not know wat dll i m using and wat reference i shld add.
    pls help.
    thanks
    Last edited by debasisdas; Feb 11 '08, 05:22 AM. Reason: added code=vb tags
  • mafaisal
    New Member
    • Sep 2007
    • 142

    #2
    Hello
    I think The Class Class3 is Not Defines
    So cannot able to create object of that
    Check that

    Faisal

    Originally posted by nani2717
    HI ALL,
    I m currenly working with a visual basic 6 project.i m new to VB.wen i tried to comile a file i got the error "user defined type not defined".i don know wat appropriate reference to add.i m enclosing the code here.


    Private Sub Form_Load()
    On Error Resume Next
    tries = 1
    Load frmDialog
    Set FRM = frmDialog
    AutoRedraw = LoadResString(1 07)
    If LoadResString(1 07) = "0" Then
    Dim obj3 As New Class3
    obj3.SET_BACKCO LOR Me
    cmdCancelImageB utton.Visible = False
    cmdOkImageButto n.Visible = False
    End If
    End Sub

    i m getting an error on Dim obj3 as new class3
    i do not know wat dll i m using and wat reference i shld add.
    pls help.
    thanks

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      have you refereed to class3 ?

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        Hi

        Does your class3 exists?

        Rey Sean

        Comment

        • nani2717
          New Member
          • Feb 2008
          • 2

          #5
          thank u debasisdas n lotus18.

          Actually i m new to new to VB.So can some one pls tell me how to create userdefined types and also how to add reference to it.pls help.

          Comment

          Working...