Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Home » Support » Solution Library

Technical Notes

Compile Error "Can't Find Project or Library" With Reflection 2008 or 2007
Technical Note 2209
Last Reviewed 13-Nov-2008
Applies To
Reflection for IBM 2008
Reflection Standard Suite 2008
Reflection for IBM 2007
Summary

If your Microsoft Visual Basic 6.0 (VB6) project was created for use with Reflection version 14.0 or earlier or EXTRA! X-treme version 9.0 or earlier, it may require changes to run with Reflection 2008 or 2007.

Symptoms

If you have developed a Visual Basic (VB) application that uses early binding with prior versions of Reflection or EXTRA! Type Library, you may see the following error when attempting to build or run the project with Reflection 2008 or 2007:

Compile error: Can't find project or library

The VB References dialog also displays one of the following messages (where n.n is a version number):

Missing: Reflection for IBM n.n Object Library
Missing: Attachmate EXTRA! n.n Object Library

Note: These symptoms do not occur with scripts and applications that access the Reflection or EXTRA! COM object using version-independent late binding CreateObject() calls and do not reference the type library information (such as constant enum names).

Solution

To enable your VB project to run with Reflection 2008 or 2007 (with early binding), make the following changes.

  1. Modify Reflection or EXTRA! namespace references in your code as follows.

Change Reflection.Session to ReflectionCOM.Session. For example:

      ribm = New ReflectionCOM.Session

Change EXTRA to EXTRACOM. For example:

      sys = New EXTRACOM.ExtraSystem

  1. In the project References dialog, use "ReflectionCOM" or "EXTRACOM" as appropriate.
  2. Re-compile your project code.
Related Technical Notes
2183 Developer Tools for Attachmate Products
2211 Technical Notes for Reflection for IBM 2007
2271 Programming with Reflection 2007 and COM
9993 Index of Reflection Scripting Technical Notes

Did this technical note answer your question?

Yes    No    Somewhat     Not sure yet

Additional comments about this tech note:

Need further help? For technical support, please contact Support.