<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EntwicklerForum.org &#187; Delphi</title>
	<atom:link href="http://www.entwicklerforum.org/category/delphi/feed" rel="self" type="application/rss+xml" />
	<link>http://www.entwicklerforum.org</link>
	<description>Tipps und Tricks für Entwickler</description>
	<lastBuildDate>Thu, 15 Jul 2010 13:15:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exe-Verkleinern, ohne sie zu komprimieren</title>
		<link>http://www.entwicklerforum.org/exe-verkleinern-aber-ohne-die-exe-zu-komprimieren</link>
		<comments>http://www.entwicklerforum.org/exe-verkleinern-aber-ohne-die-exe-zu-komprimieren#comments</comments>
		<pubDate>Mon, 25 Aug 2008 09:22:45 +0000</pubDate>
		<dc:creator>Paul Exler</dc:creator>
				<category><![CDATA[Allgemein / Web 2.0]]></category>
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=234</guid>
		<description><![CDATA[Falls Ihr auch schonmal den Fall hattet, dass eure Exe einfach zu gro&#223; ist und Ihr diese verkleinern m&#246;chtet, damit sie z.B. auf eine Diskette passt, dann habe ich hier ein paar Tipps f&#252;r euch:
1.) Mit Icarus kann man bei Delphi-Projekten nach ungenutzen Units suchen und diese anschlie&#223;end entfernen, um dadurch die Exe zu verkleinern:
http://www.peganza.com/products_icarus.htm
2.) [...]]]></description>
			<content:encoded><![CDATA[<p>Falls Ihr auch schonmal den Fall hattet, dass eure Exe einfach zu gro&#223; ist und Ihr diese verkleinern m&#246;chtet, damit sie z.B. auf eine Diskette passt, dann habe ich hier ein paar Tipps f&#252;r euch:</p>
<p><strong>1.) </strong>Mit Icarus kann man bei Delphi-Projekten nach ungenutzen Units suchen und diese anschlie&#223;end entfernen, um dadurch die Exe zu verkleinern:</p>
<p><a href="http://www.peganza.com/products_icarus.htm" target="_blank">http://www.peganza.com/products_icarus.htm</a></p>
<p><strong>2.)</strong> Eine weitere M&#246;glichkeit ist die Relocation-Tabelle aus einer Exe zu l&#246;schen, die in den meisten Projekten nicht ben&#246;tigen wird. Delphi packt diese immer in die Exe rein.<br />
 Hierf&#252;r kann man z.B. StripReloc benutzen:</p>
<p><a href="http://www.innosetup.com/striprlc.php">http://www.innosetup.com/striprlc.php</a></p>
<p><strong>3.)</strong> Nat&#252;rlich kann man auch die BPL-Dateien auslagern.<br />
 Diese werden dann beim Start des Projekts geladen und sind nicht in der Exe-Datei mit reingepackt.<br />
 Vor allem, wenn man mit vielen verschiedenen Komponentensammlungen arbeitet, ist dies eine gute M&#246;glichkeit die Exe-Datei kleiner zu bekommen.</p>
<p><strong>4.) </strong>Image-Dateien extern auslagern und erst in den Speicher laden, sobald sie angezeigt werden sollen.</p>
<p>Eine von uns bisher eingesetzte Methode, die ich allerdings inzwischen nicht mehr empfehle, w&#228;re Exe-Packer wie ASPack oder UPX zu verwenden.<br />
 Dies ist zwar sehr effektiv um die Exe-Datei kleiner zu bekommen, bringt aber auch Nachteile ( gefunden bei dem Link von StripReloc ):</p>
<ul>
<li>Upon startup of a compressed EXE/DLL, all of the code is decompressed from the disk image into memory in one pass, which can cause disk thrashing if the system is low on memory and is forced to access the swap file.<br />
 In contrast, with uncompressed EXE/DLLs, the OS allocates memory for code pages on demand (i.e. when they are executed).</li>
</ul>
<ul>
<li>Multiple instances of a compressed EXE/DLL create multiple instances of the code in memory.<br />
 If you have a compressed EXE that contains 1 MB of code (before compression) and the user starts 5 instances of it, approximately 4 MB of memory is wasted.<br />
 Likewise, if you have a DLL that is 1 MB and it is used by 5 running applications, approximately 4 MB of memory is wasted.<br />
 With uncompressed EXE/DLLs, code is only stored in memory once and is shared between instances.</li>
</ul>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;t=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren&amp;notes=Falls%20Ihr%20auch%20schonmal%20den%20Fall%20hattet%2C%20dass%20eure%20Exe%20einfach%20zu%20gro%C3%9F%20ist%20und%20Ihr%20diese%20verkleinern%20m%C3%B6chtet%2C%20damit%20sie%20z.B.%20auf%20eine%20Diskette%20passt%2C%20dann%20habe%20ich%20hier%20ein%20paar%20Tipps%20f%C3%BCr%20euch%3A%0D%0A%0D%0A1.%29%20Mit%20Icarus%20kann%20man%20bei%20Delphi-Projekten%20nach%20" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren&amp;bodytext=Falls%20Ihr%20auch%20schonmal%20den%20Fall%20hattet%2C%20dass%20eure%20Exe%20einfach%20zu%20gro%C3%9F%20ist%20und%20Ihr%20diese%20verkleinern%20m%C3%B6chtet%2C%20damit%20sie%20z.B.%20auf%20eine%20Diskette%20passt%2C%20dann%20habe%20ich%20hier%20ein%20paar%20Tipps%20f%C3%BCr%20euch%3A%0D%0A%0D%0A1.%29%20Mit%20Icarus%20kann%20man%20bei%20Delphi-Projekten%20nach%20" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren&amp;annotation=Falls%20Ihr%20auch%20schonmal%20den%20Fall%20hattet%2C%20dass%20eure%20Exe%20einfach%20zu%20gro%C3%9F%20ist%20und%20Ihr%20diese%20verkleinern%20m%C3%B6chtet%2C%20damit%20sie%20z.B.%20auf%20eine%20Diskette%20passt%2C%20dann%20habe%20ich%20hier%20ein%20paar%20Tipps%20f%C3%BCr%20euch%3A%0D%0A%0D%0A1.%29%20Mit%20Icarus%20kann%20man%20bei%20Delphi-Projekten%20nach%20" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;bm_description=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;title=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;t=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Exe-Verkleinern%2C%20ohne%20sie%20zu%20komprimieren&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexe-verkleinern-aber-ohne-die-exe-zu-komprimieren&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/exe-verkleinern-aber-ohne-die-exe-zu-komprimieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tiburon: 10 min&#252;tiges Video zur kommenden Delphi &#8211; Entwicklungsumgebung</title>
		<link>http://www.entwicklerforum.org/tiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung</link>
		<comments>http://www.entwicklerforum.org/tiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung#comments</comments>
		<pubDate>Tue, 05 Aug 2008 11:21:27 +0000</pubDate>
		<dc:creator>Paul Exler</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=131</guid>
		<description><![CDATA[Tiburon soll die neuste Entwicklungsumgebung aus dem Hause Codegear lauten.
 In einer ersten Preview werden die ersten Neuerungen, in diesem Fall neue Komponenten, vorgestellt.
Hier gelangt Ihr zum Sneak Peek Video mit David I:
http://dn.codegear.com/article/38383






	
	
	
	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Tiburon soll die neuste Entwicklungsumgebung aus dem Hause Codegear lauten.<br />
 In einer ersten Preview werden die ersten Neuerungen, in diesem Fall neue Komponenten, vorgestellt.</p>
<p>Hier gelangt Ihr zum Sneak Peek Video mit David I:</p>
<p><a href="http://dn.codegear.com/article/38383" target="_blank">http://dn.codegear.com/article/38383</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;t=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung&amp;notes=Tiburon%20soll%20die%20neuste%20Entwicklungsumgebung%20aus%20dem%20Hause%20Codegear%20lauten.%0D%0A%20In%20einer%20ersten%20Preview%20werden%20die%20ersten%20Neuerungen%2C%20in%20diesem%20Fall%20neue%20Komponenten%2C%20vorgestellt.%0D%0A%0D%0AHier%20gelangt%20Ihr%20zum%20Sneak%20Peek%20Video%20mit%20David%20I%3A%0D%0A%0D%0Ahttp%3A%2F%2Fdn.codeg" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung&amp;bodytext=Tiburon%20soll%20die%20neuste%20Entwicklungsumgebung%20aus%20dem%20Hause%20Codegear%20lauten.%0D%0A%20In%20einer%20ersten%20Preview%20werden%20die%20ersten%20Neuerungen%2C%20in%20diesem%20Fall%20neue%20Komponenten%2C%20vorgestellt.%0D%0A%0D%0AHier%20gelangt%20Ihr%20zum%20Sneak%20Peek%20Video%20mit%20David%20I%3A%0D%0A%0D%0Ahttp%3A%2F%2Fdn.codeg" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung&amp;annotation=Tiburon%20soll%20die%20neuste%20Entwicklungsumgebung%20aus%20dem%20Hause%20Codegear%20lauten.%0D%0A%20In%20einer%20ersten%20Preview%20werden%20die%20ersten%20Neuerungen%2C%20in%20diesem%20Fall%20neue%20Komponenten%2C%20vorgestellt.%0D%0A%0D%0AHier%20gelangt%20Ihr%20zum%20Sneak%20Peek%20Video%20mit%20David%20I%3A%0D%0A%0D%0Ahttp%3A%2F%2Fdn.codeg" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;bm_description=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;title=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;t=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Tiburon%3A%2010%20min%C3%BCtiges%20Video%20zur%20kommenden%20Delphi%20-%20Entwicklungsumgebung&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Ftiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/tiburon-10-minuetiges-video-zur-kommenden-delphi-entwicklungsumgebung/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi Applikationen mit Laufzeit-Bibliotheken</title>
		<link>http://www.entwicklerforum.org/delphi-applikationen-mit-laufzeit-bibliotheken</link>
		<comments>http://www.entwicklerforum.org/delphi-applikationen-mit-laufzeit-bibliotheken#comments</comments>
		<pubDate>Tue, 29 Jul 2008 12:29:01 +0000</pubDate>
		<dc:creator>Martin Schmid</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=127</guid>
		<description><![CDATA[Bei Delphi gibt es die M&#246;glichkeit Programm mit Laufzeitbibliotheken (BPL) zu ver&#246;ffentlichen.
Dies lohnt sich, dann wenn man mehre Applikationen hat, die dieselben Komponenten verwenden,
 da die Anwendung dann viel kleiner wird.
Wichtig ist dabei, dann man nicht nur die Dateien mit der Endung .bpl sondern auch die Sprachdatei mit der Endung .de zur Applikation packt, sondern [...]]]></description>
			<content:encoded><![CDATA[<p>Bei Delphi gibt es die M&#246;glichkeit Programm mit Laufzeitbibliotheken (BPL) zu ver&#246;ffentlichen.</p>
<p>Dies lohnt sich, dann wenn man mehre Applikationen hat, die dieselben Komponenten verwenden,<br />
 da die Anwendung dann viel kleiner wird.</p>
<p>Wichtig ist dabei, dann man nicht nur die Dateien mit der Endung .bpl sondern auch die Sprachdatei mit der Endung .de zur Applikation packt, sondern kann es passieren, dass z.B. Standard Dialoge beim Button &#8220;Ja&#8221; pl&#246;tzlich &#8220;Yes&#8221; schreiben.</p>
<p>Bei Packages von Fremdherstellern kann das allerdings schwierig werden <img src='http://www.entwicklerforum.org/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Wenn man wissen m&#246;chte, welche Dateien von einer Applikation verwendet werden, kann man das Tool Dependency Walker verwenden.</p>
<p><a title="Dependency Walker" href="http://dependencywalker.com/" target="_blank">http://dependencywalker.com/</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;t=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken&amp;notes=Bei%20Delphi%20gibt%20es%20die%20M%C3%B6glichkeit%20Programm%20mit%20Laufzeitbibliotheken%20%28BPL%29%20zu%20ver%C3%B6ffentlichen.%0D%0A%0D%0ADies%20lohnt%20sich%2C%20dann%20wenn%20man%20mehre%20Applikationen%20hat%2C%20die%20dieselben%20Komponenten%20verwenden%2C%0D%0A%20da%20die%20Anwendung%20dann%20viel%20kleiner%20wird.%0D%0A%0D%0AWichtig%20ist" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken&amp;bodytext=Bei%20Delphi%20gibt%20es%20die%20M%C3%B6glichkeit%20Programm%20mit%20Laufzeitbibliotheken%20%28BPL%29%20zu%20ver%C3%B6ffentlichen.%0D%0A%0D%0ADies%20lohnt%20sich%2C%20dann%20wenn%20man%20mehre%20Applikationen%20hat%2C%20die%20dieselben%20Komponenten%20verwenden%2C%0D%0A%20da%20die%20Anwendung%20dann%20viel%20kleiner%20wird.%0D%0A%0D%0AWichtig%20ist" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken&amp;annotation=Bei%20Delphi%20gibt%20es%20die%20M%C3%B6glichkeit%20Programm%20mit%20Laufzeitbibliotheken%20%28BPL%29%20zu%20ver%C3%B6ffentlichen.%0D%0A%0D%0ADies%20lohnt%20sich%2C%20dann%20wenn%20man%20mehre%20Applikationen%20hat%2C%20die%20dieselben%20Komponenten%20verwenden%2C%0D%0A%20da%20die%20Anwendung%20dann%20viel%20kleiner%20wird.%0D%0A%0D%0AWichtig%20ist" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;bm_description=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;title=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;t=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Delphi%20Applikationen%20mit%20Laufzeit-Bibliotheken&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-applikationen-mit-laufzeit-bibliotheken&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/delphi-applikationen-mit-laufzeit-bibliotheken/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Priorit&#228;t des Hauptprozesses &#228;ndern</title>
		<link>http://www.entwicklerforum.org/prioritaet-des-hauptprozesses-aendern</link>
		<comments>http://www.entwicklerforum.org/prioritaet-des-hauptprozesses-aendern#comments</comments>
		<pubDate>Tue, 08 Jul 2008 14:24:52 +0000</pubDate>
		<dc:creator>Pascal Potrafke</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=100</guid>
		<description><![CDATA[Ab und an ist es n&#246;tig die Prozesspriorit&#228;t der eigenen Anwendung zu &#228;ndern.

var
  hdlMyApp : THandle;
&#160;
  hdlMyApp := GetCurrentThread;
  SetThreadPriority&#40; hdlMyApp , THREAD_PRIORITY_IDLE &#41;;







	
	
	
	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Ab und an ist es n&#246;tig die Prozesspriorit&#228;t der eigenen Anwendung zu &#228;ndern.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span>
  hdlMyApp <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">THandle</span><span style="color: #000066;">;</span>
&nbsp;
  hdlMyApp <span style="color: #000066;">:</span><span style="color: #000066;">=</span> GetCurrentThread<span style="color: #000066;">;</span>
  SetThreadPriority<span style="color: #000066;">&#40;</span> hdlMyApp <span style="color: #000066;">,</span> THREAD_PRIORITY_IDLE <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;t=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern&amp;notes=Ab%20und%20an%20ist%20es%20n%C3%B6tig%20die%20Prozesspriorit%C3%A4t%20der%20eigenen%20Anwendung%20zu%20%C3%A4ndern.%0D%0A%0D%0Avar%0D%0A%20%20hdlMyApp%20%3A%20THandle%3B%0D%0A%0D%0A%20%20hdlMyApp%20%3A%3D%20GetCurrentThread%3B%0D%0A%20%20SetThreadPriority%28%20hdlMyApp%20%2C%20THREAD_PRIORITY_IDLE%20%29%3B%0D%0A" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern&amp;bodytext=Ab%20und%20an%20ist%20es%20n%C3%B6tig%20die%20Prozesspriorit%C3%A4t%20der%20eigenen%20Anwendung%20zu%20%C3%A4ndern.%0D%0A%0D%0Avar%0D%0A%20%20hdlMyApp%20%3A%20THandle%3B%0D%0A%0D%0A%20%20hdlMyApp%20%3A%3D%20GetCurrentThread%3B%0D%0A%20%20SetThreadPriority%28%20hdlMyApp%20%2C%20THREAD_PRIORITY_IDLE%20%29%3B%0D%0A" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern&amp;annotation=Ab%20und%20an%20ist%20es%20n%C3%B6tig%20die%20Prozesspriorit%C3%A4t%20der%20eigenen%20Anwendung%20zu%20%C3%A4ndern.%0D%0A%0D%0Avar%0D%0A%20%20hdlMyApp%20%3A%20THandle%3B%0D%0A%0D%0A%20%20hdlMyApp%20%3A%3D%20GetCurrentThread%3B%0D%0A%20%20SetThreadPriority%28%20hdlMyApp%20%2C%20THREAD_PRIORITY_IDLE%20%29%3B%0D%0A" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;bm_description=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;title=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;t=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Priorit%C3%A4t%20des%20Hauptprozesses%20%C3%A4ndern&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fprioritaet-des-hauptprozesses-aendern&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/prioritaet-des-hauptprozesses-aendern/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objekte serealisieren und deserialisieren</title>
		<link>http://www.entwicklerforum.org/objekte-serealisieren-und-deserialisieren</link>
		<comments>http://www.entwicklerforum.org/objekte-serealisieren-und-deserialisieren#comments</comments>
		<pubDate>Sun, 22 Jun 2008 10:05:41 +0000</pubDate>
		<dc:creator>Pascal Potrafke</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=98</guid>
		<description><![CDATA[Sch&#246;nen guten Tag liebe Delphi Gemeinde!
 Was in vielen &#8220;modernen&#8221; Sprachen bereits gang und g&#228;be ist und zum guten Ton geh&#246;rt haben wir nicht zur Verf&#252;gung, das serealisieren und deserialisieren von Objekten. Mit hilfe der RTTI (Run Time Type Info) und einigen Einschr&#228;nkungen gibt es jedoch auch f&#252;r uns die M&#246;glichkeit derartige Mechanismen zu schaffen. [...]]]></description>
			<content:encoded><![CDATA[<p>Sch&#246;nen guten Tag liebe Delphi Gemeinde!<br />
 Was in vielen &#8220;modernen&#8221; Sprachen bereits gang und g&#228;be ist und zum guten Ton geh&#246;rt haben wir nicht zur Verf&#252;gung, das serealisieren und deserialisieren von Objekten. Mit hilfe der RTTI (Run Time Type Info) und einigen Einschr&#228;nkungen gibt es jedoch auch f&#252;r uns die M&#246;glichkeit derartige Mechanismen zu schaffen. Im folgendem m&#246;chte ich gerne meinen L&#246;sungsansatz vorstellen, der mir und vielleicht sogar dem ein oder anderem Arbeit erspart oder zumindest Hilfestellung gibt.<br />
 <span id="more-98"></span><br />
 Da ich in der Entwicklung alle meine Objekte mit dieser Funktion ausstatten m&#246;chte, muss ich mir eine eigene Classroot schaffen. Ich habe mich an dieser Stelle f&#252;r den Typ TPersistent als Vaterklasse entschieden, da mir dieser die Methode Assign() zur Verf&#252;gung stellt.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">type</span>
  TeqObject <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span> TPersistent <span style="color: #000066;">&#41;</span></pre></div></div>

<p>In meiner eigenen Entwicklung leite ich nun alle meine ben&#246;tigten Klassen von TeqObject ab.<br />
 Ein einfaches Beispiel soll die Anwendung und den Nutzen demonstrieren.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">type</span> TMitarbeiter <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span> TeqObject <span style="color: #000066;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">private</span>
    M_Vorname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Nachname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Alter <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Integer</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">published</span>
    <span style="color: #000000; font-weight: bold;">property</span> Vorname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Vorname <span style="color: #000066;">write</span> M_Vorname<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Nachname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Nachname <span style="color: #000066;">write</span> M_Nachname<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Alter <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Integer</span> <span style="color: #000066;">read</span> M_Alter <span style="color: #000066;">write</span> M_Alter<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">procedure</span> ErzeugeMitarbeiter<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">var</span>
  mitarbeiter <span style="color: #000066;">:</span> TMitarbeiter<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">begin</span>
  mitarbeiter <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TMitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">with</span> mitarbeiter <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    Vorname  <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Pascal'</span><span style="color: #000066;">;</span>
    Nachname <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Potrafke'</span><span style="color: #000066;">;</span>
    Alter    <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">24</span><span style="color: #000066;">;</span>
    SaveAsXML<span style="color: #000066;">&#40;</span> <span style="color: #ff0000;">'mitarbeiter.xml'</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
  <span style="color: #000066;">FreeAndNil</span><span style="color: #000066;">&#40;</span> mitarbeiter <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span></pre></div></div>

<p>Was habe ich nun gemacht? Ich habe ein Klasse erstellt, von dieser ein Objekt instanziiert und dieses einfach als XML gespeichert. Das ergebnis sieht wie folgt aus.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  24
  Potrafke
  Pascal</pre></div></div>

<p>Die Delphi RTTI erlaubt es nur auf Eigenschaften zuzugreifen die im published Block definiert sind. Es werden also nicht alle Member Eigenschaften serialisiert. Das ist auch der Grund daf&#252;r, dass in dem Beispiel nur die Properties in der XML Datei zu sehen sind.<br />
 Was serialisiert wurde kann nat&#252;rlich auch wieder deserialisiert werden. Daf&#252;r gibt es das obligatorische Gegenst&#252;ck zur allen Save() Methoden in Delphi, n&#228;mlich die Load() Methoden.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">mitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">LoadFromXML</span><span style="color: #000066;">&#40;</span> <span style="color: #ff0000;">'mitarbeiter.xml'</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>

<p>Soweit so gut, allerdings gibt es auch die ein oder andere Einschr&#228;nkung. Im Detail bedeutet das, dass nicht f&#252;r alle Typen von Borland RTTI Informationen zur Laufzeit erzeugt werden.<br />
 Dazu geh&#246;ren tkRecord, tkArray, tkDynArray (bedingt) und Pointer jeglicher Art.</p>
<ol>tkArray: Delphi brauch hier keine Informationen, da normale (statische) Arrays kein Cleanup brauchen. </ol>
<ol>tkDynArray: F&#252;r tkDynArray wird zwar eine RTTI Information zur Laufzeit erzeugt, diese dient Delphi jedoch nur um bei dem Speicher Management die Infos zu bekommen wieviele Eintr&#228;ge es von welchem Typ aufr&#228;umen muss. </ol>
<p>Ein kurzer Ausschnitt aus der TypeInfo.pas (Delphi 2007 Version 11) soll die fehlenden Implementationen zeigen.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">  TTypeData <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">packed</span> <span style="color: #000000; font-weight: bold;">record</span>
    <span style="color: #000000; font-weight: bold;">case</span> TTypeKind <span style="color: #000000; font-weight: bold;">of</span>
      tkUnknown<span style="color: #000066;">,</span> tkLString<span style="color: #000066;">,</span> tkWString<span style="color: #000066;">,</span> tkVariant<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkInteger<span style="color: #000066;">,</span> tkChar<span style="color: #000066;">,</span> tkEnumeration<span style="color: #000066;">,</span> tkSet<span style="color: #000066;">,</span> tkWChar<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        OrdType<span style="color: #000066;">:</span> TOrdType<span style="color: #000066;">;</span>
        <span style="color: #000000; font-weight: bold;">case</span> TTypeKind <span style="color: #000000; font-weight: bold;">of</span>
          tkInteger<span style="color: #000066;">,</span> tkChar<span style="color: #000066;">,</span> tkEnumeration<span style="color: #000066;">,</span> tkWChar<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
            <span style="color: #000066;">MinValue</span><span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Longint</span><span style="color: #000066;">;</span>
            <span style="color: #000066;">MaxValue</span><span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Longint</span><span style="color: #000066;">;</span>
            <span style="color: #000000; font-weight: bold;">case</span> TTypeKind <span style="color: #000000; font-weight: bold;">of</span>
              tkInteger<span style="color: #000066;">,</span> tkChar<span style="color: #000066;">,</span> tkWChar<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
              tkEnumeration<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
                BaseType<span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">;</span>
                NameList<span style="color: #000066;">:</span> ShortStringBase<span style="color: #000066;">;</span>
                EnumUnitName<span style="color: #000066;">:</span> ShortStringBase<span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
          tkSet<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
            CompType<span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">&#41;</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkFloat<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        FloatType<span style="color: #000066;">:</span> TFloatType<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkString<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        MaxLength<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Byte</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkClass<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        ClassType<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">TClass</span><span style="color: #000066;">;</span>
        ParentInfo<span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">;</span>
        PropCount<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">SmallInt</span><span style="color: #000066;">;</span>
        UnitName<span style="color: #000066;">:</span> ShortStringBase<span style="color: #000066;">;</span>
       <span style="color: #808080; font-style: italic;">{PropData: TPropData}</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkMethod<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        MethodKind<span style="color: #000066;">:</span> TMethodKind<span style="color: #000066;">;</span>
        <span style="color: #000066;">ParamCount</span><span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Byte</span><span style="color: #000066;">;</span>
        ParamList<span style="color: #000066;">:</span> <span style="color: #000000; font-weight: bold;">array</span><span style="color: #000066;">&#91;</span>0<span style="color: #000066;">..</span>1023<span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">of</span> <span style="color: #000066; font-weight: bold;">Char</span>
       <span style="color: #808080; font-style: italic;">{ParamList: array[1..ParamCount] of
          record
            Flags: TParamFlags;
            ParamName: ShortString;
            TypeName: ShortString;
          end;
        ResultType: ShortString}</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkInterface<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        IntfParent <span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">{ ancestor }</span>
        IntfFlags <span style="color: #000066;">:</span> TIntfFlagsBase<span style="color: #000066;">;</span>
        Guid <span style="color: #000066;">:</span> TGUID<span style="color: #000066;">;</span>
        IntfUnit <span style="color: #000066;">:</span> ShortStringBase<span style="color: #000066;">;</span>
       <span style="color: #808080; font-style: italic;">{PropData: TPropData}</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkInt64<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        MinInt64Value<span style="color: #000066;">,</span> MaxInt64Value<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Int64</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
      tkDynArray<span style="color: #000066;">:</span> <span style="color: #000066;">&#40;</span>
        elSize<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Longint</span><span style="color: #000066;">;</span>
        elType<span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">;</span>       <span style="color: #808080; font-style: italic;">// nil if type does not require cleanup</span>
        varType<span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Integer</span><span style="color: #000066;">;</span>         <span style="color: #808080; font-style: italic;">// Ole Automation varType equivalent</span>
        elType2<span style="color: #000066;">:</span> PPTypeInfo<span style="color: #000066;">;</span>      <span style="color: #808080; font-style: italic;">// independent of cleanup</span>
        DynUnitName<span style="color: #000066;">:</span> ShortStringBase<span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span></pre></div></div>

<p>Das hat zur Folge, das wenn man dieses Feature verwenden m&#246;chte, sich von Records und (dynamischen) Arrays verabschieden muss.<br />
 Anstelle von Records werden nun Klassen verwendet. Was bereits beim Mitarbeiter Beispiel gemacht wurde. Denn f&#252;r solch einfache Strukturen h&#228;tte es eigentlich auch ein normaler Record getan.<br />
 Dennoch denke ich das dieser geringe Mehraufwand bei der Definition in hinsicht auf das (de)serialisieren kaum ins Gewicht f&#228;llt.<br />
 (Dynamische) Arrays werden nun durch eine weitere Classroot ersetzt.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">type</span> TDyneqObjectList <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">array</span> <span style="color: #000000; font-weight: bold;">of</span> TeqObject<span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">type</span>
  TeqObjectList <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span> TeqObject <span style="color: #000066;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">private</span>
    M_List <span style="color: #000066;">:</span> TDyneqObjectList<span style="color: #000066;">;</span>
<span style="color: #000066;">...</span>
<span style="color: #000066;">...</span>
<span style="color: #000066;">...</span></pre></div></div>

<p>Mit dieser Listenklassen k&#246;nnen Array Strukturen abgebildet werden und das (de)serialisieren Feature weiterhin bequem verwendet werden. Folgendes Beispiel soll die Listenklasse demonstrieren.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">type</span> TUnternehmen <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span> TeqObject <span style="color: #000066;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">private</span>
    M_Firmenname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Internetadresse <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Mitarbeiter <span style="color: #000066;">:</span> TeqObjectList<span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">public</span>
    <span style="color: #000000; font-weight: bold;">constructor</span> Create<span style="color: #000066;">;</span> <span style="color: #000000; font-weight: bold;">override</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">published</span>
    <span style="color: #000000; font-weight: bold;">property</span> Firmenname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Firmenname <span style="color: #000066;">write</span> M_Firmenname<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Internetadresse <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Internetadresse <span style="color: #000066;">write</span> M_Internetadresse<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Mitarbeiter <span style="color: #000066;">:</span> TeqObjectList <span style="color: #000066;">read</span> M_Mitarbeiter <span style="color: #000066;">write</span> M_Mitarbeiter<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">type</span> TMitarbeiter <span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #000066;">&#40;</span> TeqObject <span style="color: #000066;">&#41;</span>
  <span style="color: #000000; font-weight: bold;">private</span>
    M_Vorname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Nachname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span><span style="color: #000066;">;</span>
    M_Alter <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Integer</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">published</span>
    <span style="color: #000000; font-weight: bold;">property</span> Vorname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Vorname <span style="color: #000066;">write</span> M_Vorname<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Nachname <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">String</span> <span style="color: #000066;">read</span> M_Nachname <span style="color: #000066;">write</span> M_Nachname<span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">property</span> Alter <span style="color: #000066;">:</span> <span style="color: #000066; font-weight: bold;">Integer</span> <span style="color: #000066;">read</span> M_Alter <span style="color: #000066;">write</span> M_Alter<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">constructor</span> TUnternehmen<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">begin</span>
  <span style="color: #000000; font-weight: bold;">inherited</span> Create<span style="color: #000066;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">Self</span><span style="color: #000066;">.</span><span style="color: #006600;">M_Mitarbeiter</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TeqObjectList<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">procedure</span> ErzeugeUnternehmen<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">var</span>
  unternehmen <span style="color: #000066;">:</span> TUnternehmen<span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">begin</span>
  unternehmen <span style="color: #000066;">:</span><span style="color: #000066;">=</span> TUnternehmen<span style="color: #000066;">.</span><span style="color: #006600;">Create</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">with</span> unternehmen <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
    Firmenname      <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'EQUITANIA Software GmbH'</span><span style="color: #000066;">;</span>
    Internetadresse <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'http://www.equitania.de'</span><span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">with</span> <span style="color: #000066;">&#40;</span> Mitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Item</span><span style="color: #000066;">&#91;</span> Mitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Add</span><span style="color: #000066;">&#40;</span> TMitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Create</span> <span style="color: #000066;">&#41;</span> <span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">as</span> TMitarbeiter <span style="color: #000066;">&#41;</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
      Vorname  <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Pascal'</span><span style="color: #000066;">;</span>
      Nachname <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Potrafke'</span><span style="color: #000066;">;</span>
      Alter    <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">24</span><span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">with</span> <span style="color: #000066;">&#40;</span> Mitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Item</span><span style="color: #000066;">&#91;</span> Mitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Add</span><span style="color: #000066;">&#40;</span> TMitarbeiter<span style="color: #000066;">.</span><span style="color: #006600;">Create</span> <span style="color: #000066;">&#41;</span> <span style="color: #000066;">&#93;</span> <span style="color: #000000; font-weight: bold;">as</span> TMitarbeiter <span style="color: #000066;">&#41;</span> <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">begin</span>
      Vorname  <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Paul'</span><span style="color: #000066;">;</span>
      Nachname <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Exler'</span><span style="color: #000066;">;</span>
      Alter    <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #0000ff;">24</span><span style="color: #000066;">;</span>
    <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
    SaveAsXML<span style="color: #000066;">&#40;</span> <span style="color: #ff0000;">'unternehmen.xml'</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
  <span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span>
<span style="color: #000000; font-weight: bold;">end</span><span style="color: #000066;">;</span></pre></div></div>

<p>Die List funktioniert wie eine StringList und besitzt Methode wie Add(), Remove(), Item, etc.<br />
 Das Ergebnis sieht nun wie folgt aus.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">  EQUITANIA Software GmbH
  http://www.equitania.de
&nbsp;
      24
      Potrafke
      Pascal
&nbsp;
      24
      Exler
      Paul</pre></div></div>

<p>Von der Komplexit&#228;t der Klassenstrukturen gibt es keinerlei Einschr&#228;nkungen.<br />
 Auch das Einlesen dieses XML Gebildes ist kein Problem. Einzige Schwierigkeit war hier, das beim einlesen die Objekte IN der Liste von dem jeweiligen Typ instanziiert werden m&#252;ssen damit zur Laufzeit drauf zur&#252;ckgegriffen werden kann. Aber auch darum muss man sich nicht mehr k&#252;mmern.<br />
 Was man jedoch derzeit noch von Hand machen musst ist das registrieren der Klassen. Ohne dem werden bzw. k&#246;nnen die Objekte nicht instanziiert werden.</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">initialization</span>
  <span style="color: #000066;">RegisterClasses</span><span style="color: #000066;">&#40;</span> <span style="color: #000066;">&#91;</span> TUnternehmen<span style="color: #000066;">,</span> TMitarbeiter <span style="color: #000066;">&#93;</span> <span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>

<p>So, nun w&#252;nsche ich viel Spass beim ausprobieren.<br />
 Eines m&#246;chte ich noch sagen. Der Code kann Fehler enthalten. Daher ist die Benutzung auf eigene Gefahr. Verbesserungsvorschl&#228;ge und Anregungen gerne gesehen.<br />
 <a href="http://www.entwicklerforum.org/wp-content/uploads/2008/06/core.zip">Sourcecode zum Download</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;t=Objekte%20serealisieren%20und%20deserialisieren" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Objekte%20serealisieren%20und%20deserialisieren%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren&amp;notes=Sch%C3%B6nen%20guten%20Tag%20liebe%20Delphi%20Gemeinde%21%0D%0A%20Was%20in%20vielen%20%22modernen%22%20Sprachen%20bereits%20gang%20und%20g%C3%A4be%20ist%20und%20zum%20guten%20Ton%20geh%C3%B6rt%20haben%20wir%20nicht%20zur%20Verf%C3%BCgung%2C%20das%20serealisieren%20und%20deserialisieren%20von%20Objekten.%20Mit%20hilfe%20der%20RTTI%20%28Run%20Time%20Type%20I" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren&amp;bodytext=Sch%C3%B6nen%20guten%20Tag%20liebe%20Delphi%20Gemeinde%21%0D%0A%20Was%20in%20vielen%20%22modernen%22%20Sprachen%20bereits%20gang%20und%20g%C3%A4be%20ist%20und%20zum%20guten%20Ton%20geh%C3%B6rt%20haben%20wir%20nicht%20zur%20Verf%C3%BCgung%2C%20das%20serealisieren%20und%20deserialisieren%20von%20Objekten.%20Mit%20hilfe%20der%20RTTI%20%28Run%20Time%20Type%20I" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren&amp;annotation=Sch%C3%B6nen%20guten%20Tag%20liebe%20Delphi%20Gemeinde%21%0D%0A%20Was%20in%20vielen%20%22modernen%22%20Sprachen%20bereits%20gang%20und%20g%C3%A4be%20ist%20und%20zum%20guten%20Ton%20geh%C3%B6rt%20haben%20wir%20nicht%20zur%20Verf%C3%BCgung%2C%20das%20serealisieren%20und%20deserialisieren%20von%20Objekten.%20Mit%20hilfe%20der%20RTTI%20%28Run%20Time%20Type%20I" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;bm_description=Objekte%20serealisieren%20und%20deserialisieren&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;title=Objekte%20serealisieren%20und%20deserialisieren" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;t=Objekte%20serealisieren%20und%20deserialisieren" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Objekte%20serealisieren%20und%20deserialisieren&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-serealisieren-und-deserialisieren&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/objekte-serealisieren-und-deserialisieren/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel-Zugriff per Ole-Objekt</title>
		<link>http://www.entwicklerforum.org/excel-zugriff-per-ole-objekt</link>
		<comments>http://www.entwicklerforum.org/excel-zugriff-per-ole-objekt#comments</comments>
		<pubDate>Fri, 08 Feb 2008 11:02:05 +0000</pubDate>
		<dc:creator>Paul Exler</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/excel-zugriff-per-ole-objekt</guid>
		<description><![CDATA[Um mit Delphi eine Exceldatei zu editieren, kann man das ganze z.B. &#252;ber ein Ole-Objekt l&#246;sen.
Bei meinem Beispiel gehe ich davon aus, dass bereits eine Excel-Datei existiert, die wir auslesen oder bearbeiten wollen.
Hier ein Codeschnipsel zu &#214;ffnen und Auslesen der Datei:

Excel := CreateOleObject&#40;'excel.application'&#41;;
Excel.Visible := false;  //Macht das Excel-Fenster sichtbar
Excel.Workbooks.Open&#40;'C:\daten\testexcel.xls'&#41;;
strFeldA1 := Excel.ActiveSheet.Cells&#91;1,1&#93;.Value; // Lie&#223;t das [...]]]></description>
			<content:encoded><![CDATA[<p>Um mit Delphi eine Exceldatei zu editieren, kann man das ganze z.B. &#252;ber ein Ole-Objekt l&#246;sen.</p>
<p>Bei meinem Beispiel gehe ich davon aus, dass bereits eine Excel-Datei existiert, die wir auslesen oder bearbeiten wollen.</p>
<p>Hier ein Codeschnipsel zu &#214;ffnen und Auslesen der Datei:</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">Excel <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreateOleObject<span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'excel.application'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">Visible</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #000066;">;</span>  <span style="color: #808080; font-style: italic;">//Macht das Excel-Fenster sichtbar</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">Workbooks</span><span style="color: #000066;">.</span><span style="color: #006600;">Open</span><span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'C:\daten\testexcel.xls'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
strFeldA1 <span style="color: #000066;">:</span><span style="color: #000066;">=</span> Excel<span style="color: #000066;">.</span><span style="color: #006600;">ActiveSheet</span><span style="color: #000066;">.</span><span style="color: #006600;">Cells</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">1</span><span style="color: #000066;">,</span><span style="color: #0000ff;">1</span><span style="color: #000066;">&#93;</span><span style="color: #000066;">.</span><span style="color: #006600;">Value</span><span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">// Ließt das Feld A1</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">DisplayAlerts</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #000066;">;</span>  <span style="color: #808080; font-style: italic;">//Deaktiviert Nachfrage beim Beenden</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">quit</span><span style="color: #000066;">;</span>  <span style="color: #808080; font-style: italic;">//Beendet Excel (Wichtig sonst bleibt es immer offen im Hintergrund)</span></pre></div></div>

<p>Um ein Feld zu &#228;ndern erweitern wir das ganze ein wenig:</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">Excel <span style="color: #000066;">:</span><span style="color: #000066;">=</span> CreateOleObject<span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'excel.application'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">Visible</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #000066;">;</span>   <span style="color: #808080; font-style: italic;">//Macht das Excel-Fenster sichtbar</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">Workbooks</span><span style="color: #000066;">.</span><span style="color: #006600;">Open</span><span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'C:\daten\testexcel.xls'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">ActiveSheet</span><span style="color: #000066;">.</span><span style="color: #006600;">Cells</span><span style="color: #000066;">&#91;</span><span style="color: #0000ff;">1</span><span style="color: #000066;">,</span><span style="color: #0000ff;">1</span><span style="color: #000066;">&#93;</span><span style="color: #000066;">.</span><span style="color: #006600;">Value</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #ff0000;">'Test'</span><span style="color: #000066;">;</span> <span style="color: #808080; font-style: italic;">// Beschreibt das Feld A1</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">DisplayAlerts</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #000066;">;</span>    <span style="color: #808080; font-style: italic;">//Deaktiviert Nachfrage beim Beenden</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">ActiveWorkbook</span><span style="color: #000066;">.</span><span style="color: #006600;">SaveAs</span><span style="color: #000066;">&#40;</span><span style="color: #ff0000;">'C:\daten\testexcel2.xls'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span>
Excel<span style="color: #000066;">.</span><span style="color: #006600;">quit</span><span style="color: #000066;">;</span>   <span style="color: #808080; font-style: italic;">//Beendet Excel (Wichtig sonst bleibt es immer offen im Hintergrund)</span></pre></div></div>

<p>Wichtig ist allerdings, dass Excel auf dem jeweiligen Rechner installiert ist, damit diese L&#246;sung funktioniert.</p>
<p>Das Objekt &#8220;Excel&#8221; ist dabei eine Variable vom Typ Variant und als zus&#228;tzliche Unit muss ComObj eingebunden werden.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;t=Excel-Zugriff%20per%20Ole-Objekt" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Excel-Zugriff%20per%20Ole-Objekt%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt&amp;notes=Um%20mit%20Delphi%20eine%20Exceldatei%20zu%20editieren%2C%20kann%20man%20das%20ganze%20z.B.%20%C3%BCber%20ein%20Ole-Objekt%20l%C3%B6sen.%0D%0A%0D%0ABei%20meinem%20Beispiel%20gehe%20ich%20davon%20aus%2C%20dass%20bereits%20eine%20Excel-Datei%20existiert%2C%20die%20wir%20auslesen%20oder%20bearbeiten%20wollen.%0D%0A%0D%0AHier%20ein%20Codeschnipsel%20zu" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt&amp;bodytext=Um%20mit%20Delphi%20eine%20Exceldatei%20zu%20editieren%2C%20kann%20man%20das%20ganze%20z.B.%20%C3%BCber%20ein%20Ole-Objekt%20l%C3%B6sen.%0D%0A%0D%0ABei%20meinem%20Beispiel%20gehe%20ich%20davon%20aus%2C%20dass%20bereits%20eine%20Excel-Datei%20existiert%2C%20die%20wir%20auslesen%20oder%20bearbeiten%20wollen.%0D%0A%0D%0AHier%20ein%20Codeschnipsel%20zu" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt&amp;annotation=Um%20mit%20Delphi%20eine%20Exceldatei%20zu%20editieren%2C%20kann%20man%20das%20ganze%20z.B.%20%C3%BCber%20ein%20Ole-Objekt%20l%C3%B6sen.%0D%0A%0D%0ABei%20meinem%20Beispiel%20gehe%20ich%20davon%20aus%2C%20dass%20bereits%20eine%20Excel-Datei%20existiert%2C%20die%20wir%20auslesen%20oder%20bearbeiten%20wollen.%0D%0A%0D%0AHier%20ein%20Codeschnipsel%20zu" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;bm_description=Excel-Zugriff%20per%20Ole-Objekt&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;title=Excel-Zugriff%20per%20Ole-Objekt" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;t=Excel-Zugriff%20per%20Ole-Objekt" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Excel-Zugriff%20per%20Ole-Objekt&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fexcel-zugriff-per-ole-objekt&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/excel-zugriff-per-ole-objekt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Applikationsicon &#228;ndern zur Laufzeit</title>
		<link>http://www.entwicklerforum.org/applikationsicon-aendern-zur-laufzeit</link>
		<comments>http://www.entwicklerforum.org/applikationsicon-aendern-zur-laufzeit#comments</comments>
		<pubDate>Mon, 15 Oct 2007 13:24:15 +0000</pubDate>
		<dc:creator>Paul Exler</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/applikationsicon-aendern-zur-laufzeit</guid>
		<description><![CDATA[Das Applikationsicon zu &#228;ndern ist unter Delphi sehr einfach. Allerdings ben&#246;tigt man hierf&#252;r zu aller erst eine entsprechende Resource-Datei und damit einen Resource-Editor. Da ich bei meiner Delphi 2007-Installation kein Borland Bildeditor mehr finden konnte, mit dem man prinzipiell so eine Resource-Datei erstellen konnte, bin ich nach kurzer Suche auf einen sehr brauchbaren Resource-Editor gesto&#223;en:
Delphi [...]]]></description>
			<content:encoded><![CDATA[<p>Das Applikationsicon zu &#228;ndern ist unter Delphi sehr einfach. Allerdings ben&#246;tigt man hierf&#252;r zu aller erst eine entsprechende Resource-Datei und damit einen Resource-Editor. Da ich bei meiner Delphi 2007-Installation kein Borland Bildeditor mehr finden konnte, mit dem man prinzipiell so eine Resource-Datei erstellen konnte, bin ich nach kurzer Suche auf einen sehr brauchbaren Resource-Editor gesto&#223;en:</p>
<p><a title="Delphi Resource-Editor" href="http://www.wilsonc.demon.co.uk/d10resourceeditor.htm">Delphi Resource-Editor</a></p>
<p>In meinem Beispiel habe ich 2 Icons in die Resourcedatei hinzugef&#252;gt, wodurch mein Resultat schlussendlich folgenderma&#223;en aussieht:</p>
<p><a title="Delphi Resource-Editor" href="http://www.entwicklerforum.org/wp-content/uploads/2007/10/delphiresourceeditor.jpg"><img src="http://www.entwicklerforum.org/wp-content/uploads/2007/10/delphiresourceeditor.jpg" alt="Delphi Resource-Editor" /></a></p>
<p>Wichtig ist hierbei, dass es ein Icon mit der Bezeichnung &#8220;MAINICON&#8221; gibt. Dieses wird als Standard-Icon der Applikation verwendet.</p>
<p>Als n&#228;chstes speichert man die Resource als z.B. &#8220;Test.res&#8221; <strong>in das Projektverzeichnis </strong>der Applikation.</p>
<p>Um die Resourcedatei in das Programm einzubinden gen&#252;gt:</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;"><span style="color: #008000; font-style: italic;">{$R Test.res}</span></pre></div></div>

<p>Schlussendlich gen&#252;gt dann folgender Code (bei meinem Beispiel) um das Icon zu &#228;ndern:</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">  Icon<span style="color: #000066;">.</span><span style="color: #006600;">Handle</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> LoadIcon<span style="color: #000066;">&#40;</span>HInstance<span style="color: #000066;">,</span> <span style="color: #ff0000;">'ICON2'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>

<p>Um das Standardicon wieder herzustellen reicht demnach:</p>

<div class="wp_syntax"><div class="code"><pre class="delphi" style="font-family:monospace;">  Icon<span style="color: #000066;">.</span><span style="color: #006600;">Handle</span> <span style="color: #000066;">:</span><span style="color: #000066;">=</span> LoadIcon<span style="color: #000066;">&#40;</span>HInstance<span style="color: #000066;">,</span> <span style="color: #ff0000;">'MAINICON'</span><span style="color: #000066;">&#41;</span><span style="color: #000066;">;</span></pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;t=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit&amp;notes=Das%20Applikationsicon%20zu%20%C3%A4ndern%20ist%20unter%20Delphi%20sehr%20einfach.%20Allerdings%20ben%C3%B6tigt%20man%20hierf%C3%BCr%20zu%20aller%20erst%20eine%20entsprechende%20Resource-Datei%20und%20damit%20einen%20Resource-Editor.%20Da%20ich%20bei%20meiner%20Delphi%202007-Installation%20kein%20Borland%20Bildeditor%20mehr%20" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit&amp;bodytext=Das%20Applikationsicon%20zu%20%C3%A4ndern%20ist%20unter%20Delphi%20sehr%20einfach.%20Allerdings%20ben%C3%B6tigt%20man%20hierf%C3%BCr%20zu%20aller%20erst%20eine%20entsprechende%20Resource-Datei%20und%20damit%20einen%20Resource-Editor.%20Da%20ich%20bei%20meiner%20Delphi%202007-Installation%20kein%20Borland%20Bildeditor%20mehr%20" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit&amp;annotation=Das%20Applikationsicon%20zu%20%C3%A4ndern%20ist%20unter%20Delphi%20sehr%20einfach.%20Allerdings%20ben%C3%B6tigt%20man%20hierf%C3%BCr%20zu%20aller%20erst%20eine%20entsprechende%20Resource-Datei%20und%20damit%20einen%20Resource-Editor.%20Da%20ich%20bei%20meiner%20Delphi%202007-Installation%20kein%20Borland%20Bildeditor%20mehr%20" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;bm_description=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;title=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;t=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Applikationsicon%20%C3%A4ndern%20zur%20Laufzeit&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fapplikationsicon-aendern-zur-laufzeit&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/applikationsicon-aendern-zur-laufzeit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi online Handbuch</title>
		<link>http://www.entwicklerforum.org/delphi-online-handbuch</link>
		<comments>http://www.entwicklerforum.org/delphi-online-handbuch#comments</comments>
		<pubDate>Thu, 20 Sep 2007 09:46:45 +0000</pubDate>
		<dc:creator>Martin Schmid</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=73</guid>
		<description><![CDATA[Ein recht gelungenes Delphi/ObjectPascal Handbuch  findet man online unter unter http://de.wikibooks.org/wiki/Delphi
Weitere B&#252;cher zu IT Themen findet man ebenfalls unter http://de.wikibooks.org/wiki/Regal:Programmierung 






	
	
	
	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Ein recht gelungenes Delphi/ObjectPascal Handbuch  findet man online unter unter <a title="Delphi Handbuch" href="http://de.wikibooks.org/wiki/Delphi" target="_blank">http://de.wikibooks.org/wiki/Delphi</a></p>
<p>Weitere B&#252;cher zu IT Themen findet man ebenfalls unter <a title="Wikibooks" href="http://de.wikibooks.org/wiki/Regal:Programmierung" target="_blank">http://de.wikibooks.org/wiki/Regal:Programmierung </a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;t=Delphi%20online%20Handbuch" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Delphi%20online%20Handbuch%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch&amp;notes=Ein%20recht%20gelungenes%20Delphi%2FObjectPascal%20Handbuch%20%20findet%20man%20online%20unter%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FDelphi%0D%0A%0D%0AWeitere%20B%C3%BCcher%20zu%20IT%20Themen%20findet%20man%20ebenfalls%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FRegal%3AProgrammierung%20" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch&amp;bodytext=Ein%20recht%20gelungenes%20Delphi%2FObjectPascal%20Handbuch%20%20findet%20man%20online%20unter%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FDelphi%0D%0A%0D%0AWeitere%20B%C3%BCcher%20zu%20IT%20Themen%20findet%20man%20ebenfalls%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FRegal%3AProgrammierung%20" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch&amp;annotation=Ein%20recht%20gelungenes%20Delphi%2FObjectPascal%20Handbuch%20%20findet%20man%20online%20unter%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FDelphi%0D%0A%0D%0AWeitere%20B%C3%BCcher%20zu%20IT%20Themen%20findet%20man%20ebenfalls%20unter%20http%3A%2F%2Fde.wikibooks.org%2Fwiki%2FRegal%3AProgrammierung%20" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;bm_description=Delphi%20online%20Handbuch&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;title=Delphi%20online%20Handbuch" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;t=Delphi%20online%20Handbuch" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Delphi%20online%20Handbuch&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fdelphi-online-handbuch&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/delphi-online-handbuch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objekte sicher freigeben mit Delphi</title>
		<link>http://www.entwicklerforum.org/objekte-sicher-freigeben-mit-delphi</link>
		<comments>http://www.entwicklerforum.org/objekte-sicher-freigeben-mit-delphi#comments</comments>
		<pubDate>Tue, 18 Sep 2007 18:25:38 +0000</pubDate>
		<dc:creator>Martin Schmid</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=68</guid>
		<description><![CDATA[Jedem Entwickler, der mit Delphi anf&#228;ngt, unterl&#228;uft h&#228;ufig folgender Fehler:
Man &#246;ffnet ein Formular mit &#8220;frmBeispiel.Show;&#8221; und schlie&#223;t es mit &#8220;frmBeispiel.Close;&#8221;.
Dabei geht man davon aus, dass der Speicher wieder freigegeben wird. Irrtum!
Gleiches gilt f&#252;r alle Objekte!
Deshalb mit &#8220;FreeAndNil(objekt);&#8221; freigeben.
Dynamische Arrays gibt man mit &#8220;SetLength(array,0);&#8221; frei.






	
	
	
	
	
	
	
	
	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>Jedem Entwickler, der mit Delphi anf&#228;ngt, unterl&#228;uft h&#228;ufig folgender Fehler:</p>
<p>Man &#246;ffnet ein Formular mit &#8220;frmBeispiel.Show;&#8221; und schlie&#223;t es mit &#8220;frmBeispiel.Close;&#8221;.</p>
<p>Dabei geht man davon aus, dass der Speicher wieder freigegeben wird. Irrtum!</p>
<p>Gleiches gilt f&#252;r alle Objekte!</p>
<p>Deshalb mit &#8220;FreeAndNil(objekt);&#8221; freigeben.</p>
<p>Dynamische Arrays gibt man mit &#8220;SetLength(array,0);&#8221; frei.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;t=Objekte%20sicher%20freigeben%20mit%20Delphi" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Objekte%20sicher%20freigeben%20mit%20Delphi%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi&amp;notes=Jedem%20Entwickler%2C%20der%20mit%20Delphi%20anf%C3%A4ngt%2C%20unterl%C3%A4uft%20h%C3%A4ufig%20folgender%20Fehler%3A%0D%0A%0D%0AMan%20%C3%B6ffnet%20ein%20Formular%20mit%20%22frmBeispiel.Show%3B%22%20und%20schlie%C3%9Ft%20es%20mit%20%22frmBeispiel.Close%3B%22.%0D%0A%0D%0ADabei%20geht%20man%20davon%20aus%2C%20dass%20der%20Speicher%20wieder%20freigegeben%20wird.%20Ir" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi&amp;bodytext=Jedem%20Entwickler%2C%20der%20mit%20Delphi%20anf%C3%A4ngt%2C%20unterl%C3%A4uft%20h%C3%A4ufig%20folgender%20Fehler%3A%0D%0A%0D%0AMan%20%C3%B6ffnet%20ein%20Formular%20mit%20%22frmBeispiel.Show%3B%22%20und%20schlie%C3%9Ft%20es%20mit%20%22frmBeispiel.Close%3B%22.%0D%0A%0D%0ADabei%20geht%20man%20davon%20aus%2C%20dass%20der%20Speicher%20wieder%20freigegeben%20wird.%20Ir" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi&amp;annotation=Jedem%20Entwickler%2C%20der%20mit%20Delphi%20anf%C3%A4ngt%2C%20unterl%C3%A4uft%20h%C3%A4ufig%20folgender%20Fehler%3A%0D%0A%0D%0AMan%20%C3%B6ffnet%20ein%20Formular%20mit%20%22frmBeispiel.Show%3B%22%20und%20schlie%C3%9Ft%20es%20mit%20%22frmBeispiel.Close%3B%22.%0D%0A%0D%0ADabei%20geht%20man%20davon%20aus%2C%20dass%20der%20Speicher%20wieder%20freigegeben%20wird.%20Ir" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;bm_description=Objekte%20sicher%20freigeben%20mit%20Delphi&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;title=Objekte%20sicher%20freigeben%20mit%20Delphi" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;t=Objekte%20sicher%20freigeben%20mit%20Delphi" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Objekte%20sicher%20freigeben%20mit%20Delphi&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fobjekte-sicher-freigeben-mit-delphi&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/objekte-sicher-freigeben-mit-delphi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Umschreiben eines CLX-Projektes zu einer normalen Win32-Anwendung</title>
		<link>http://www.entwicklerforum.org/umschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung</link>
		<comments>http://www.entwicklerforum.org/umschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung#comments</comments>
		<pubDate>Tue, 18 Sep 2007 07:43:33 +0000</pubDate>
		<dc:creator>Paul Exler</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://www.entwicklerforum.org/?p=65</guid>
		<description><![CDATA[Nachdem wir Anfangs auf der CLX-Schiene einige Projekte umgesetzt hatten, aber nun feststellen mussten, dass uns dies langfristig gesehen keine Vorteile gebracht hat, werden nun zunehmend die damals erstellten CLX-Projekte zu gew&#246;hnlichen Win32-Applikationen umgeschrieben.
Falls jemand vor dem gleichen Problem steht, beschreibe ich meinen Weg, mit dem ich die Applikationen in k&#252;rzester Zeit umgeschrieben hatte (Voraussetzung [...]]]></description>
			<content:encoded><![CDATA[<p>Nachdem wir Anfangs auf der CLX-Schiene einige Projekte umgesetzt hatten, aber nun feststellen mussten, dass uns dies langfristig gesehen keine Vorteile gebracht hat, werden nun zunehmend die damals erstellten CLX-Projekte zu gew&#246;hnlichen Win32-Applikationen umgeschrieben.</p>
<p>Falls jemand vor dem gleichen Problem steht, beschreibe ich meinen Weg, mit dem ich die Applikationen in k&#252;rzester Zeit umgeschrieben hatte (Voraussetzung hierf&#252;r ist, dass keine linuxspezifischen Befehle verwendet wurden):</p>
<table style="width: 80%;" border="0">
<tbody>
<tr>
<td><strong>1. Schritt:</strong><br />
 Schlie&#223;en Sie das Projekt, falls Sie es gerade offen haben. F&#252;r die Konvertierung wird Delphi nicht ben&#246;tigt.</p>
<p><br class="spacer_" /></p>
<p><strong>2. Schritt:</strong><br />
 Benennen Sie Ihre *.xfm-Dateien in *.dfm um.</p>
<p><strong>3. Schritt:</strong><br />
 &#214;ffnen Sie alle *.pas-Dateien ihres Projektes und &#228;ndern Sie: {$R *.xfm} in {$R *.dfm}</p>
<p><strong>4. Schritt:</strong><br />
 Bei den ge&#246;ffneten *.pas-Dateien m&#252;ssen Sie die uses durchgehen und pr&#252;fen, ob Sie CLX-Units verwenden. Diese beginnen immer mit einem gro&#223;en Q. Entfernen Sie einfach das gro&#223;e Q, also z.B. QForms zu Forms.<br />
 Sollten Sie QTypes eingebunden haben, so m&#252;ssen Sie diesen Verweis komplett entfernen.</p>
<p><strong>5. Schritt: </strong><br />
 Insofern Sie Forms verwendet haben, m&#252;ssen Sie auch in der *.dpr-Datei die uses bearbeiten. Hier sollte auch QForms existieren. &#196;ndern Sie es auf Forms ab.</p>
<p><strong>6. Schritt:</strong><br />
 &#214;ffnen Sie nun Ihr Projekt und kontrollieren Sie die formatierungen Ihrer Objekte. Bei mir hatten einzelne Objekt als Color eine blaue Farbe. Desweiteren wird beim &#246;ffnen des Projektes vermutlich die Meldung erscheinen, dass Ihr Formular die Eigenschaft &#8220;TextWidth&#8221; nicht beinhaltet. Diese Meldung k&#246;nnen Sie ignorieren.</p>
</td>
</tr>
</tbody>
</table>
<p>Nun sollte alles geschafft sein. Erstellen Sie nun Ihr Projekt neu.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong></strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;t=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung" title="Facebook"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung%20-%20http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung" title="Twitter"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung" title="Technorati"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung&amp;notes=Nachdem%20wir%20Anfangs%20auf%20der%20CLX-Schiene%20einige%20Projekte%20umgesetzt%20hatten%2C%20aber%20nun%20feststellen%20mussten%2C%20dass%20uns%20dies%20langfristig%20gesehen%20keine%20Vorteile%20gebracht%20hat%2C%20werden%20nun%20zunehmend%20die%20damals%20erstellten%20CLX-Projekte%20zu%20gew%C3%B6hnlichen%20Win32-Appl" title="del.icio.us"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung&amp;bodytext=Nachdem%20wir%20Anfangs%20auf%20der%20CLX-Schiene%20einige%20Projekte%20umgesetzt%20hatten%2C%20aber%20nun%20feststellen%20mussten%2C%20dass%20uns%20dies%20langfristig%20gesehen%20keine%20Vorteile%20gebracht%20hat%2C%20werden%20nun%20zunehmend%20die%20damals%20erstellten%20CLX-Projekte%20zu%20gew%C3%B6hnlichen%20Win32-Appl" title="Digg"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung&amp;annotation=Nachdem%20wir%20Anfangs%20auf%20der%20CLX-Schiene%20einige%20Projekte%20umgesetzt%20hatten%2C%20aber%20nun%20feststellen%20mussten%2C%20dass%20uns%20dies%20langfristig%20gesehen%20keine%20Vorteile%20gebracht%20hat%2C%20werden%20nun%20zunehmend%20die%20damals%20erstellten%20CLX-Projekte%20zu%20gew%C3%B6hnlichen%20Win32-Appl" title="Google Bookmarks"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;bm_description=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung&amp;plugin=soc" title="MisterWong"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung" title="DZone"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung" title="Live"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;title=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung" title="Mixx"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;t=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung" title="MySpace"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="mailto:?subject=Umschreiben%20eines%20CLX-Projektes%20zu%20einer%20normalen%20Win32-Anwendung&amp;body=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung" title="email"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;partner=sociable" title="PDF"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.entwicklerforum.org%2Fumschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung&amp;partner=sociable" title="Print"><img src="http://www.entwicklerforum.org/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.entwicklerforum.org/umschreiben-eines-clx-projektes-zu-einer-normalen-win32-anwendung/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
