Attachmate Worldwide  |   Contact Us  |   NetIQ.com
Extend. Manage. Secure. More than 30 years in the business. Over 65,000 customers.
Home » Support » Technical Library » Technical Notes

Technical Notes

Errors with Early-bound OLE Automation Applications and Reflection 2011, 2008, or 2007
Technical Note 2209
Last Reviewed 20-Jul-2010
Applies To
Reflection for IBM 2011
Reflection for UNIX and OpenVMS 2011
Reflection Standard Suite 2011
Reflection for IBM 2008
Reflection for UNIX and OpenVMS 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.1 or earlier or EXTRA! X-treme version 9.1 or earlier, it may require changes to run with Reflection 2011, 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 one of the following errors when attempting to build or run the project with Reflection 2011, 2008, or 2007:

Compile error: Can't find project or library

Or

This is an unsupported session instance.

The VB References dialog may also display 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 2011, 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 COM and Reflection 2011, 2008, or 2007
9993 Index of Reflection Scripting Technical Notes

horizontal line

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.