Novell Home

TID102460 (D6AX) - Borland Delphi 6 and Novell ActiveX Controls

From Developer Community

AUTHOR: WSC DOCUMENT ID: TID102460 DOCUMENT REVISION: DATE: 2001/07/20 1:24 PM ALERT STATUS: Yellow INFORMATION TYPE: Issue README FOR: D6AX.EXE NOVELL PRODUCT CLASS:

NetWare API

NOVELL PRODUCT and VERSION:

NetWare NDK Feb01

CATEGORY:

none

COMPILER:

Delphi 4.0

TARGET OS:

Windows 98

ABSTRACT:

The first release of Borland's Delphi 6 has a problem with the type library import utility that is used to import 3rd party ActiveX controls into Delphi's IDE

This Delphi bug incorrectly imports several 3rd party controls, or completely fails to import a control. This problem affects controls like Formula One and Lead Tools, but also some of the Novell ActiveX controls. Even if the control seems to be imported correctly (e.g., like NWDir), errors may occur at run-time.

Typical error messages during the ActiveX import are:

  • Errors about Get_ and Set_ methods
  • Syntax errors about "([..])" constructions
  • Warnings that no return value is specified

Borland US reportedly is aware of the problem and is working on it (as of July 2001), so keep an eye on upcoming updates at http://www.inprise.com/devsupport/delphi/

There are some workarounds that may resolve the issue:

a) If you have Delphi 5, import your ActiveX control with D5, copy the D5 tlb import files (NW*.TLB and NW*.DCR) from "Delphi5Imports" to "Delphi6Imports"


b) Manually edit the generated TLB files in the "Delphi6Imports" directory

  • If generated Get_ and Set_ that don't match, remove the "Get_" or "Set_"
  • If the generated function call is really an array index, change the ( ) pair to [ ]
  • If there are warnings that no return value is specified, simply add "result := " to the

begining of the line in the getter.


DETAILED DESCRIPTION



DISCLAIMER THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO NOVELL. NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY THIS INFORMATION. HOWEVER, THE INFORMATION PROVIDED IN THIS DOCUMENT IS FOR YOUR INFORMATION ONLY. NOVELL MAKES NO EXPLICIT OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION.


Self-Extracting File Name: D6AX.EXE

Files Included: Size Date Time

D6AX.TXT (this file) D6AX.MSG 1429 7-10-01 5:24 AM

d6ax.exe

d6ax.exe28.0 K2005-04-06

--devsup

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.