Design-time only code (e.g. component editors) needs to be kept in separate units. 
These units will only compile as part of a package: instead of a .dcu, the compiled code is in one of the system .bpls.
 
Regards, Paul.
-----Original Message-----
From: Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 11:28 AM
To: Multiple recipients of list delphi
Subject: [DUG]: DsgnInft unit D5 Standard

I'm updating a project from Delphi 3 to Delphi 5.
 
One of the components causes this error message at compile time:
 
"cannot find unit dsgnintf.dcu"
 
I checked and found only a dsgnintf.int file, not a dcu or pas. But Delphi 3 puts a Dsgnintf.dcu unit into its Lib directory.
 
The reference to DsgnIntf is made in the Register procedure, which for this component looks like this:
 
procedure Register;
 
implementation
 
uses
 DsgnIntf;
 
type
 {Design-time testing by Double-clicking or from popup menu take Test}
 {Added by Ahto Tanner}
 TDialogTest=class(TDefaultEditor)
 public
  procedure ExecuteVerb(Index: Integer); override;
  function GetVerb(Index: Integer): string; override;
  function GetVerbCount: Integer; override;
  procedure Edit; override;
 end;
 
const
 CUSTOM_BUTTON_ID=255;
 MAX_PATH_DISPLAY_LENGTH=35;
 
 
 

//--------------------------------------------------------------------------------------------------------//
procedure Register;
begin
 RegisterComponentEditor(TBrowseFolder, TDialogTest);
  RegisterComponents('Dialogs', [TBrowseFolder]);
end;
 
Is Borland in the habit of shipping DsgnIntf.dcu depending on the edition of Delphi? Using D5 Standard edition.
 
====================================
Patrick Dunford, Christchurch, New Zealand
 
 

Attention: The information contained in this message and/or attachments from AgResearch Limited is intended only for the persons or entities to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipients is prohibited by AgResearch Limited. If you have received this message in error, please notify the sender immediately.


Reply via email to