Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

VB6 upgrade - not defined ?

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 ?

Thanks
0
pillmill
Asked:
pillmill
1 Solution
 
SanclerCommented:
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"

Roger
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now