<?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>Alomohora &#187; Delphi</title>
	<atom:link href="http://alomohora.com/category/delphi/feed/" rel="self" type="application/rss+xml" />
	<link>http://alomohora.com</link>
	<description>All about programming languages</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:01:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ZeosDBO Component</title>
		<link>http://alomohora.com/zeosdbo-component/</link>
		<comments>http://alomohora.com/zeosdbo-component/#comments</comments>
		<pubDate>Fri, 08 May 2009 11:14:29 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=1584</guid>
		<description><![CDATA[ZeosDBO is a database middleware component for Borland development tools, including Delphi, C++ Builder and Kylix. The following compilers are supported: Delphi 4 &#8211; 7. C++ Builder 4 &#8211; 6. Kylix 1 &#8211; 3. ZeosDBO supports direct connectivity to the following databases using the vendor provided, native interface: MySQL 3.20 &#8211; 4.1 PostgreSQL 6.5 &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">ZeosDBO is a database middleware component for Borland development tools, including Delphi, C++ Builder and Kylix.</p>
<p style="text-align: justify;"><span id="more-1584"></span></p>
<p style="text-align: justify;">The following compilers are supported:</p>
<ul type="disc">
<li>Delphi 4 &#8211; 7.</li>
<li>C++ Builder 4 &#8211; 6.</li>
<li>Kylix 1 &#8211; 3.</li>
</ul>
<p style="text-align: justify;">ZeosDBO supports direct connectivity to the following databases using the vendor provided, native interface:</p>
<ul type="disc">
<li>MySQL 3.20 &#8211; 4.1</li>
<li>PostgreSQL 6.5 &#8211; 7.3</li>
<li>Firebird 1.0 &#8211; 1.5</li>
<li>Interbase 5.0 &#8211; 7.5</li>
<li>Microsoft SQL Server 7, 2000</li>
<li>Sybase ASE 12.0, 12.5</li>
</ul>
<p style="text-align: justify;">For other databases we propose to use implemented Active Data Objects (ADO) Bridge.</p>
<p style="text-align: justify;">Advantages of using ZeosDBO:</p>
<ul type="disc">
<li>
<p style="text-align: justify;">Platform independence. The      ZeosDBO is highly generic. Applications written in ZeosDBO can be migrated across databases without major changes.</p>
</li>
<li>
<p style="text-align: justify;">ZeosDBO is open source, written for usability and extensibility.</p>
</li>
<li>
<p style="text-align: justify;">ZeosDBO leverages the amazing power of the Delphi development environment without relying on a performance killing middleware.</p>
</li>
<li>
<p style="text-align: justify;">ZeosDBO is an extremely thin abstraction layer, unlike &#8216;thick&#8217; layered protocols like ADO and BDE.</p>
</li>
</ul>
<p style="text-align: justify;">Package contents:</p>
<ol type="1" compact="compact">
<li>
<p style="text-align: justify;"><strong>ZCore</strong> &#8211; Core classes and interfaces. Contains Java style objects and collections as well as compatibility types and functions.</p>
</li>
<li>
<p style="text-align: justify;"><strong>ZParseSql</strong> &#8211; SQL specific for syntax and lexical analysis.</p>
</li>
<li>
<p style="text-align: justify;"><strong>ZPlain</strong> &#8211; Native plain API to supported SQL servers.</p>
</li>
<li>
<p style="text-align: justify;"><strong>ZDbc</strong> &#8211; Port of Java Database Connectivity API (JDBC 2.0). DBC API acts as intermediate layer between Plain API and highlevel <strong>TDataset</strong> or <strong>DBExpress</strong> components.</p>
</li>
<li>
<p style="text-align: justify;"><strong>ZComponent</strong> &#8211; visual components descended from <strong>TDataset</strong>.</p>
</li>
</ol>
<p>Installed components:</p>
<ol type="1" compact="compact">
<li>
<p style="text-align: justify;"><strong>TZConnection</strong>: This component encapsulates the database connection and transaction management.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZReadOnlyQuery</strong>: TDataset component to execute SQL queries and process data in read-only mode.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZQuery</strong>: TDataset component which allows data modifications in regular and cached mode.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZUpdateSQL</strong>: Analog of standard TUpdateSQL component to explicite definition of Insert/Update/Delete SQL statements for TDataset modifications.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZStoredProc</strong>: The component to execute SQL stored procedures.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZSQLProcessor</strong>: The component to execute SQL scripts for different SQL and various delimiter types.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZSQLMonitor</strong>: The component to monitor all outgoing SQL queries and other logging information.</p>
</li>
<li>
<p style="text-align: justify;"><strong>TZSQLMetadata</strong>: Specialized TDataset component which provides an access to database metadata such as tables, columns, indices, etc.</p>
</li>
</ol>
<p style="text-align: justify;">The project home page is here (for news, links and other project info): <a href="http://www.zeoslib.net/" target="_top">http://www.zeoslib.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/zeosdbo-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows StartUp Manager Delphi Application</title>
		<link>http://alomohora.com/delphi-building-a-windows-startup-manager-application/</link>
		<comments>http://alomohora.com/delphi-building-a-windows-startup-manager-application/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 02:14:10 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=454</guid>
		<description><![CDATA[This article shows how to build a program that allows a user to control which applications will run when Windows starts up, without having to put the application entries into the Startup menu. In essence, the TRegistry object is used to manipulate the Registry from Delphi code. Have you ever asked yourself where are those [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This article shows how to build a program that allows a user to control which applications will run when Windows starts up, without having to put the application entries into the <strong>Startup</strong> menu. In essence, the <strong>TRegistry object</strong> is used to manipulate the Registry from Delphi code.</p>
<p style="text-align: justify;"><span id="more-454"></span></p>
<p style="text-align: justify;">Have you ever asked yourself where are those applications that seem to be executed when Windows start, you cannot find in the <strong>Start</strong> &#8211; <strong>StartUp</strong> Windows menu? Or, how a virus can start itself each time you reboot? Or, who started all those applications you see in the System Tray?</p>
<p style="text-align: justify;">As you might guess, you can automatically start programs whenever Windows launches. If you have programs automatically starting that you have not loaded (do not want) then you can remove them using the <strong>Windows StartUp Manager Application</strong> we will build in this article.</p>
<p style="text-align: justify;">Here&#8217;s how to manually specify an application to be run at Windows startup:</p>
<ol type="1">
<li style="text-align: justify;">Open your registry (<strong>Start</strong> &#8211; <strong>Run</strong> &#8211; <strong>regedit</strong>) and locate the key <strong>HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun</strong>.</li>
<li style="text-align: justify;">For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable. For example, to automatically start <strong>MyApplication.exe</strong>, add a new entry of &#8220;<strong>MyApp</strong>&#8220;=&#8221;<strong>c:MyAppsMyApplication.exe</strong>&#8220;.</li>
</ol>
<p style="text-align: justify;"><a href="http://alomohora.com/wp-download/Windows%20StartUp%20Manager%20Application.rar">Download Source Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/delphi-building-a-windows-startup-manager-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Packages Delphi</title>
		<link>http://alomohora.com/delphi-install-packages/</link>
		<comments>http://alomohora.com/delphi-install-packages/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 01:19:35 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=439</guid>
		<description><![CDATA[There are many free source Delphi components around the Internet you can install freely and use in your applications. In Delphi 2005 custom components are installed in the IDE as packages (BPL files). Once the component package is created, you need to install it in the IDE for the components to appear on the Tool [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There are many free source Delphi components around the Internet you can install freely and use in your applications. In Delphi 2005 custom components are installed in the IDE as packages (BPL files).</p>
<p style="text-align: justify;"><span id="more-439"></span></p>
<p style="text-align: justify;">Once the component package is created, you need to install it in the IDE for the components to appear on the Tool Palette.</p>
<p style="text-align: justify;">Note:</p>
<ul type="disc">
<li>This tutorial covers installing a component package in Delphi 2005.</li>
</ul>
<p style="text-align: justify;">To begin, start Delphi 2005. Then point to <strong>Component</strong> &#8211; <strong>Install Packages</strong> in IDE menu item.</p>
<p style="text-align: center;"><a title="Install Delphi Packages 1" href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages11.jpg"><img class="aligncenter" title="Alomohora - Delphi - Install Packages1" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages11.jpg" alt="Alomohora - Delphi - Install Packages1" width="400" height="165" /></a></p>
<p style="text-align: justify;">A list of available packages appears in the <strong>Design packages</strong> list box. To add a package to the list, click the <strong>Add</strong> button.</p>
<p style="text-align: justify;">Note:</p>
<ul type="disc">
<li>To uninstall a package, uncheck its check box.</li>
<li>To remove a package from the list, select the package and click <strong>Remove</strong>.</li>
</ul>
<p style="text-align: center;"><a title="Install Delphi Packages 2" href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages21.jpg"><img class="aligncenter" title="Alomohora - Delphi - Install Packages2" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages21.jpg" alt="Alomohora - Delphi - Install Packages2" width="374" height="276" /></a></p>
<p style="text-align: justify;">Browse the <strong>Add Design Package</strong> dialog for the directory where the .bpl file resides.</p>
<p style="text-align: center;"><a title="Install Delphi Packages 3" href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages31.jpg"><img class="aligncenter" title="Alomohora - Delphi - Install Packages3" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages31.jpg" alt="Alomohora - Delphi - Install Packages3" width="400" height="292" /></a></p>
<p style="text-align: justify;">The selected package appears in the <strong>Design packages</strong> list box and is ready to be used in applications.</p>
<p style="text-align: justify;">To see a list of components included in an installed package, select the package and click <strong>Components</strong>.</p>
<p style="text-align: center;"><a title="Install Delphi Packages 4" href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages42.jpg"><img class="aligncenter" title="Alomohora - Delphi - Install Packages4" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-install-packages42.jpg" alt="Alomohora - Delphi - Install Packages4" width="400" height="363" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/delphi-install-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System Tray Delphi Application (Part I)</title>
		<link>http://alomohora.com/delphi-system-tray-delphi-application-part-i/</link>
		<comments>http://alomohora.com/delphi-system-tray-delphi-application-part-i/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 01:12:04 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=440</guid>
		<description><![CDATA[Take a look at your Task Bar. See the area where the time is located? Are there any other icons there? The place is called the Windows System Tray. Would you like to place your Delphi application&#8217;s icon there? Would you like that icon to be animated &#8211; or reflect the state of your application? [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Take a look at your <strong>Task Bar</strong>. See the area where the time is located? Are there any other icons there? The place is called the <strong>Windows System Tray</strong>. Would you like to place your Delphi application&#8217;s icon there? Would you like that icon to be animated &#8211; or reflect the state of your application?</p>
<p style="text-align: justify;"><span id="more-440"></span></p>
<p style="text-align: justify;">This would be useful for programs that are left running for long periods of time with no user interaction (background tasks you typically keep running on your PC all day long).</p>
<p style="text-align: justify;">What you can do is to make your Delphi applications look as they are minimizing to the Tray (instead to the <strong>Task Bar</strong> &#8211; right to the Win Start button) by placing an icon in the tray and simultaneously making your form(s) invisible.</p>
<p style="text-align: justify;">Fortunately, creating an application that runs in the system tray is pretty easy &#8211; only one (API) function, <strong>Shell_NotifyIcon</strong>, is needed to accomplish the task.</p>
<p style="text-align: justify;">The function is defined in the <strong>ShellAPI</strong> unit and requires two parameters. The first is a flag indicating whether the icon is being added, modified, or removed, and the second is a pointer to a <strong>TNotifyIconData</strong> structure holding the information about the icon. That includes the handle of the icon to show, the text to show as tool tip when the mouse is over the icon, the handle of the window that will receive the messages of the icon and the message type the icon will send to this window.</p>
<p style="text-align: justify; margin: 20pt;">First, in your main form&#8217;s Private section put the line: </p>
<p style="text-align: justify; margin: 20pt;"><strong>TrayIconData: TNotifyIconData;</strong></p>
<p style="text-align: justify; margin: 20pt;">type</p>
<p style="text-align: justify; margin: 20pt;">TMainForm = class(TForm)</p>
<p style="text-align: justify; margin: 20pt;">procedure FormCreate(Sender: TObject);</p>
<p style="text-align: justify; margin: 20pt;">private</p>
<p style="text-align: justify; margin: 20pt;">TrayIconData: TNotifyIconData;</p>
<p style="text-align: justify; margin: 20pt;">{ Private declarations }</p>
<p style="text-align: justify; margin: 20pt;">public</p>
<p style="text-align: justify; margin: 20pt;">{ Public declarations }</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify;">Then, in your main form&#8217;s <strong>OnCreate</strong> method, initialize the <strong>TrayIconData</strong> data structure and call the <strong>Shell_NotifyIcon</strong> function:</p>
<p style="text-align: justify; margin: 20pt;">procedure TForm1.FormCreate(Sender: TObject);</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">with TrayIconData do</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">cbSize := SizeOf(TrayIconData);</p>
<p style="text-align: justify; margin: 20pt;">Wnd := Handle;</p>
<p style="text-align: justify; margin: 20pt;">uID := 0;</p>
<p style="text-align: justify; margin: 20pt;">uFlags := NIF_MESSAGE + NIF_ICON + NIF_TIP;</p>
<p style="text-align: justify; margin: 20pt;">uCallbackMessage := WM_ICONTRAY;</p>
<p style="text-align: justify; margin: 20pt;">hIcon := Application.Icon.Handle;</p>
<p style="text-align: justify; margin: 20pt;">StrPCopy(szTip, Application.Title);</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify; margin: 20pt;">Shell_NotifyIcon(NIM_ADD, @TrayIconData);</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify;">The <strong>Wnd</strong> parameter of the <strong>TrayIconData</strong> structure points to the window that receives notification messages associated with an icon.</p>
<p style="text-align: justify;">The <strong>hIcon</strong> points to the icon we want to ad to the Tray &#8211; in this case Applications main icon is used. </p>
<p style="text-align: justify;">The <strong>szTip</strong> holds the Tooltip text to display for the icon &#8211; in our case the title of the application. The <strong>szTip</strong> can hold up to 64 characters.</p>
<p style="text-align: justify;">The <strong>uFlags</strong> parameter is set to tell the icon to process application messages, use the application&#8217;s icon and its tip. The <strong>uCallbackMessage</strong> points to the application defined message identifier. The system uses the specified identifier for notification messages that it sends to the window identified by <strong>Wnd</strong> whenever a mouse event occurs in the bounding rectangle of the icon. This parameter is set to <strong>WM_ICONTRAY</strong> constant defined in the interface section of the forms unit and equals: <strong>WM_USER + 1</strong>; </p>
<p style="text-align: justify;">You add the icon to the Tray by calling the <strong>Shell_NotifyIcon</strong> API function. The first parameter <strong>NIM_ADD</strong> adds an icon to the Tray area. The other two possible values, <strong>NIM_DELETE</strong> and <strong>NIM_MODIFY</strong> are used to delete or modify an icon in the Tray &#8211; we&#8217;ll see how later in this article. The second parameter we send to the <strong>Shell_NotifyIcon</strong> is the initialized <strong>TrayIconData</strong> structure. </p>
<p style="text-align: justify;">If you <strong>RUN</strong> your project now you&#8217;ll see an icon near the Clock in the Tray. Note three things. </p>
<ul type="disc">
<li style="text-align: justify;">First, nothing happens when you click (or do anything else with the mouse) on the icon placed in the Tray &#8211; we haven&#8217;t created a procedure (message handler), yet.</li>
<li style="text-align: justify;">Second, there is a button on the <strong>Task Bar</strong> (we obviously don&#8217;t want it there).</li>
<li style="text-align: justify;">Third, when you close your application, the icon remains in the Tray. </li>
</ul>
<p style="text-align: justify;">Let&#8217;s solve this backward. To have the icon removed from the Tray when you exit the application, you have to call the <strong>Shell_NotifyIcon</strong> again, but with the <strong>NIM_DELETE</strong> as the first parameter. You do this in the <strong>OnDestroy</strong> event handler for the Main form. </p>
<p style="text-align: justify;">To hide the application from the <strong>Task Bar</strong> we&#8217;ll use a simple trick. In the Projects source code adds the following line: <strong>Application.ShowMainForm := False;</strong> before the <strong>Application.CreateForm(TMainForm, MainForm);</strong> in <strong>Project1.bdsproj</strong> E.g. let it look like:</p>
<p style="text-align: justify; margin: 20pt;">program Project1;</p>
<p style="text-align: justify; margin: 20pt;">uses</p>
<p style="text-align: justify; margin: 20pt;">Forms,</p>
<p style="text-align: justify; margin: 20pt;">Unit1 in &#8216;Unit1.pas&#8217; {Form1};</p>
<p style="text-align: justify; margin: 20pt;">{$R *.res}</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">Application.Initialize;</p>
<p style="text-align: justify; margin: 20pt;">Application.ShowMainForm := False;</p>
<p style="text-align: justify; margin: 20pt;">Application.CreateForm(TForm1, Form1);</p>
<p style="text-align: justify; margin: 20pt;">Application.Run;</p>
<p style="text-align: justify; margin: 20pt;">end.</p>
<p style="text-align: justify;">And finally to have our Tray icon respond to mouse events we need to create a message handling procedure. First we declare a message handling procedure in the public part of the form declaration: <strong>procedure TrayMessage(var Msg: TMessage); </strong>and <strong>message WM_ICONTRAY;</strong> Second the definition of this procedure looks like: </p>
<p style="text-align: justify; margin: 20pt;">procedure TForm1.TrayMessage(var Msg: TMessage);</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">case Msg.lParam of</p>
<p style="text-align: justify; margin: 20pt;">WM_LBUTTONDOWN:</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">ShowMessage(&#8216;Left button clicked &#8211; let&#8221;s SHOW the Form!&#8217;);</p>
<p style="text-align: justify; margin: 20pt;">Form1.Show;</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify; margin: 20pt;">WM_RBUTTONDOWN:</p>
<p style="text-align: justify; margin: 20pt;">begin</p>
<p style="text-align: justify; margin: 20pt;">ShowMessage(&#8216;Right button clicked &#8211; let&#8221;s HIDE the Form!&#8217;);</p>
<p style="text-align: justify; margin: 20pt;">Form1.Hide;</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify; margin: 20pt;">end;</p>
<p style="text-align: justify;">This procedure is designed to handle only our message, the <strong>WM_ICONTRAY</strong>. It takes the <strong>LParam</strong> value from the message structure which can give us the state of the mouse upon the activation of the procedure. For the sake of simplicity we&#8217;ll handle only left mouse down (<strong>WM_LBUTTONDOWN</strong>) and right mouse down (<strong>WM_RBUTTONDOWN</strong>). When the left mouse button is down on the icon we show the main form, when the right button is pressed we hide it. Of course there are other mouse inputs messages you can handle in the procedure, like, button up, button double click etc.</p>
<p style="text-align: justify;">That&#8217;s it. In the next article you&#8217;ll see how to animate the icon in the Tray and how to have that icon reflect the state of your application. Even more, you&#8217;ll see how to display a pop up menu near the icon. Check the entire code, to make sure you haven&#8217;t missed something from this part.</p>
<p style="text-align: justify;"><a href="http://alomohora.com/wp-download/Windows%20System%20Tray%20(Part%20I).rar">Download Source Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/delphi-system-tray-delphi-application-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make First Zeos Delphi Application</title>
		<link>http://alomohora.com/delphi-make-first-zeos-application/</link>
		<comments>http://alomohora.com/delphi-make-first-zeos-application/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 06:31:10 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=405</guid>
		<description><![CDATA[I am trying to build an app using MySQL and of course Delphi with ZeosDBO components. Drop a ZConnection. Set your User, Password, Host, Port and Protocol (and any other parameters if needed). Set Connected to True. Drop a ZQuery (do not mistake with ZReadOnlyQuery). Set the Connection to your active ZConnection. Set the Sql [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I am trying to build an app using MySQL and of course Delphi with ZeosDBO components.</p>
<p style="text-align: justify;"><span id="more-405"></span></p>
<p style="text-align: justify;">Drop a ZConnection.</p>
<ul type="disc">
<li style="text-align: justify;">Set your User, Password, Host, Port and Protocol (and any other parameters if needed).</li>
<li style="text-align: justify;">Set Connected to True.</li>
</ul>
<p style="text-align: center;"><a href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-make-first-zeos-application1.png"><img class="aligncenter" title="Delphi - Make First Zeos Application1" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-make-first-zeos-application1.png?w=135&amp;h=300" alt="Delphi - Make First Zeos Application1" width="135" height="299" /></a></p>
<p style="text-align: justify;">Drop a ZQuery (do not mistake with ZReadOnlyQuery).</p>
<ul type="disc">
<li style="text-align: justify;">Set the Connection to your active ZConnection.</li>
<li style="text-align: justify;">Set the Sql property to something like SELECT * FROM MyTable.</li>
<li style="text-align: justify;">Set Active to True.</li>
</ul>
<p style="text-align: center;"><a href="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-make-first-zeos-application2.png"><img class="aligncenter" title="Delphi - Make First Zeos Application2" src="http://makiki.files.wordpress.com/2009/01/alomohora-delphi-make-first-zeos-application2.png?w=108&amp;h=300" alt="Delphi - Make First Zeos Application2" width="108" height="299" /></a></p>
<p style="text-align: justify;">Drop a DataSource from the Data Access tab.</p>
<ul type="disc">
<li style="text-align: justify;">Set the DataSet to your active ZQuery.</li>
<li style="text-align: justify;">Drop a DBGrid from the Data Controls tab.</li>
<li style="text-align: justify;">Set the Datasource to your DataSource.</li>
</ul>
<p style="text-align: justify;">If all is ok you should now be able to see the records from your table.</p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/delphi-make-first-zeos-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delphi ZeosDBO Component</title>
		<link>http://alomohora.com/delphi-zeosdbo-component/</link>
		<comments>http://alomohora.com/delphi-zeosdbo-component/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 10:05:23 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=299</guid>
		<description><![CDATA[If you a newbie for Delphi Programming, and newbie for Database Programming, here I have a little tip’s for you. Database Programming in Delphi can access for MySQL Server. For connected to the server we need connector. I suggest usage the zeosdbo component. It’s free component, powerful and easier to use. This step by step [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">If you a newbie for Delphi Programming, and newbie for Database Programming, here I have a little tip’s for you. Database Programming in Delphi can access for MySQL Server. For connected to the server we need connector.</p>
<p style="text-align: justify;"><span id="more-299"></span></p>
<p style="text-align: justify;">I suggest usage the zeosdbo component. It’s free component, powerful and easier to use.</p>
<p style="text-align: justify;">This step by step for you:</p>
<ol >
<li style="text-align: justify;">Download <a href="http://sourceforge.net/projects/zeoslib">here</a></li>
<li style="text-align: justify;">Extract and copy in drive, I usually copy in c:zeoslib. Up to you want copy where.</li>
<li style="text-align: justify;">Find directory packagesdelphi7 in your zeos directory, example your zeos directory are zeoslib in the drive c so c:zeoslib and find packagesdelphi7.</li>
<li style="text-align: justify;">Install ZCore.dpk, ZDbc.dpk, ZParseSql.dpk, ZPlain.dpk, ZComponent.dpk and ZComponentDesign.dpk.</li>
<li style="text-align: justify;">Run your Delphi and find and chose the menu tools -&gt; Environment Options then chose library tab</li>
<li style="text-align: justify;">In the Library tab path click button. Click add button then click ok button.
<ul type="disc">
<li style="text-align: justify;">zeosdbo-6.1.5src </li>
<li style="text-align: justify;">zeosdbo-6.1.5src </li>
<li style="text-align: justify;">zeosdbo-6.1.5srccomponent </li>
<li style="text-align: justify;">zeosdbo-6.1.5srccore </li>
<li style="text-align: justify;">zeosdbo-6.1.5srcdbc </li>
<li style="text-align: justify;">zeosdbo-6.1.5srcparsesql </li>
<li style="text-align: justify;">zeosdbo-6.1.5srcplain</li>
</ul>
</li>
</ol>
<p style="text-align: justify;">Install just finish, good luck dude!</p>
]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/delphi-zeosdbo-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
