<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Programmers Heaven Forums RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from all of the Programmer's Heaven forums, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Fri, 09 May 2008 16:37:57 -0700</pubDate>
    <lastBuildDate>Fri, 09 May 2008 16:37:57 -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>Socket control</title>
      <link>http://www.programmersheaven.com/mb/networks/371820/371820/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Socket control&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  today at 5:10 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi!&lt;br /&gt;
&lt;br /&gt;
I would like to create an application, which well be inserted between the mail client (outlook express, or mozilla, etc) and a remote pop3 server. It is something like email scanners do. I want control the mail data. (actually it will be special a spam filter). I have searched google, but could not find any information, how to integrate an applicaton with the TCP data flow. I need only the basic concept.&lt;br /&gt;
Any help would be appriciated.&lt;br /&gt;
&lt;br /&gt;
Thanx, have a nice day,&lt;br /&gt;
softman&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Fri, 09 May 2008 05:10:49 -0700</pubDate>
      <category>Networking And Security</category>
    </item>
    <item>
      <title>Reversed Axis Direction???</title>
      <link>http://www.programmersheaven.com/mb/openGL/371819/371819/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Reversed Axis Direction???&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  today at 4:57 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi&lt;br /&gt;
&lt;br /&gt;
I'm modelling a landscape in openGL but the X axis appears to have been reversed. As far as I know the axes are supposed to be laid out like so (positive values):&lt;br /&gt;
&lt;br /&gt;
Y  Z&lt;br /&gt;
| /&lt;br /&gt;
|/&lt;br /&gt;
'----X&lt;br /&gt;
&lt;br /&gt;
however, in my model, the X axis is reversed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any ideas why this has happened and how I can correct it?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;br /&gt;
edit: it has occurred to me that possibly it is the z axis that is reversed and my idea of the axes was wrong..?&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Fri, 09 May 2008 04:57:44 -0700</pubDate>
      <category>OpenGL</category>
    </item>
    <item>
      <title>IDirect3DDevice9::Present</title>
      <link>http://www.programmersheaven.com/mb/DirectX/371818/371818/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;IDirect3DDevice9::Present&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  today at 3:30 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi everyone,&lt;br /&gt;
&lt;br /&gt;
Here is the story. I am making an emulator which original system runs for 60 Hz displays. So I create a Direct3D device on fullscreen mode asking for a 60 Hz refreshing rate, I also use the D3DPRESENT_INTERVAL_ONE parameter to have the rendering synchonized with the VSync. And it looks pretty good.&lt;br /&gt;
Since the rendering consist mainly of displaying a 2d buffer with direct3d, the rendering function is pretty simple:&lt;br /&gt;
&lt;br /&gt;
	IDirect3DDevice9_BeginScene(d3ddev);&lt;br /&gt;
	IDirect3DSurface9_LockRect(pMyOffscreenSurface, &amp;amp;d3dlr, 0, 0);&lt;br /&gt;
	/* Here I copy my buffer to the offscreenSurface */&lt;br /&gt;
	IDirect3DSurface9_UnlockRect(pMyOffscreenSurface);&lt;br /&gt;
	IDirect3DDevice9_StretchRect(d3ddev, pMyOffscreenSurface, &amp;amp;srcRect, pRenderTarget, &amp;amp;dstRect, D3DTEXF_NONE);&lt;br /&gt;
	IDirect3DDevice9_EndScene(d3ddev);&lt;br /&gt;
&lt;br /&gt;
	IDirect3DDevice9_Present(d3ddev, NULL, NULL, NULL, NULL);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem is that when I go to windowed mode, the frame rate drops for some reasons linked to the size of the window and the current display color mode.&lt;br /&gt;
Since I am a beginner in DirectX there is certainly something I miss, but I really wish I had the same quality in the windowed mode that I have in the fullscreen mode.&lt;br /&gt;
&lt;br /&gt;
Could someone help me ?&lt;br /&gt;
&lt;br /&gt;
Thanks a lot&lt;br /&gt;
Joe&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Fri, 09 May 2008 03:30:02 -0700</pubDate>
      <category>DirectX</category>
    </item>
    <item>
      <title>An odd Dev-C++ Linker Error</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/371813/371813/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;An odd Dev-C++ Linker Error&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 10:32 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hello programmers. =)&lt;br /&gt;
&lt;br /&gt;
I'm trying to use Bloodshed's most recent Dev-C++ release (v. 4.9.9.2) to compile C++ programs that will run from Windows command prompt (MSDOS). However, I've been encountering an odd linker error, and I've been unable to find any references to it on the Web. Here is the code of my very simple test program:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;#include &amp;lt;cstdlib&amp;gt;
#include &amp;lt;iostream&amp;gt;
using namespace std;

int main()
{
    cout &amp;lt;&amp;lt; "Hello world!" &amp;lt;&amp;lt; endl;
    
    return EXIT_SUCCESS;
}&lt;/pre&gt;&lt;br /&gt;
This program compiles fine under the UNIX system we use for our C++ class. However, when I try to compile this code using Dev-C++, I'm given the following error:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status&lt;/pre&gt;&lt;br /&gt;
I'm stumped. =/&lt;br /&gt;
&lt;br /&gt;
Is there anyone who can explain this error to me and perhaps offer a solution?&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 22:32:10 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>manupulation using ADODB</title>
      <link>http://www.programmersheaven.com/mb/VBasic/371810/371810/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;manupulation using ADODB&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 8:45 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;hello&lt;br /&gt;
I am beginner in visual basic 6, i am having problem in adding,saving and deleting records in vb using ms-access data base.&lt;br /&gt;
&lt;br /&gt;
i don't know whether i am right or wrong. i am pasting my codeing below:&lt;br /&gt;
&lt;br /&gt;
Dim con As New ADODB.Connection&lt;br /&gt;
Dim rs As New ADODB.Recordset&lt;br /&gt;
&lt;br /&gt;
Private Sub Form_Load()&lt;br /&gt;
With con&lt;br /&gt;
    .Provider = "Microsoft.Jet.OLEDB.4.0"&lt;br /&gt;
    .ConnectionString = "D:\studata.mdb" (path to the database)&lt;br /&gt;
    .Open&lt;br /&gt;
End With&lt;br /&gt;
rs.Open "select * from records", con, adOpenDynamic, adLockBatchOptimistic&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Public Sub fnDisplay()&lt;br /&gt;
&lt;br /&gt;
Text1.Text = rs(0)&lt;br /&gt;
Text2.Text = rs(1)&lt;br /&gt;
Text3.Text = rs(2)&lt;br /&gt;
Text4.Text = rs(3)&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Save_Click()&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
rs.Save&lt;br /&gt;
Call fnDisplay&lt;br /&gt;
MsgBox "RECORD SAVED"&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Add_Click()&lt;br /&gt;
On Error Resume Next&lt;br /&gt;
Text1.Text = ""&lt;br /&gt;
Text2.Text = ""&lt;br /&gt;
Text3.Text = ""&lt;br /&gt;
Text4.Text = ""&lt;br /&gt;
rs.AddNew&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Del_Click()&lt;br /&gt;
rs.Delete&lt;br /&gt;
Call fnDisplay&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Plz tell me what to do..&lt;br /&gt;
&lt;br /&gt;
All suggestion will be appreciated&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 20:45:03 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>How to plot  the corrspoding points in two image?</title>
      <link>http://www.programmersheaven.com/mb/ctocplusplustomatlab/371809/371809/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;How to plot  the corrspoding points in two image?&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 7:16 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Mark some points in two images. And then we need to use line to connect the correspoding points. How to finish the above procedure using Matlab(or else tool)? Please see attachment.&lt;br /&gt;
Please help me! Thanks Thanks Thanks!&lt;br /&gt;
&lt;br /&gt;
-----------&lt;br /&gt;
Thanks to your reading and writing.&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;img src="/Images/Forum/icon1_attach.gif" class="inlineimg" /&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=153"&gt;080508-2.JPG&lt;/a&gt; (27698 bytes | downloaded 7 times)&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 19:16:47 -0700</pubDate>
      <category>Matlab</category>
    </item>
    <item>
      <title>ConnectionString</title>
      <link>http://www.programmersheaven.com/mb/ASPNET/371808/371808/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;ConnectionString&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 6:13 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hello! &lt;br /&gt;
I have just developed, as an assignment , a small conventional website, commonly used for “Log in “purposes. User enters the UserID and password. User ID is compares from the customer Table, to verify, if the name already exists in database. If yes, he is directed to main page. &lt;br /&gt;
Else he is directed to  newuser  Register  page , for providing  personal information . This information is added in the database table as a new recordset.&lt;br /&gt;
&lt;br /&gt;
The code in index.aspx.vb file is as under.&lt;br /&gt;
&amp;lt;!-- Code starts here --&amp;gt;&lt;br /&gt;
Imports System.Data.SqlClient&lt;br /&gt;
&lt;br /&gt;
Partial Class index&lt;br /&gt;
    Inherits System.Web.UI.Page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Private Sub Page_Load(ByVal sender As Object, ByVal e As         				System.EventArgs) Handles MyBase.Load&lt;br /&gt;
&lt;br /&gt;
 	End sub &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    Protected Sub Submit_Click(ByVal sender As Object, ByVal e As 	System.EventArgs) Handles Submit.Click&lt;br /&gt;
        Session("Name") = txtusername.Text&lt;br /&gt;
        Dim con As New  SqlConnection(System.Configuration. 						ConfigurationManager.AppSettings("Zeedb"))&lt;br /&gt;
&lt;br /&gt;
        Dim dr As SqlDataReader&lt;br /&gt;
        'Dim StudentID As String&lt;br /&gt;
        Dim strSQL As String = "SELECT * FROM  tblCustomer  WHERE 			CustomerName = '" &amp;amp; txtusername.Text &amp;amp; "' and Password = '" 		&amp;amp; txtPassword.Text &amp;amp; "'"&lt;br /&gt;
        Dim cmdSQL As SqlCommand&lt;br /&gt;
        Try&lt;br /&gt;
            con.Open()&lt;br /&gt;
            cmdSQL = New SqlCommand(strSQL, con)&lt;br /&gt;
            cmdSQL.ExecuteNonQuery()&lt;br /&gt;
            dr = cmdSQL.ExecuteReader&lt;br /&gt;
&lt;br /&gt;
            If dr.Read Then&lt;br /&gt;
                Response.Redirect("mainpage.aspx")&lt;br /&gt;
            Else&lt;br /&gt;
                Response.Redirect("index1.aspx")&lt;br /&gt;
            End If&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
            lblError.Text = ex.Message&lt;br /&gt;
        Finally&lt;br /&gt;
            con.Close()&lt;br /&gt;
        End Try&lt;br /&gt;
&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Protected Sub newuser_Click(ByVal sender As Object, ByVal e As 			System.EventArgs) Handles newuser.Click&lt;br /&gt;
	        Response.Redirect("register.aspx")&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&amp;lt;!-- Code ends here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Customers file resides in database named “Zeedb “at a Local SQL server   in a different directory within the same machine. Web server used is Local Host built-in within the same machine. &lt;br /&gt;
&lt;br /&gt;
The problem I am facing is that when I debug the system, the build up succeeds. However, when data is entered in text boxes (User Name and Password) I receive an error message:&lt;br /&gt;
&lt;br /&gt;
“The ConnectionString property has not been initialized”&lt;br /&gt;
&lt;br /&gt;
As tried to search on MSDN and Google, it seems to be a very common mistake, but I could not find the remedy. The reason of the fault could not be identified.&lt;br /&gt;
&lt;br /&gt;
Please help me, where id the oversight, which I cannot locate.&lt;br /&gt;
Thanks.&lt;br /&gt;
Abdul Hayee.&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 18:13:39 -0700</pubDate>
      <category>ASP.NET</category>
    </item>
    <item>
      <title>ADO SHAPE Help</title>
      <link>http://www.programmersheaven.com/mb/basic/371806/371806/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;ADO SHAPE Help&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 5:27 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi all.&lt;br /&gt;
&lt;br /&gt;
Need some help with an syntax error with the ADO Shape command. I am adding featured to a Legacy VB6 application and I am trying to generate a hierarchy like this&lt;br /&gt;
Level 1&lt;br /&gt;
   Data Set A&lt;br /&gt;
     Data Set B&lt;br /&gt;
     Data Set C&lt;br /&gt;
   Data Set D&lt;br /&gt;
&lt;br /&gt;
I can get it to work for data sets A,B, and C. When I add the shape command for Data set E, I get the very informitive Syntax error.&lt;br /&gt;
&lt;br /&gt;
Code Snippet&lt;br /&gt;
&lt;span style="font-size: small;"&gt;    strSql = "SHAPE {exec dbo.rxl_getTMSVersionTypes ?,?,?,?}  as VersionTypes " &amp;amp; _&lt;br /&gt;
             "  APPEND ((SHAPE {exec dbo.rxl_getTMSPolicyVersions ?,?,?,?} as PolicyVersions " &amp;amp; _&lt;br /&gt;
             "              APPEND ({exec dbo.getTMSPolicyTransactions ?, ?} " &amp;amp; _&lt;br /&gt;
             "              relate PCH_VER_ID to PCH_VER_ID " &amp;amp; _&lt;br /&gt;
             "                     ) as PolicyTransactions " &amp;amp; _&lt;br /&gt;
             "        APPEND ((SHAPE {exec dbo.getTMSVersionVehicles ?,?} " &amp;amp; _&lt;br /&gt;
             "                  APPEND ((SHAPE {exec dbo.getTMSVehicleTransactions ?,?} " &amp;amp; _&lt;br /&gt;
             "                          APPEND ({exec dbo.GetTMSCoverages ?} " &amp;amp; _&lt;br /&gt;
             "                          relate VEH_ID to COV_VEH_ID, VEH_PCH_TRAN_ID to cov_veh_pch_tran_id) as coverages,  " &amp;amp; _&lt;br /&gt;
             "                                 ({exec dbo.getTMSEndorsements} " &amp;amp; _&lt;br /&gt;
             "                          relate veh_id to End_veh_id, veh_pch_tran_id to End_veh_pch_tran_id) as Endorsements) " &amp;amp; _&lt;br /&gt;
             "                  relate PCH_TRAN_ID to VEH_PCH_TRAN_ID, veh_id to veh_id)) " &amp;amp; _&lt;br /&gt;
             "           ) " &amp;amp; _&lt;br /&gt;
             "  relate PCH_VER_CD to PCH_VER_CD, VER_EFF_DT to EFF_DT " &amp;amp; _&lt;br /&gt;
             "         ) as VersionSummary"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 17:27:29 -0700</pubDate>
      <category>Basic</category>
    </item>
    <item>
      <title>More Experimenting With JApplet KeyListener Wont Work</title>
      <link>http://www.programmersheaven.com/mb/java/371803/371803/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;More Experimenting With JApplet KeyListener Wont Work&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 2:11 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi there.&lt;br /&gt;
It all looks good except that it's supposed to write out my key codes when i press them. The code marked in red wont trigger&lt;br /&gt;
Thanks for the help.&lt;br /&gt;
The SnakeWarPanel extends JPanel.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;import java.awt.Color;
import java.awt.Container;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JComboBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;

public class SnakeWarApplet extends JApplet implements ActionListener,KeyListener{
    int width,height;
    
    Container content;
    JComboBox cb1;
    JButton b1;
    
    public void init() {
    
        width=getWidth();
        height=getHeight();
    
        content = getContentPane();
        content.setBackground(Color.white);
        content.setLayout(null);
    
     	String[] options = { "1 players", "2 players", "3 players", "4 players" };
    	cb1 = new JComboBox(options);
    	cb1.setSelectedIndex(1);	
    	cb1.setBounds(width/2-100,height/2-50,100,50);
    	cb1.setFocusable(false);
    	content.add(cb1);
    
    	b1 = new JButton("Start");
    	b1.setBounds(width/2,height/2-50,100,50);
    	b1.addActionListener(this);
    	content.add(b1);
    }
    public void actionPerformed(ActionEvent e){
    	System.out.println("ButtonPressed");
    	cb1.setVisible(false);
    	b1.setVisible(false);
    
    	SnakeWarPanel SWP=new SnakeWarPanel(cb1.getSelectedIndex()+1,width,heigh
t);
    	SWP.setBounds(0,0,width,height);
    	content.add(SWP);
    	SWP.addKeyListener(this);
    
    	repaint();
    }
    public void keyPressed(KeyEvent e)
    {
        &lt;span style="color: Red;"&gt;System.out.println("P"+e.getKeyCode());&lt;/span&gt;
    }
    public void keyReleased(KeyEvent e)
    {
        &lt;span style="color: Red;"&gt;System.out.println("R"+e.getKeyCode());&lt;/span&gt;
    }          
    public void keyTyped(KeyEvent e)
    {
        &lt;span style="color: Red;"&gt;System.out.println("T"+e.getKeyCode());&lt;/span&gt;
    }
}&lt;/pre&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 14:11:29 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>copy function</title>
      <link>http://www.programmersheaven.com/mb/perl/371802/371802/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;copy function&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 12:55 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;use File::Copy;&lt;br /&gt;
mkdir '../test1';&lt;br /&gt;
mkdir '../test1/test2';&lt;br /&gt;
mkdir '../test3';&lt;br /&gt;
&lt;br /&gt;
copy ( '../test1' , '../test3');&lt;br /&gt;
&lt;br /&gt;
#why doesn't test2 get copied into test 3?&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 12:55:01 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>VSTO &amp; Excel vlookup question</title>
      <link>http://www.programmersheaven.com/mb/VBNET/371801/371801/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;VSTO &amp;amp; Excel vlookup question&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 11:34 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;I'm trying to use the vlookup function in VB.net, and I can't get it to work.  In vba, this was simple, but I can't figure out how to call this function in VSTO.  I think the problem is with the microsoft.office.interop.excel part.  Help on this would be great, I'm struggling with pulling functionality from Excel into VSTO and .net.  Thanks!&lt;br /&gt;
&lt;br /&gt;
Private Function myLookup(ByVal value As String, ByVal aRange As Excel.Range, ByVal index As Integer, ByVal notexact As Boolean) As String&lt;br /&gt;
&lt;br /&gt;
        On Error GoTo ErrorHandler&lt;br /&gt;
&lt;br /&gt;
        myLookup = Microsoft.Office.Interop.Excel.WorksheetFunction.V
Lookup(value, aRange, index, notexact)&lt;br /&gt;
&lt;br /&gt;
        If (IsError(myLookup) Or (Err.Number &amp;lt;&amp;gt; 0)) Then&lt;br /&gt;
            myLookup = ""&lt;br /&gt;
        End If&lt;br /&gt;
        Exit Function&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 11:34:50 -0700</pubDate>
      <category>VB.NET</category>
    </item>
    <item>
      <title>ASP.NET C# Crystal Reports Freelance Programmer</title>
      <link>http://www.programmersheaven.com/mb/jobs-wanted/371795/371795/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;ASP.NET C# Crystal Reports Freelance Programmer&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 8:32 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;&lt;strong&gt;&lt;span style="color: Blue;"&gt;&lt;span style="font-size: x-small;"&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
I have over 12+ years of experience in software development.&lt;br /&gt;
&lt;br /&gt;
I am software developer looking for freelance or Full Time work, my skill sets:&lt;br /&gt;
&lt;br /&gt;
.NET(ASP.NET / C# / VB.NET)&lt;br /&gt;
VB,&lt;br /&gt;
ASP (VBScript &amp;amp; Javascript),&lt;br /&gt;
SQL Server,&lt;br /&gt;
Access (VBA),&lt;br /&gt;
Excel (VBA),&lt;br /&gt;
Oracle&lt;br /&gt;
Crystal Reports &amp;amp;&lt;br /&gt;
SQL Reporting Service&lt;br /&gt;
&lt;br /&gt;
I can work on migration projects, supporting exsisting project and looking out for new project.&lt;br /&gt;
&lt;br /&gt;
waiting for your work.&lt;br /&gt;
&lt;br /&gt;
sumeet.leo @ gmail.com or sumeet.leo @ hotmail.com&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 08:32:17 -0700</pubDate>
      <category>Jobs Wanted</category>
    </item>
    <item>
      <title>javascript that works in firefox but not IE</title>
      <link>http://www.programmersheaven.com/mb/java-script/371794/371794/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;javascript that works in firefox but not IE&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 7:24 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hello, I have tried to write a javascript. However, after i tested my script. I found out that it only works in firefox but not in IE. Does anyone have any idea that why is it like this? &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 07:24:13 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>dumbest question to date..</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/371792/371792/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;dumbest question to date..&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 7:05 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;there are no stupid questions, just stupid people.. well, then i am a stupid person because i don't know sh*t about this stuff.. i am a graphic designer/ website creator.. i've made successful adult paysites over 10 years using basic html, frontpage 98, and ccbill.. question.. i now need a programmer with extensive database knowledge for a large scale project that i am launching.. i will hire and/or include this person in the business, if interested.. i need to know if i can design the site(graphics, pages, etc) now, then have the programmer integrate the functionality of the database applications at a later time? thanks, in advance.. &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 07:05:35 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
    <item>
      <title>Createobject on vista</title>
      <link>http://www.programmersheaven.com/mb/VBasic/371787/371787/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Createobject on vista&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 3:57 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Please find below my problem:&lt;br /&gt;
&lt;br /&gt;
A Restricted user doesnot have privileges to edit HKLM\Software\Classes or HKCR section of registry, So i had modified my application installer to write in HKCU section of registry. Doing this I was able to make a clear install of my applicatio but it let me to a problem that a restricted user/power user can't run application, as it fails at "CreateObject"&lt;br /&gt;
&lt;br /&gt;
Am i missing any more registry entry in Vista?&lt;br /&gt;
&lt;br /&gt;
Any help will be appreciated!!&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 03:57:33 -0700</pubDate>
      <category>Visual Basic</category>
    </item>
    <item>
      <title>Flipbook</title>
      <link>http://www.programmersheaven.com/mb/flash/371786/371786/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Flipbook&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 3:47 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Still looking for a good component 4 my website...&lt;br /&gt;
Please do help!&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 03:47:02 -0700</pubDate>
      <category>Flash development</category>
    </item>
    <item>
      <title>Createobject on vista</title>
      <link>http://www.programmersheaven.com/mb/basic/371785/371785/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Createobject on vista&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 2:44 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Please find below my problem:&lt;br /&gt;
&lt;br /&gt;
A Restricted user doesnot have privileges to edit HKLM\Software\Classes or HKCR section of registry, So i had modified my application installer to write in HKCU section of registry. Doing this I was able to make a clear install of my applicatio but it let me to a problem that a restricted user/power user can't run application, as it fails at "CreateObject"&lt;br /&gt;
&lt;br /&gt;
Am i missing any more registry entry in Vista?&lt;br /&gt;
&lt;br /&gt;
Any help will be appreciated!!&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 02:44:48 -0700</pubDate>
      <category>Basic</category>
    </item>
    <item>
      <title>How can you pass JSON objects from javascript to java applet?</title>
      <link>http://www.programmersheaven.com/mb/java-script/371783/371783/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;How can you pass JSON objects from javascript to java applet?&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 2:17 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;    Hello, I've been frantically searching the web for this particular problem. It involves passing objects from javascript to an applet...&lt;br /&gt;
&lt;br /&gt;
 Say for example I have this code in javascript&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Test of passing javascript to java&amp;lt;/title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script text="text/javascript" language="javascript"&amp;gt;&lt;br /&gt;
function tryAlert()&lt;br /&gt;
{&lt;br /&gt;
	var myJson = {"name":"ana","age":"19","gender":"female"};&lt;br /&gt;
	document.json.getJson(myJson);//pass myJson to the method in the applet&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;form name="test"&amp;gt;&lt;br /&gt;
&amp;lt;input type="button" value="Send" onClick="tryAlert()"&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
//here is the java applet code&lt;br /&gt;
import java.applet.Applet;&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import javax.swing.*;&lt;br /&gt;
import org.json.JSONArray;&lt;br /&gt;
import org.json.JSONException;&lt;br /&gt;
import org.json.JSONObject;&lt;br /&gt;
import org.json.JSONTokener;&lt;br /&gt;
import org.json.JSONStringer;&lt;br /&gt;
import org.json.*;&lt;br /&gt;
public class testJson2 extends JApplet&lt;br /&gt;
{&lt;br /&gt;
        public JSONArray arrvar;&lt;br /&gt;
        public Object objvar;&lt;br /&gt;
        public JSONObject o;&lt;br /&gt;
        public String temp;&lt;br /&gt;
        public JLabel label1,label2,label3,label4,label5;&lt;br /&gt;
        &lt;br /&gt;
       &lt;br /&gt;
        public void init()&lt;br /&gt;
        {&lt;br /&gt;
           &lt;br /&gt;
            Container c;&lt;br /&gt;
            c = getContentPane();&lt;br /&gt;
            c.setBackground(Color.GREEN);&lt;br /&gt;
            c.setForeground(Color.MAGENTA);&lt;br /&gt;
            c.setLayout(new FlowLayout());&lt;br /&gt;
            label1 = new JLabel("Passing json objects to applet.");&lt;br /&gt;
            label2 = new JLabel();&lt;br /&gt;
            label3 = new JLabel();&lt;br /&gt;
            label4 = new JLabel();&lt;br /&gt;
            label5 = new JLabel();&lt;br /&gt;
            c.add(label1);&lt;br /&gt;
            c.add(label2);&lt;br /&gt;
            c.add(label3);&lt;br /&gt;
            c.add(label4);&lt;br /&gt;
            c.add(label5);&lt;br /&gt;
        }&lt;br /&gt;
               &lt;br /&gt;
        public void getJson(String obj)&lt;br /&gt;
        {&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
&lt;br /&gt;
                this.o = new JSONObject(obj);&lt;br /&gt;
                label2.setText("o.name= "+this.o.get("name").toString());&lt;br /&gt;
                label3.setText("o.age= "+this.o.get("age".toString()));&lt;br /&gt;
                label4.setText("o.gender= "+this.o.get("gender").toString());&lt;br /&gt;
                &lt;br /&gt;
            }catch(JSONException je)&lt;br /&gt;
            {&lt;br /&gt;
                je.printStackTrace();&lt;br /&gt;
                label3.setText("je= "+je);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
}&lt;br /&gt;
Well, the problem is, it seems that JSON objects were not passed to the applet since it can't print the name age and gender. Please help me with this dilemma.    &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 02:17:22 -0700</pubDate>
      <category>JavaScript</category>
    </item>
    <item>
      <title>How to Update an xml file simultaneously from two applications</title>
      <link>http://www.programmersheaven.com/mb/dotnet/371778/371778/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;How to Update an xml file simultaneously from two applications&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  yesterday at 1:19 AM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hello everyone,&lt;br /&gt;
&lt;br /&gt;
 I have an issue in working with xml files. i want to change the contents of an xml from two applications simultaneously.&lt;br /&gt;
this is my xml document&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="Windows-1252"?&amp;gt;&lt;br /&gt;
&amp;lt;OrderList&amp;gt;&lt;br /&gt;
&amp;lt;Order&amp;gt;&lt;br /&gt;
      &amp;lt;Orderno&amp;gt;30&amp;lt;/Orderno&amp;gt;&lt;br /&gt;
    &amp;lt;Key&amp;gt;456&amp;lt;/Key&amp;gt;&lt;br /&gt;
&amp;lt;/Order&amp;gt;&lt;br /&gt;
&amp;lt;Order&amp;gt;&lt;br /&gt;
      &amp;lt;Orderno&amp;gt;30&amp;lt;/Orderno&amp;gt;&lt;br /&gt;
    &amp;lt;Key&amp;gt;&amp;lt;/Key&amp;gt;&lt;br /&gt;
&amp;lt;/Order&amp;gt;&lt;br /&gt;
    &amp;lt;/OrderList&amp;gt;&lt;br /&gt;
&lt;br /&gt;
currently i have the code for update the contents&lt;br /&gt;
Dim XMLDom As New XmlDocument()&lt;br /&gt;
        '//load your xml file&lt;br /&gt;
        XMLDom.Load("c:\t2.xml")&lt;br /&gt;
        Dim newXMLNodes As XmlNodeList = XMLDom.SelectNodes("/OrderList/Order/Orderno")&lt;br /&gt;
&lt;br /&gt;
        For Each newXMLNode1 As XmlNode In newXMLNodes&lt;br /&gt;
            MsgBox(newXMLNode1.InnerText)&lt;br /&gt;
             If newXMLNode1.InnerText = "31" Then&lt;br /&gt;
                newXMLNode1.InnerText = "AS31"&lt;br /&gt;
            End If&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        Next&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        XMLDom.Save("c:\t2.xml")&lt;br /&gt;
        XMLDom = Nothing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
its main problem is that i load the full document to XMLDom and finaly i overwrite the existing xml document,so i lost the data from the second application .&lt;br /&gt;
Can anyone please help me with this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with regards&lt;br /&gt;
rehna&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Thu, 08 May 2008 01:19:40 -0700</pubDate>
      <category>.NET General</category>
    </item>
    <item>
      <title>Implementing shared/exclusive locking (readers/writer) lock</title>
      <link>http://www.programmersheaven.com/mb/Linux/371776/371776/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Implementing shared/exclusive locking (readers/writer) lock&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 10:58 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi,&lt;br /&gt;
I am using semaphore to implement Single Writer Multiple Readers (Reader / writer) lock.&lt;br /&gt;
The problem is that semaphores are critical resources in linux systems, and there is a limit on the number of semaphores &lt;br /&gt;
&lt;br /&gt;
that you can create.&lt;br /&gt;
So, after creating some semaphores, sometimes my application exceeds this limit, and I get an error like 'No space left on &lt;br /&gt;
&lt;br /&gt;
device.'.&lt;br /&gt;
&lt;br /&gt;
I have to reboot the system sometimes, to release the semaphores, if my application is terminated abruptly!&lt;br /&gt;
&lt;br /&gt;
How should I implement readers/writers lock using something else than semaphore, which is scalable?&lt;br /&gt;
&lt;br /&gt;
I don't need reader/writer locks across multiple processes. I just need to use them in multiple threads of my application, &lt;br /&gt;
&lt;br /&gt;
which is a single process.&lt;br /&gt;
But I want a very scalable solution, say I want 500 locks through out my application daemon's lifetime.&lt;br /&gt;
&lt;br /&gt;
I read in the link below that postgres also suffered the same problem, but there it is recommended that the limit should be &lt;br /&gt;
&lt;br /&gt;
increased, which I don't want users to do.&lt;br /&gt;
&lt;a href="http://www2.units.it/~nircdc/doc/postgres/kernel-resources.html"&gt;http://www2.units.it/~nircdc/doc/postgres/kernel-resources.html&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 22:58:29 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>visual studio on WINCE</title>
      <link>http://www.programmersheaven.com/mb/pocket-pc/371773/371773/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;visual studio on WINCE&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 9:15 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;hi all can CE install visual studio 2008, if not wrong is cannot but is there anyway or similair program that I can install visual studio in CE?&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 21:15:32 -0700</pubDate>
      <category>Windows CE &amp; Pocket PC</category>
    </item>
    <item>
      <title>Efficient way to store integer keys?</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/371769/371769/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Efficient way to store integer keys?&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 5:00 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hi, I have to store sequences of integers, which have a value associated to the sequence. What is the most efficient way to store the keys? (I care first about access speed, memory would be second).&lt;br /&gt;
&lt;br /&gt;
I've seen that tries offer an efficient way to store strings, but the tries I found use a char as the label for each arc/link. Is it better to use an int instead of converting the integers to chars?&lt;br /&gt;
e.g. given this sequence 100 200 3000&lt;br /&gt;
Using ints will make the trie more compact, because I don't have to break the ints into chars. However, there will be more arcs at each level and the searches could take longer, wouldn't it?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance!&lt;br /&gt;
 &lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 17:00:45 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>SYSTEMTIME??</title>
      <link>http://www.programmersheaven.com/mb/Win32API/371768/371768/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;SYSTEMTIME??&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 4:51 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;I'm using SYSTEMTIME to get current time, but it doesn't return the Hour.&lt;br /&gt;
&lt;br /&gt;
SYSTEMTIME st;&lt;br /&gt;
GetSystemTime(&amp;amp;st);&lt;br /&gt;
&lt;br /&gt;
DWORD hours = st.wHour;&lt;br /&gt;
DWORD minutes = st.wMinute;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My current time is 4:50pm, and it returns 0:50pm.  The hour doesn't show anything.  Anyone knows why?&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 16:51:11 -0700</pubDate>
      <category>C/C++ Win32 API</category>
    </item>
    <item>
      <title>A very useful Website</title>
      <link>http://www.programmersheaven.com/mb/Delphi/371767/371767/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;A very useful Website&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 4:31 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;The following is a link to a Website called Delphi Basics.&lt;br /&gt;
The info is very well presented and easy to follow.&lt;br /&gt;
&lt;br /&gt;
It is also downloadable as a Windows application if you prefer the info without having to websurf each time.&lt;br /&gt;
&lt;br /&gt;
I hope you find this useful.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.delphibasics.co.uk/index.html"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 16:31:33 -0700</pubDate>
      <category>Delphi beginners</category>
    </item>
    <item>
      <title>DBEdit problem with Floating Numbers</title>
      <link>http://www.programmersheaven.com/mb/Delphi/371766/371766/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;DBEdit problem with Floating Numbers&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 7 May 2008 at 4:26 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;I have a situation that uses 5 DBEdit boxes. 4 of these boxes are involved with Integer data, while the fifth requires decimal places and is therefore involved with double numbers.&lt;br /&gt;
&lt;br /&gt;
The calculations that occur need to be updated after each key press, which means that the data gets posted on every keypress from the DBEdit that has the current focus, after which the calculation functions correct the four fields.&lt;br /&gt;
&lt;br /&gt;
This works fine with the integer numbers. However, with the double numbers, there is a problem.&lt;br /&gt;
&lt;br /&gt;
If a solid number is typed, for example :- 4325&lt;br /&gt;
&lt;br /&gt;
Everything is fine, but as soon as the '.' is pressed to insert a decimal number, after posting, the decimal is removed since the display rounds off the number since there is zero to the right of the decimal point.&lt;br /&gt;
&lt;br /&gt;
In order to display the number as a fixed decimal number, the number needs to be formated as a string and then DBEdit.Text := FormatedString.&lt;br /&gt;
&lt;br /&gt;
So if I reformat the data after post and send it to the DBEdit text, once focus is again on DBEdit, the cursor is to the left of the data.&lt;br /&gt;
&lt;br /&gt;
Since posting occurs onkeypress, the whole situation does not work.&lt;br /&gt;
&lt;br /&gt;
I managed to get a perfectly workable solution with an Edit box, but there is one issue there that I can not resolve.&lt;br /&gt;
&lt;br /&gt;
The data in the DBEdit boxes is aligned to the left when focused and to the right when focus is elsewhere, while the Edit Box, the alignment is to the left while focused and remains to the left when focus is elsewhere.&lt;br /&gt;
&lt;br /&gt;
I could not find any way to set either the DBEdit box or the Edit Boxes alignment so that they all are viewed the same.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, if anyone can assist either in resolving the DBGrid decimal point issue, or alternatively assist with the alignment issue, I would be grateful.&lt;br /&gt;
&lt;br /&gt;
Thank you for reading this long saga :)&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 07 May 2008 16:26:02 -0700</pubDate>
      <category>Delphi beginners</category>
    </item>
  </channel>
</rss>