Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
Move components from Delphi 5 to Delphi 6 Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
02-Dec-02
Category
Others
Language
Delphi 5.x
Views
77
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			 

Have you tried to compile your components, or 3rd party components you have in 
Delphi 5 into Delphi 6? 
99% of them will not compile. However do not despare. It is only because of a few 
changes Borland has implemented on their latest product. This article covers the 
major changes.

Answer:

First of all, you will discover that the unit dsgnintf.pas is missing. Borland 
changed the name to Designintf.pas, moved the property editor code to a new unit, 
called DesignEditors.pas, put the constants used inside DesignConsts.pas and the 
menus inside DesignMenus.pas

Also the variants have moved from system.pas to their own unit called Variants.pas

The IFormDesigner interface isn't there anymore. You should use the IDesigner and 
typecast your variables. (this is a change probably made to accomodate the CLX and 
I was unable to find any documentation on it from either Borland or Delphi 6 Online 
help system. I only found that every IFormDesigner has been repaced with IDesigner)
 
The IDesignerSelections interface has also changed. The most helpfull change is the 
addition of a Get function that returns a TPersistent when giving the index of the 
member. 

On previous versions if you wanted the TPersistent of an object you wrote:

1   var
2     p: TPersistant;
3     ...
4       P := Selections[i] as TPersistant;
5   
6   //Now you only write:
7   
8   var
9     p: TPersistant;
10    ...
11      P := Selections.get[i];


That's about it. I have used these simple instructions to recompile all of  my 
third party tools, and all of my custom components.

P.S. Just remember... you have to have the source code to do this!!! :-)

			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC