Results 1 to 6 of 6

Thread: [RESOLVED] User-defined type not defined

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2009
    Posts
    31

    Resolved [RESOLVED] User-defined type not defined

    Hi! I'm getting this message when running my application. This is strange as if I go to the references, my type is checked. I found now that, if I uncheck it, click OK, then open references and check it again, then click OK... the project runs as expected. I mean, it is only a matter of unchecking and checking it every time I restart VB6. Or, I can even solve by selecting again the reference, but again after I restart VB6, the error pops again. Is this normal? What can I do to solve?
    Thanks!

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: User-defined type not defined

    Welcome to the forums.

    Out of curiosity, what is the UDT? Do you also have it declared in your project?

    Maybe VB is confused to which one to use. Maybe you can resolve this by declaring the type specifically with the class?
    Example: Dim myRect As SomeReference.RECT
    Last edited by LaVolpe; Sep 23rd, 2009 at 09:40 PM. Reason: added welcome msg
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2009
    Posts
    31

    Re: User-defined type not defined

    Now it's working! Thank you very much!

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: User-defined type not defined

    What did you do?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 2009
    Posts
    31

    Re: User-defined type not defined

    I specified the class.

  6. #6
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427

    Re: User-defined type not defined

    Now please help us out by marking the thread as resolved. If you have JavaScript enabled you can do that easily by pulling down the Thread Tools menu and selecting the Mark Thread Resolved item.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width