dll not being recognized
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: dll not being recognized

  1. #1
    Join Date
    May 2013
    Posts
    48

    dll not being recognized

    I have a dll that I wrote for reference in my project. I have registered the dll. I have created a reference to it from within my project. However, when I compile my project I get "User defined type not defined" at the statement:
    Dim var As dllname.class. To me this means that the project is not recognizing or seeing the dll even though it's referenced. Can anyone think of a reason the project doesn't recognize my dll? Thanks in advance for your help.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,960

    Re: dll not being recognized

    How about AS New dllname.class

    otherwise, if you used POINTERS it won't work.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    May 2013
    Posts
    48

    Re: dll not being recognized

    I have used this:

    Dim var AS dllname.classname and Set var = New dllname.class name.

    This isn't correct?

    Thanks for your response.

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,960

    Re: dll not being recognized

    Dim var AS NEW dllname.classname
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    May 2013
    Posts
    48

    Re: dll not being recognized

    Thanks for the tip, but the result was the same error, i.e., "User defined type not defined".

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center