<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Delphi and Kylix Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Delphi and Kylix' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Mon, 01 Dec 2008 19:14:04 -0700</pubDate>
    <lastBuildDate>Mon, 01 Dec 2008 19:14:04 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>War bonds lighters World war two lighters</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/382341/382341/war-bonds-lighters-world-war-two-lighters/</link>
      <description>&lt;br /&gt;
Does anyone know if these used to be some kind of war posters or&lt;br /&gt;
something? &lt;a href="http://www.liangdianup.com/index.htm"&gt;http://www.liangdianup.com/index.htm&lt;/a&gt;&lt;br /&gt;
Were these sayings on these lighters actually used in war times?&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Sat, 29 Nov 2008 01:08:22 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>How can i load a file from memory not local !? Newbie</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/382139/382139/how-can-i-load-a-file-from-memory-not-local--newbie/</link>
      <description>Dear delphi coders &lt;br /&gt;
i am a newbie to delphi , i am using an free ocx called devalvr for loading panorama images , thats a great activex with powerfull parameters all free &lt;br /&gt;
now i want to create a multimedia cd with delphi and flash and i want to load panorama images into this ocx but this line below is how this ocx will load files &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;src:="c:\image.jpg"&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
but i don't want to put files right in cd i mean i don't want to everyone can see my source images and easily copy them , is there any method any way , trick ,&lt;br /&gt;
i know how to encrypt or decrypt files but the problem is that this activex load files like coded line !!&lt;br /&gt;
&lt;br /&gt;
Thanks in advance  &lt;br /&gt;</description>
      <pubDate>Sat, 22 Nov 2008 06:50:23 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Duplicate Master/detail report on same page</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/382078/382078/duplicate-masterdetail-report-on-same-page/</link>
      <description>Hallo all,&lt;br /&gt;
&lt;br /&gt;
I am trying to create a report with QReport v3.0 running in BCB 6.0. I know this not BCB. but any delpi explanation will do. &lt;br /&gt;
&lt;br /&gt;
My target is a master/detail report that appear twice on the same page with dotted line between them.&lt;br /&gt;
e.g&lt;br /&gt;
&lt;br /&gt;
   A&lt;br /&gt;
   |_B&lt;br /&gt;
&lt;br /&gt;
cut here...........&lt;br /&gt;
   &lt;br /&gt;
   A&lt;br /&gt;
   |_B &lt;br /&gt;
&lt;br /&gt;
I have a dataset for A's parameters a another one for B's parameters. B is linked to a A's DataSource&lt;br /&gt;
&lt;br /&gt;
I am able to display just a master/detail report  with QRGroup and i have been able to start a new report on the next page. My question now is how should is structure the bands in such a way that the don't wrap up. &lt;br /&gt;
&lt;br /&gt;
Any help or suggestion is highly welcomed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 11:06:21 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>create virtual printer</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/382016/382016/create-virtual-printer/</link>
      <description>Hi.&lt;br /&gt;
&lt;br /&gt;
It's possible to create a virtual printer, wich is an application to control the printing users and to send to remote printers/servers?&lt;br /&gt;
&lt;br /&gt;
Thank's in advance&lt;br /&gt;
&lt;br /&gt;
MB</description>
      <pubDate>Tue, 18 Nov 2008 16:35:11 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>delphi 7 threads</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/380916/380916/delphi-7-threads/</link>
      <description>Can anyone help with the error Canvas does not allow drawing and System error code:1400.I am trying to send data through TCP/IP using Ping.pas.&lt;br /&gt;
I am using Threads.If the create threads are omitted the error doesn't appear.&lt;br /&gt;</description>
      <pubDate>Mon, 13 Oct 2008 04:17:01 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Airport</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/376289/376289/airport/</link>
      <description>Hi,&lt;br /&gt;
I need to write a airport program but don't know where to start and how to do it. &lt;strong&gt;Can anybody help me please?&lt;/strong&gt;</description>
      <pubDate>Mon, 29 Sep 2008 04:50:32 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Report Component</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374775/374775/report-component/</link>
      <description>Hi everybody,&lt;br /&gt;
I am using Delphi 7 and I have report that want to display them in report component but don't know in which component i can do it.I read about quick report that it reads from database.I have to say that my reports are free it means that it depends on nothing.Please help me,&lt;br /&gt;
Thanks in advance&lt;span style="color: Green;"&gt;&lt;/span&gt;&lt;hr /&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 01 Sep 2008 23:50:35 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Tutorial for Delphi Network!</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374669/374669/tutorial-for-delphi-network/</link>
      <description>Hallo!&lt;br /&gt;
&lt;br /&gt;
I’m a author of the computer game “Poppy and Rose” which I &lt;br /&gt;
programmed it in Delphi 6. I think that the game will attract more &lt;br /&gt;
attention if it is played in a network between two players.&lt;br /&gt;
From this reason I need Tutorial for Delphi Network.&lt;br /&gt;
Please send me URL address from any Delphi Tutorial with Network. &lt;br /&gt;
Who tutorial is the best for you?&lt;br /&gt;
&lt;br /&gt;
 Thank you&lt;br /&gt;
 Blagoj&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Sat, 30 Aug 2008 08:38:44 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>items and itemindex selecting the correct item help needed please</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374609/374609/items-and-itemindex-selecting-the-correct-item-help-needed-please/</link>
      <description>hello,&lt;br /&gt;
&lt;br /&gt;
ok what am trying to do is get my selected name from my server and for it to list it correctly in my dropdown list i have a normal of images from 000 to 999 and if i select the image and submit then try to retrive the image name ( dat[3] ) it would then find and show the name in the dropdown menu but am having alot of trouble doing this so can sumone help me out thanks&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
if i = MainForm.ImageBox.Items.IndexOfName(dat[3]) then
begin
   MainForm.ImageBox.ItemIndex := i;
end;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
thanks alot&lt;br /&gt;
Slewis</description>
      <pubDate>Thu, 28 Aug 2008 08:26:37 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>problem with my if then statments!</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374481/374481/problem-with-my-if-then-statments/</link>
      <description>am doing abit of code for my on join even but my statment seams to be all worng yet i can not find the problem basicly it keeps calling for the password dialog even when rooms do not have password can anyone see the problem ill proble kick myself as it proble be really easy to fix haha&lt;br /&gt;
&lt;br /&gt;
procedure TMainServer.JoinRoom(rSocket: TCustomWinSocket);&lt;br /&gt;
var&lt;br /&gt;
 rbl: integer;&lt;br /&gt;
 rblist: string;&lt;br /&gt;
label&lt;br /&gt;
  TheSkipper5;&lt;br /&gt;
begin&lt;br /&gt;
{ showmessage(dat[0]); // your name&lt;br /&gt;
showmessage(dat[1]); // lobby&lt;br /&gt;
showmessage(dat[2]); // room&lt;br /&gt;
showmessage(dat[3]); // connections }&lt;br /&gt;
&lt;br /&gt;
if MakeRoom = True then&lt;br /&gt;
begin&lt;br /&gt;
  goto TheSkipper5;&lt;br /&gt;
  exit;&lt;br /&gt;
end&lt;br /&gt;
else&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
if UsersTable.Locate('name', dat[0], [locaseinsensitive]) = True then&lt;br /&gt;
begin&lt;br /&gt;
if RoomsTable.Locate('Name', dat[2], [locaseinsensitive]) then&lt;br /&gt;
begin&lt;br /&gt;
 if (dat[3] = RoomsTable.FieldByName('maxcon').AsString) then&lt;br /&gt;
 begin&lt;br /&gt;
 if (UsersTable.FieldByName('Level').AsString = '1')&lt;br /&gt;
 then&lt;br /&gt;
 begin&lt;br /&gt;
    goto TheSkipper5;&lt;br /&gt;
   end&lt;br /&gt;
 else&lt;br /&gt;
   if rSocket &amp;lt;&amp;gt; nil then&lt;br /&gt;
   if rSocket.Connected then&lt;br /&gt;
      rSocket.SendText(CodeStr('šOnœMAXœThis room has exceeded its maximum allowed user capacity.' + #13 +&lt;br /&gt;
                'Perhaps you should wait a while longer before trying to re-enter it.'));&lt;br /&gt;
end&lt;br /&gt;
else  // check for password&lt;br /&gt;
begin&lt;br /&gt;
&lt;br /&gt;
// this is the part am having trouble with it keeps calling the password dialog even if room dont have password&lt;br /&gt;
&lt;br /&gt;
if UsersTable.Locate('name', dat[0], [locaseinsensitive]) = True then&lt;br /&gt;
begin&lt;br /&gt;
if RoomsTable.Locate('name', dat[2], [locaseinsensitive]) then&lt;br /&gt;
begin&lt;br /&gt;
if (RoomsTable.FieldByName('locked').AsString = '0') or&lt;br /&gt;
   ((RoomsTable.FieldByName('locked').AsString = '1') and&lt;br /&gt;
   (dat[4] &amp;lt;&amp;gt; RoomsTable.FieldByName('password').AsString)) then&lt;br /&gt;
   begin&lt;br /&gt;
 if (UsersTable.FieldByName('Level').AsString = '1') then&lt;br /&gt;
 begin&lt;br /&gt;
    goto TheSkipper5;&lt;br /&gt;
   end&lt;br /&gt;
 else&lt;br /&gt;
   if rSocket &amp;lt;&amp;gt; nil then&lt;br /&gt;
   if rSocket.Connected then&lt;br /&gt;
      rSocket.SendText(CodeStr('šOnœPASSœ'));&lt;br /&gt;
      exit;&lt;br /&gt;
end&lt;br /&gt;
else  // check to see if user been kicked&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    rSocket.RB.Text := RoomsTable.FieldByName('list').AsString; // Room List&lt;br /&gt;
    rblist := lowercase(rSocket.RB.Text);&lt;br /&gt;
    rbl := AnsiPos(lowercase(dat[0]), rblist);&lt;br /&gt;
 if rbl &amp;gt; 0 then&lt;br /&gt;
 begin&lt;br /&gt;
    if rSocket &amp;lt;&amp;gt; nil then&lt;br /&gt;
      if rSocket.Connected then&lt;br /&gt;
         rSocket.SendText(CodeStr('šOnœMSGœSorry! [ ' +&lt;br /&gt;
                dat[0] + ' ] You were ejected from this room recently.' + #13 +&lt;br /&gt;
                'Perhaps you should wait a while longer before trying to re-enter it.'));&lt;br /&gt;
          exit;&lt;br /&gt;
end&lt;br /&gt;
else&lt;br /&gt;
begin // checked for locked room&lt;br /&gt;
&lt;br /&gt;
if UsersTable.Locate('name', dat[0], [locaseinsensitive]) = True then&lt;br /&gt;
begin&lt;br /&gt;
 if RoomsTable.Locate('name', dat[2], [locaseinsensitive]) then&lt;br /&gt;
 begin&lt;br /&gt;
   if (RoomsTable.FieldByName('locked').AsString = '1') then&lt;br /&gt;
   begin&lt;br /&gt;
 if (UsersTable.FieldByName('Level').AsString = '1') then&lt;br /&gt;
 begin&lt;br /&gt;
    goto TheSkipper5;&lt;br /&gt;
   end&lt;br /&gt;
 else&lt;br /&gt;
   if rSocket &amp;lt;&amp;gt; nil then&lt;br /&gt;
   if rSocket.Connected then&lt;br /&gt;
      rSocket.SendText(CodeStr('šOnœMSGœThe moderator has locked this room.'));&lt;br /&gt;
      exit;&lt;br /&gt;
   end&lt;br /&gt;
   else&lt;br /&gt;
   begin // join room if all is good!&lt;br /&gt;
&lt;br /&gt;
   TheSkipper5:&lt;br /&gt;
   if rSocket &amp;lt;&amp;gt; nil then&lt;br /&gt;
   if rSocket.Connected then&lt;br /&gt;
      rSocket.SendText(CodeStr('šOKœ' + dat[0] + 'œ' + dat[2] + 'œ' + dat[1] + 'œ'));&lt;br /&gt;
      MainForm.LogMemo.Lines.Add(dat[0]+' User has joined room.'+ dat[2]);&lt;br /&gt;
     end;&lt;br /&gt;
   end;&lt;br /&gt;
 end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
hope sumone can help thanks alot &lt;br /&gt;
Slewis</description>
      <pubDate>Mon, 25 Aug 2008 03:42:18 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Show image (stored in web server) in a form</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374465/374465/show-image-stored-in-web-server-in-a-form/</link>
      <description>How could i show an image (i.e. &lt;a href="http://www.google.com/logos/olympics08_closing_res.gif)"&gt;http://www.google.com/logos/olympics08_closing_res.gif)&lt;/a&gt; in a delphi form????&lt;br /&gt;
&lt;br /&gt;
It's possible?&lt;br /&gt;
&lt;br /&gt;
How?&lt;br /&gt;
&lt;br /&gt;
Thank's in advance&lt;br /&gt;
&lt;br /&gt;
Marco</description>
      <pubDate>Sun, 24 Aug 2008 10:33:06 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Network components for my game!</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/374192/374192/network-components-for-my-game/</link>
      <description>Hallo!&lt;br /&gt;
I’m a author of the computer game “Poppy and Rose” which I programmed it in Delphi 6. I think that the game will attract more attention if it is played in a network between two players. But because I’m not professional programmer, and because of my age (I’m 51 year old) I just cannot make that. This is why I need help, and when I mean help I mean a source code of some kind (in Delphi 6) with these segments: &lt;br /&gt;
-	A segment in which a connection is made between two players that should be in a peer to peer base, but one of them would act like a server and the other will be a client that will connect to the server;&lt;br /&gt;
-	A segment that will initiate that the two players have the same time;&lt;br /&gt;
-	A segment in which the two players transfer data between them; &lt;br /&gt;
-	A segment where is formed a joined table of results.&lt;br /&gt;
Can I find a source code with this attributes, maybe from some other simple video game?&lt;br /&gt;
Thank you&lt;br /&gt;
Blagoj&lt;br /&gt;
My e-mail:  jblagoj@yahoo.com&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Sat, 16 Aug 2008 03:09:09 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Thread using a TTimer</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373927/373927/thread-using-a-ttimer/</link>
      <description>I'm trying to write a thread that uses a timer.  This is what I've got so far:&lt;br /&gt;
&lt;br /&gt;
interface&lt;br /&gt;
&lt;br /&gt;
uses Classes, ExtCtrls;&lt;br /&gt;
&lt;br /&gt;
type&lt;br /&gt;
  TTimerThread = class(TThread)&lt;br /&gt;
  private&lt;br /&gt;
    timer          : TTimer;&lt;br /&gt;
    timesincestart : Longint;&lt;br /&gt;
    procedure onTimerHandler;&lt;br /&gt;
  protected&lt;br /&gt;
    procedure Execute; override;&lt;br /&gt;
  public&lt;br /&gt;
    constructor create; overload;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
implementation&lt;br /&gt;
&lt;br /&gt;
uses Unit1, Dialogs, SysUtils;&lt;br /&gt;
&lt;br /&gt;
{ TTimerThread }&lt;br /&gt;
&lt;br /&gt;
constructor TTimerThread.create;&lt;br /&gt;
begin&lt;br /&gt;
  inherited create(false);&lt;br /&gt;
  timer := TTimer.Create(form1);&lt;br /&gt;
  timer.Interval:=100;&lt;br /&gt;
//  timer.OnTimer:=onTimerHandler;&lt;br /&gt;
  timesincestart:=0;&lt;br /&gt;
end; &lt;br /&gt;
&lt;br /&gt;
procedure TTimerThread.onTimerHandler;&lt;br /&gt;
begin&lt;br /&gt;
  inc(timesincestart);&lt;br /&gt;
  Execute;&lt;br /&gt;
end; &lt;br /&gt;
&lt;br /&gt;
procedure TTimerThread.Execute;&lt;br /&gt;
begin&lt;br /&gt;
  with Unit1 do&lt;br /&gt;
  begin&lt;br /&gt;
    edit1.Text:=inttostr(timesincestart);&lt;br /&gt;
  end; // with&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
The idea is for the timer to execute as a thread.  I'm not experienced in using threads at all, plz could someone point out my obvious mistake.</description>
      <pubDate>Mon, 04 Aug 2008 23:18:21 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>kernel error</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373757/373757/kernel-error/</link>
      <description>I am using Delphi 7.0 Enterprise Build 4.453 &lt;br /&gt;
&lt;br /&gt;
I supose that this was the original release of the Delphi 7.&lt;br /&gt;
&lt;br /&gt;
Until now all was ok since I never used it verry extensively, now I'm building a medium app and when it is compiled on my PC all works fine (using XP SP3 Portugal)&lt;br /&gt;
&lt;br /&gt;
Now when another Pc tries to open the exe file it craches refering to the kernel32.dll&lt;br /&gt;
&lt;br /&gt;
Can anyone help me?&lt;br /&gt;</description>
      <pubDate>Tue, 29 Jul 2008 09:54:07 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Delphi 7 Programmer wanted w/sql knowledge</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373686/373686/delphi-7-programmer-wanted-wsql-knowledge/</link>
      <description>I have a Client/Server Application for a Online Chat and Game site that i offer FREE for everyone its located at (URL address blocked: See forum rules) d/l client there and take a look at it, need a delphi 7 programmer to make some changed to the software, i do have the code, would like to talk to someone about what it would cost to make some needed changes in the software, ie: it has streaming audio/video uses a talk button, would like to make it so people can PICK a key to use to chat with, would like to fix a problem that it has with key used now (Scroll Lock) locks up or sticks when you use it at times and have to leave the room to clear it, would like to find out what it would cost to make the program capable of putting java/flash games in. Would also like to expand the admin tools and be able to select toold to give moderators on an individual basis. then look into converting database to sql, this is a FREE site for everyone so it runs on donations, so must be VERY Reasonable priceing on programmer, if interested contact me at(E-Mail address blocked: See forum rules) thanks&lt;br /&gt;</description>
      <pubDate>Sun, 27 Jul 2008 06:04:45 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Form Border</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373682/373682/form-border/</link>
      <description>&lt;br /&gt;
&lt;br /&gt;
Hi i have this:&lt;br /&gt;
&lt;br /&gt;
borderstyle = bsNone&lt;br /&gt;
&lt;br /&gt;
but when i execute the appliction, the form fmUserLogin is  displaying the border.&lt;br /&gt;
&lt;br /&gt;
How could i hide the border?&lt;br /&gt;
&lt;br /&gt;
Thank's in advance&lt;br /&gt;
&lt;br /&gt;
MB</description>
      <pubDate>Sun, 27 Jul 2008 03:53:51 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Delphi Error</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373370/373370/delphi-error/</link>
      <description>here is the code from the button click which is causing problems, if anyone wants full code just shout :) im getting an index 0 error if anyone can help that would be great&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;procedure TMain.Button_LvlUpClick(Sender: TObject);
var

 Calc1 :Integer;
 Calc2 :Integer;

begin
FirstRun := False;
Calc1 := 0;
Calc2 := 0;
OrderID:= SelectedID;
EUorUS:= Grid.Fields[1].AsString;
ServerName := Grid.Fields[2].AsString;
CharName:= Grid.Fields[3].AsString;
CharClass:= Grid.Fields[4].AsString;
StartLevel:= IntToStr(Grid.Fields[5].AsInteger);
EndLevel :=  IntToStr(Grid.Fields[6].AsInteger);
CurrentLevel := (Grid.Fields[7].AsInteger);
Progress:= IntToStr(Grid.Fields[8].AsInteger);
Handler:= Grid.Fields[9].AsString;


CurrentLevel:= CurrentLevel + 1;

Calc1:= StrToInt(EndLevel) - StrToInt(StartLevel);
Calc2:= (StrToInt(Progress) - (Calc1) - 1)*-1;
Progress:= IntToStr(Calc2);


ADOQuery1.Close;

ADOQuery1.Parameters.Clear;
ADOQuery1.Parameters[0].Value := Progress;
ADOQuery1.Parameters[1].Value := CurrentLevel;
ADOQuery1.Parameters[2].Value := OrderID;
ADOQuery1.SQL[0] := 'INSERT INTO Orders (Progress, CurrentLevel) VALUES(:Progress, :CurrentLevel)  WHERE OrderID = :OrderID';
ADOQuery1.ExecSQL;

ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('SELECT Orders.OrderID, Orders.[EU/US], Orders.ServerName, Orders.CharName, Orders.CharClass, Orders.StartLevel, Orders.EndLevel, Orders.CurrentLevel, Orders.Progress, Orders.Handler FROM Orders WHERE Orders.OrderID = :OrderID');
ADOQuery1.Open;

end;&lt;/pre&gt;&lt;br /&gt;</description>
      <pubDate>Sun, 13 Jul 2008 10:06:08 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>libmysql.dll</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373296/373296/libmysqldll/</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
I just need some help , i have recently installed the latest version of mysql server and i am using delphi 7. the problem is that when i use tje dbexpress tsql component and set the connected property to true delphi complains that it cant load the libmysql.dll. i have looked everywhere on the net but cant seem to get a clear indication as to what the problem really is. please can someone advise me on how to fix this very annoying problem. many thanks and kind regards.&lt;br /&gt;</description>
      <pubDate>Wed, 09 Jul 2008 23:20:43 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>TraceRT Component</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/373007/373007/tracert-component/</link>
      <description>I'm looking for some sort of working TraceRT component or code for Delphi 6.  I found one called ICMP something by this lady, andrea something, as you can tell I already deleted it.  Wasn't working correctly and giving a lot of errors.  I would like to find a component for this, I have searched the web through and through and cannot find anything.  If all else fails I will settle for some good code if anyone has code for this.&lt;br /&gt;
&lt;br /&gt;
This is what I'm currently using, I found on internet:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;unit TraceRt;
interface

// ==================================================
=========================
// TRACEROUTE Class
// Mike Heydon Dec 2003
//
// Method
// Trace(IpAddress : string; ResultList : TStrings)
//             Returns semi-colon delimited list of ip routes to target
//             format .. IP ADDRESS; PING TIME MS; TIME TO LIVE; STATUS
//
// Properties
//             IcmpTimeOut : integer (Default = 5000ms)
//             IcmpMaxHops : integer (Default = 40)
// ==================================================
=========================

uses Forms, Windows, Classes, SysUtils, IdIcmpClient;

type
     TTraceRoute = class(TObject)
     protected
       procedure ProcessResponse(Status : TReplyStatus);
       procedure AddRoute(AResponseTime : DWORD;
                          AStatus: TReplyStatus; const AInfo: string );
     private
       FIcmpTimeOut,
       FIcmpMaxHops : integer;
       FResults : TStringList;
       FICMP : TIdIcmpClient;
       FPingStart : cardinal;
       FCurrentTTL : integer;
       procedure PingTarget;
     public
       constructor Create;
       procedure Trace(const AIpAddress : string; AResultList : TStrings);
       property IcmpTimeOut : integer read FIcmpTimeOut write FIcmpTimeOut;
       property IcmpMaxHops : integer read FIcmpMaxHops write FIcmpMaxHops;
     end;

// ---------------------------------------------------------------------------
implementation

// ========================================
// Create the class and set defaults
// ========================================

constructor TTraceRoute.Create;
begin
  IcmpTimeOut := 5000;
  IcmpMaxHops := 40;
end;


// =============================================
// Use Indy component to ping hops to target
// =============================================

procedure TTraceRoute.PingTarget;
var wOldMode : DWORD;
begin
  Application.ProcessMessages;
  inc(FCurrentTTL);

  if FCurrentTTL &amp;lt; FIcmpMaxHops then begin
    FICMP.TTL  := FCurrentTTL;
    FICMP.ReceiveTimeout := FIcmpTimeOut;
    FPingStart := GetTickCount;
    wOldMode := SetErrorMode(SEM_FAILCRITICALERRORS);

    try
      FICMP.Ping;
      ProcessResponse(FICMP.ReplyStatus);
    except
      FResults.Add('0.0.0.0;0;0;ERROR');
    end;

    SetErrorMode(wOldMode);
  end
  else
    FResults.Add('0.0.0.0;0;0;MAX HOPS EXCEEDED');
end;


// ==================================================
==========
// Add the ping reply status data to the returned stringlist
// ==================================================
==========

procedure TTraceRoute.AddRoute(AResponseTime : DWORD;
                               AStatus: TReplyStatus;
                               const AInfo: string );
begin
  FResults.Add(AStatus.FromIPAddress + ';' +
               IntToStr(GetTickCount - AResponseTime) + ';' +
               IntToStr(AStatus.TimeToLive) + ';' + AInfo);
end;


// ==================================================
==========
// Process the ping reply status record and add to stringlist
// ==================================================
==========

procedure TTraceRoute.ProcessResponse(Status : TReplyStatus);
begin
  case Status.ReplyStatusType of
    // Last Leg - Terminate Trace
    rsECHO : AddRoute(FPingStart,Status,'OK');

    // More Hops to go - Continue Pinging
    rsErrorTTLExceeded :  begin
                            AddRoute(FPingStart,Status,'OK');
                            PingTarget;
                          end;

    // Error conditions - Terminate Trace
    rsTimeOut : AddRoute(FPingStart,Status,'TIMEOUT');
    rsErrorUnreachable : AddRoute(FPingStart,Status,'UNREACHABLE');
    rsError : AddRoute(FPingStart,Status,'ERROR');
  end;
end;

// ==================================================
====
// Trace route to target IP address
// Results returned in semi-colon delimited stringlist
// IP; TIME MS; TIME TO LIVE; STATUS
// ==================================================
====

procedure TTraceRoute.Trace(const AIpAddress : string;
                            AResultList : TStrings);
begin
  FICMP := TIdIcmpClient.Create(nil);
  FICMP.Host := AIpAddress;
  FResults := TStringList(AResultList);
  FResults.Clear;
  FCurrentTTL := 0;
  PingTarget;
  FICMP.Free;
end;

{eof}
end.&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
This work fine, no problem.  The only thing is that when I run it with a web address or even a web IP that is not local it will not resolve or go past my local router, it times out and stops.  Any ideas?&lt;br /&gt;
&lt;br /&gt;
I will settle for this script if I can get it working for sites as well as local.&lt;br /&gt;</description>
      <pubDate>Sun, 29 Jun 2008 13:46:41 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>connet to another computer through sending a command in delphi</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/372972/372972/connet-to-another-computer-through-sending-a-command-in-delphi/</link>
      <description>Dear friends,&lt;br /&gt;
 I have a problem in delphi to read a file in network folder.&lt;br /&gt;
  There is a computer( called PC2 ) that SQL SERVER 2000 has been installed on it and a folder ( called SHAREFILES ) has been shared in it .&lt;br /&gt;
I want to read a file that is in SHAREFILES throuth my program but it dos not permit to access it( Users do not know what the username and password are but I know).&lt;br /&gt;
 when I manually login to PC2 it works well .&lt;br /&gt;
 How can I connect to PC2 through programming without logging  manually ( for example Sending a command for logging automatically to pc2)  . &lt;br /&gt;
moreover, SQL server has been installed in Mixed mode and all the pc's OS are WINXP and I do not want the users to loggin manually.&lt;br /&gt;
Best regards&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 27 Jun 2008 13:29:38 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Delphi network game problem</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/372575/372575/delphi-network-game-problem/</link>
      <description>Good day i;n currently trying to create a texas holdem type poker game that can be played over a lan. My problem is i;m not sure whether to use UDP or TCP/IP for the communication?&lt;br /&gt;
&lt;br /&gt;
Secondly what do I need to do when i what to join a game that is busy being created, I don't want to use the same server everytime and I don't want to type in the IP address of the "server" everytime, I want the computers that join to automatically find the address of the game that has been started how do I do that, like most games using the feature that I'm trying to explain they describe it as a lobby, and a list of the servers on that network of that game will appear in this lobby list, games i'm refering to are Halflife 1 and command and conquerer 2?&lt;br /&gt;
&lt;br /&gt;
The commands for the game has already been done and test on a standalone system and over a UDP and TCP/IP system, so i've got that down on both but I still have to type in the IP address of the serving computer, I don't want that, please if you can help I'd forward you the program / game when I'm finished.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <pubDate>Wed, 11 Jun 2008 03:32:18 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Action shortcut not triggered.</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/372424/372424/action-shortcut-not-triggered/</link>
      <description>&lt;br /&gt;
I have a action on a form with a key shortcut. The action will not get triggered. It seems as if my 'parent-form' (mainform) gets the keys instead.&lt;br /&gt;
&lt;br /&gt;
The form with the action have focus, but is displayed on a panel located on my MainForm.&lt;br /&gt;
&lt;br /&gt;
Is there any properties I need to check to make sure the right form gets the right key presses?&lt;br /&gt;
&lt;br /&gt;
Thank you.&lt;br /&gt;
&lt;br /&gt;
Delphi 7</description>
      <pubDate>Thu, 05 Jun 2008 00:43:42 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Passing Variable Array in Non-Var parameters?</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/372275/372275/passing-variable-array-in-non-var-parameters/</link>
      <description>Hello, I want to pass an Array in EnumWindows function. When I make change to the array in EnumFunc it is not updated to the original array because I cannot make it pass as a VAR parameters. Do you have any idea how can I change the original array directly?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Function EnumFunc (ParentHwnd: hwnd; ThreadListR:lparam):Bool;stdcall;
Var
ThreadList:Array of Cardinal;
i:integer;
AThreadID:Cardinal;
Begin
Result:=True;
ThreadList:=Pointer(ThreadListR);
AThreadID:=GetWindowThreadProcessID(ParentHwnd,nil
);
If AThreadID=0 then Exit;
If High(ThreadList)&amp;lt;&amp;gt;-1 then
For i:=Low(ThreadList) to High(ThreadList) do If ThreadList[i]=AThreadID then Exit;
SetLength(ThreadList,High(ThreadList)+2);
ThreadList[High(ThreadList)]:=AThreadID;
end;
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Var
ThreadList:Array of Cardinal;
Begin
EnumWindows(@EnumFunc,Longint(ThreadList));
Showmessage( inttostr( High(ThreadList) ) );
end;
&lt;/pre&gt;&lt;br /&gt;</description>
      <pubDate>Thu, 29 May 2008 14:08:37 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Service start problem with Delphi 7 compile</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/371883/371883/service-start-problem-with-delphi-7-compile/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I am facing a strange problem with a Delphi based windows service. The service was originally written and compiled in Delphi 5 and used to work properly. Recently I wanted to compile the service code in Delphi 7. For that purpose I had to make some minor changes to the service code. In particular I had to include the Variants unit in the &lt;strong&gt;uses&lt;/strong&gt; clause of every unit where the VarToStr function was used.&lt;br /&gt;
&lt;br /&gt;
The service compiles properly after the above mentioned changes. However, when I install the service and try to start it, the service hangs indefinitely in the Starting state. As the code changes mentioned above appear insignificant and unrelated to service start code (the VarToStr function is used in some logging lines only), this behavior is very strange.&lt;br /&gt;
&lt;br /&gt;
After some investigation I have found a solution which is equally strange. The solution to fix this problem is to perform an incremental compile (Project/Compile ACS - Ctrl+F9)after the initial full compile (Project/Build ACS). ACS is the name of the service. To my understanding, the problem occurs on a full compile, i.e. when there are no .dcu files present. When I run the service file compile using the full compile, it does not start. But when I perform a second compile (which should essentially be a re-linking because I do not change any code), the service starts to work.&lt;br /&gt;
&lt;br /&gt;
Would appreciate if someone can point me towards the actual cause of the problem. The solution mentioned above does not seem a proper one because at some future time, someone may fail to perform a second compile and the problem will be back.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Nauman&lt;br /&gt;</description>
      <pubDate>Wed, 14 May 2008 02:58:38 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
    <item>
      <title>Select text and automatically copy it to clipboard (help)</title>
      <link>http://www.programmersheaven.com/mb/delphikylix/371867/371867/select-text-and-automatically-copy-it-to-clipboard-help/</link>
      <description>I'm not a programmer but some guy is helping to make a program with Delphi which uses clipboard. So before i use my program i need to select and actually copy ( right click or ctrl+c) text to clipboard first.&lt;br /&gt;
&lt;br /&gt;
Is it possible to make that my program copies selected text to clipboard automatically? I need to be able to copy hte text from any document where text can be highlighted and copied ( .txt, .doc, .pdf, html, etc.) I would appreciate it if anybody could explain to me if it's possible and how hard it si to implement and possibly to expalin to my guy how to do that.&lt;br /&gt;
&lt;br /&gt;
Appreciate any help.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 13 May 2008 12:20:16 -0700</pubDate>
      <category>Delphi and Kylix</category>
    </item>
  </channel>
</rss>