VB6 upgrade - not defined ?

Posted on 2007-07-22
Last Modified: 2013-11-26
I get a build error "A.defines not defined" in my conversion project. The .NET (2003) upgrade wizard created  a new module:

Module UpgradeSupport
      Friend A_Defines_definst As New A.Defines
End Module

A.Defines are found in A.dll which is referenced as a COM lib rary for this project.

I checked the reference and the definition and they are all correct.

Why am I getting a build error ?

Question by:pillmill
    1 Comment
    LVL 34

    Accepted Solution

    I've not used the upgrade wizard, but that error usually means that an Imports statement is missing.  Just including a reference in the project is not enough.  You will also needs a statement on the following lines

       Imports A

    right at the start of the module file - even before

       Module UpgradeSupport

    If the reference is in the project, I would expect Intellisense to offer you the option of A - that is, the relevant dll name - to select as soon as you've typed "Imports"


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now