<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by cloudet</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Wed, 08 Jul 2026 04:05:57 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>VB adobc matching problem</title>
            <link>http://forum.lowyat.net/topic/668855</link>
            <description>Dear all,&lt;br /&gt;I wrote these codes to compare datafields in my access mdb with user input value, with some thresholds. &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Private Sub cmd_reg_Click&amp;#40;&amp;#41;&lt;br /&gt;Do Until Data1.Recordset.EOF&lt;br /&gt;Data1.Recordset.MoveFirst&lt;br /&gt;If &amp;#40;Data1.Recordset.Fields&amp;#40;&amp;#34;ratio_1&amp;#34;&amp;#41; - ratio1&amp;#41; ^ 2 &amp;#60; &amp;#40;0.03&amp;#41; ^ 2 And &amp;#40;Data1.Recordset.Fields&amp;#40;&amp;#34;ratio_2&amp;#34;&amp;#41; - ratio2&amp;#41; ^ 2 &amp;#60; &amp;#40;0.05&amp;#41; ^ 2 And &amp;#40;Data1.Recordset.Fields&amp;#40;&amp;#34;Ratio_4&amp;#34;&amp;#41; - ratio4&amp;#41; ^ 2 &amp;#60; &amp;#40;0.05&amp;#41; ^ 2 And &amp;#40;Data1.Recordset.Fields&amp;#40;&amp;#34;Ratio_5&amp;#34;&amp;#41; - ratio5&amp;#41; ^ 2 &amp;#60; &amp;#40;0.1&amp;#41; ^ 2 Then&lt;br /&gt;txt_name.Text = Data1.Recordset.Fields&amp;#40;&amp;#34;name&amp;#34;&amp;#41;&lt;br /&gt;txt_matric.Text = Data1.Recordset.Fields&amp;#40;&amp;#34;matric_no&amp;#34;&amp;#41;&lt;br /&gt;Else&lt;br /&gt;Data1.Recordset.MoveNext&lt;br /&gt;End If&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;When i ran my project, it hangs there, and whole VB program was not responding. I think there&amp;#39;s something wrong with the loops. &lt;br /&gt;Can someone see and point out my mistakes? Till now i can&amp;#39;t figure out why, and my head get dizzy liao.  &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;Note tat ratio_1,...ratio_5 are data fields in my mdb; while ratio1,...ratio5 are input from user.&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&amp;#40;Data1.Recordset.Fields&amp;#40;&amp;#34;ratio_1&amp;#34;&amp;#41; - ratio1&amp;#41; ^ 2 &amp;#60; &amp;#40;0.03&amp;#41; ^ 2&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt; &lt;br /&gt;Codes above are my thresholding process onto user input.&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt; &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Tue, 08 Apr 2008 00:20:38 +0800</pubDate>
        </item>
        <item>
            <title>delete string in JtextArea</title>
            <link>http://forum.lowyat.net/topic/663978</link>
            <description>Dear all,&lt;br /&gt;I&amp;#39;m doing a simulation to demonstrate Linda, and now facing some problems.&lt;br /&gt;This is the printscreen of my simulation&lt;br /&gt;[attachmentid=431312]&lt;br /&gt;&lt;br /&gt;when &amp;quot;connect to server&amp;quot; button is pressed, both agent 1 and agent 2 can input operations into uts (textarea).&lt;br /&gt;out means output a value into uts;&lt;br /&gt;rd means search a value in uts;&lt;br /&gt;and in means search a value in uts, and when it&amp;#39;s found, the value will be deleted from uts.&lt;br /&gt;note tat for simplicity of simulation, value here means string.&lt;br /&gt;&lt;br /&gt;Now the problem for me is how to delete the string from uts txtarea when a string is found.&lt;br /&gt;[attachmentid=431313]&lt;br /&gt;I can only output a msgbox when a string is found, and can&amp;#39;t delete it.&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s part of my codes:&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('2cb8d92a009ff0405551b029cf7e8290')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;2cb8d92a009ff0405551b029cf7e8290&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;public void actionPerformed&amp;#40;ActionEvent e&amp;#41;&lt;br /&gt;	{&lt;br /&gt; &amp;nbsp;if&amp;#40;e.getSource&amp;#40;&amp;#41; == btnServer&amp;#41;&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;&amp;#34;&amp;#092;nbtnServer_actionPerformed&amp;#40;ActionEvent e&amp;#41; called.&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;	txtSrv.setText&amp;#40;&amp;#34;Connected to server...&amp;#092;n&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;else if&amp;#40;e.getSource&amp;#40;&amp;#41; == btnuts1&amp;#41;//out1&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;&amp;#34;&amp;#092;nbtnuts1_actionPerformed&amp;#40;ActionEvent e&amp;#41; called.&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	String out1 = new String&amp;#40;txtOut1.getText&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp;	txtOut1.setText&amp;#40;&amp;#34;&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;out1&amp;#41;;&lt;br /&gt; &amp;nbsp;	txtSrv.append&amp;#40;out1 + &amp;#34;&amp;#092;n&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; else if&amp;#40;e.getSource&amp;#40;&amp;#41; == btnuts2&amp;#41;//in1&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;&amp;#34;&amp;#092;nbtnuts2_actionPerformed&amp;#40;ActionEvent e&amp;#41; called.&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	//search&lt;br /&gt; &amp;nbsp;	String in1 = new String&amp;#40;txtIn1.getText&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp;	txtIn1.setText&amp;#40;&amp;#34;&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;in1&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	//search&lt;br /&gt; &amp;nbsp;	String document = txtSrv.getText&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp;	String &amp;#91;&amp;#93; aWord = document.split&amp;#40;in1&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;//store the number of elements in array for counting&lt;br /&gt; &amp;nbsp;	int count = &amp;#40;aWord.length&amp;#41;-1;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	if&amp;#40;count==1&amp;#41;&lt;br /&gt; &amp;nbsp;	{&lt;br /&gt; &amp;nbsp; &amp;nbsp;	JOptionPane.showMessageDialog&amp;#40;null,&amp;#34;&amp;#092;&amp;#34;&amp;#34;+in1+&amp;#34;&amp;#092;&amp;#34; was found.&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;	//if found, delete from JTextArea&lt;br /&gt; &amp;nbsp;	}&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;JOptionPane.showMessageDialog&amp;#40;null,&amp;#34;&amp;#092;&amp;#34;&amp;#34;+in1+&amp;#34;&amp;#092;&amp;#34; was not found.&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;	}&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp;else if&amp;#40;e.getSource&amp;#40;&amp;#41; == btnuts3&amp;#41;//rd1&lt;br /&gt; &amp;nbsp;{&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;&amp;#34;&amp;#092;nbtnuts3_actionPerformed&amp;#40;ActionEvent e&amp;#41; called.&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	String rd1 = new String&amp;#40;txtRd1.getText&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt; &amp;nbsp;	txtRd1.setText&amp;#40;&amp;#34;&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;	System.out.println&amp;#40;rd1&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	//search&lt;br /&gt; &amp;nbsp;	String document = txtSrv.getText&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp;	String &amp;#91;&amp;#93; aWord = document.split&amp;#40;rd1&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;//store the number of elements in array for counting&lt;br /&gt; &amp;nbsp;	int count = &amp;#40;aWord.length&amp;#41;-1;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;//proper grammer use in using times or time&lt;br /&gt; &amp;nbsp;	if&amp;#40;count==1&amp;#41;&lt;br /&gt; &amp;nbsp;	{&lt;br /&gt; &amp;nbsp; &amp;nbsp;	JOptionPane.showMessageDialog&amp;#40;null,&amp;#34;&amp;#092;&amp;#34;&amp;#34;+rd1+&amp;#34;&amp;#092;&amp;#34; was found.&amp;#34;&amp;#41;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;	//if found, delete from JTextArea&lt;br /&gt; &amp;nbsp;	}&lt;br /&gt;&lt;br /&gt; &amp;nbsp;	else&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;JOptionPane.showMessageDialog&amp;#40;null,&amp;#34;&amp;#092;&amp;#34;&amp;#34;+rd1+&amp;#34;&amp;#092;&amp;#34; was not found.&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;	}&lt;br /&gt; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;Anyone can help me?&lt;br /&gt;Thanks in advance.&lt;br /&gt; &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;&lt;br /&gt;&lt;br /&gt;[addedon]April 1, 2008, 4:35 pm[/addedon]No one willing to help?&lt;br /&gt; &lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt;&lt;br /&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Tue, 01 Apr 2008 10:45:38 +0800</pubDate>
        </item>
        <item>
            <title>Storing pixel locations</title>
            <link>http://forum.lowyat.net/topic/648902</link>
            <description>Dear all,&lt;br /&gt;Given a picture, i need to store the pixel locations when user clicks.&lt;br /&gt;I can now only store one pixel value only. I need to get 5 pair (x and y) of pixel locations.&lt;br /&gt;The codes are as following:&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('eeded603965530e5e47434d259f58506')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;eeded603965530e5e47434d259f58506&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;Private Sub Picture2_MouseDown&amp;#40;Button As Integer, Shift As Integer, X As Single, y As Single&amp;#41;&lt;br /&gt;Dim x1, y1 As Integer &lt;br /&gt;Dim x2, y2 As Integer &lt;br /&gt;Dim x3, y3 As Integer &lt;br /&gt;Dim x4, y4 As Integer &lt;br /&gt;Dim dist1, dist2, dist3, dist4, dist5, dist6 As Double&lt;br /&gt;&lt;br /&gt;Dim HC As integer&lt;br /&gt;HC = 0&lt;br /&gt;&lt;br /&gt;If HC = 0 Then&lt;br /&gt; &amp;nbsp; &amp;nbsp;x1 = Int&amp;#40;X&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;y1 = Int&amp;#40;y&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;HC = 1&lt;br /&gt; &amp;nbsp; &amp;nbsp;End If&lt;br /&gt;If HC = 1 Then&lt;br /&gt; &amp;nbsp; &amp;nbsp;x2 = Int&amp;#40;X&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;y2 = Int&amp;#40;y&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;HC = 2&lt;br /&gt; &amp;nbsp; &amp;nbsp;End If&lt;br /&gt;If HC = 2 Then&lt;br /&gt; &amp;nbsp; &amp;nbsp;x3 = Int&amp;#40;X&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;y3 = Int&amp;#40;y&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;HC = 3&lt;br /&gt; &amp;nbsp; &amp;nbsp;End If&lt;br /&gt;If HC = 3 Then&lt;br /&gt; &amp;nbsp; &amp;nbsp;x4 = Int&amp;#40;X&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;y4 = Int&amp;#40;y&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;HC = 0&lt;br /&gt;End If&lt;br /&gt; &amp;nbsp; &amp;nbsp;&lt;br /&gt;dist1 = &amp;#40;&amp;#40;x1 - x2&amp;#41; ^ &amp;#40;2&amp;#41; + &amp;#40;y1 - y2&amp;#41; ^ &amp;#40;2&amp;#41;&amp;#41; ^ &amp;#40;1 / 2&amp;#41;&lt;br /&gt;dist2 = &amp;#40;&amp;#40;x2 - x3&amp;#41; ^ &amp;#40;2&amp;#41; + &amp;#40;y2 - y3&amp;#41; ^ &amp;#40;2&amp;#41;&amp;#41; ^ &amp;#40;1 / 2&amp;#41;&lt;br /&gt;dist3 = &amp;#40;&amp;#40;x2 - x3&amp;#41; ^ &amp;#40;2&amp;#41; + &amp;#40;y2 - y3&amp;#41; ^ &amp;#40;2&amp;#41;&amp;#41; ^ &amp;#40;1 / 2&amp;#41;&lt;br /&gt;&lt;br /&gt;RichTextBox1.Text = x1 &amp;amp; &amp;#34; &amp;#34; &amp;amp; x2 &amp;amp; &amp;#34; &amp;#34; &amp;amp; x3 &amp;amp; &amp;#34; &amp;#34; &amp;amp; x4 &amp;amp; &amp;#34; &amp;#34; &amp;amp; x5&lt;br /&gt;RichTextBox2.Text = y1 &amp;amp; &amp;#34; &amp;#34; &amp;amp; y2 &amp;amp; &amp;#34; &amp;#34; &amp;amp; y3 &amp;amp; &amp;#34; &amp;#34; &amp;amp; y4 &amp;amp; &amp;#34; &amp;#34; &amp;amp; y5&lt;br /&gt;RichTextBox3.Text = dist1 &amp;amp; &amp;#34; &amp;#34; &amp;amp; dist2&lt;br /&gt;&lt;br /&gt;End Sub&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;As u can see above, i try to out put x1, y1,...,x4, and y4 in richtextbox1 and richtexbox2. But every time i get is same value.&lt;br /&gt;[attachmentid=414410]&lt;br /&gt;And richtextbox3 just gives me &amp;quot;0&amp;quot;. &lt;br /&gt;Can anyone point out wat&amp;#39;s wrong with the code above?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Mon, 10 Mar 2008 16:50:46 +0800</pubDate>
        </item>
        <item>
            <title>Reading multiple text files</title>
            <link>http://forum.lowyat.net/topic/645518</link>
            <description>Dear all guru,&lt;br /&gt;I&amp;#39;m newbie in Visual Basic 6.0&lt;br /&gt;&lt;br /&gt;Supposed that i have files named face1.txt, face2.txt, face3.txt,..., face7.txt.&lt;br /&gt;Each of the txt file contents are the same:&lt;br /&gt;line 1 is name (string)&lt;br /&gt;line 2 is double&lt;br /&gt;line 3 is double &lt;br /&gt;line 4 is double &lt;br /&gt;line 5 is double&lt;br /&gt;line 6 is double&lt;br /&gt;&lt;br /&gt;Now how can i write once i click a button, contents of all the files will be read, and loaded into different arrays:&lt;br /&gt;line 1 loaded into array string&lt;br /&gt;line 2 loaded into array of double&lt;br /&gt;line 3 loaded into array of double&lt;br /&gt;line 4 loaded into array of double&lt;br /&gt;line 5 loaded into array of double&lt;br /&gt;line 6 loaded into array of double&lt;br /&gt;&lt;br /&gt;And I can access those arrays for searching later in my routine?  &lt;!--emo&amp;:hmm:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/hmm.gif' border='0' style='vertical-align:middle' alt='hmm.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;[addedon]March 6, 2008, 2:52 pm[/addedon]No one helps?&lt;br /&gt;&lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Wed, 05 Mar 2008 15:27:32 +0800</pubDate>
        </item>
        <item>
            <title>Calling exe, opening txt in java</title>
            <link>http://forum.lowyat.net/topic/614568</link>
            <description>I&amp;#39;m trying to create GUI using java. &lt;br /&gt;I tried following codes in action listener of my button, but it just didn&amp;#39;t work&lt;br /&gt;&lt;br /&gt;&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('7b6c53785faa0249542b340e268b4c51')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;7b6c53785faa0249542b340e268b4c51&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;btBut8.addActionListener&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	new ActionListener&amp;#40;&amp;#41;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void actionPerformed&amp;#40;ActionEvent e&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{try&lt;br /&gt; &amp;nbsp; &amp;nbsp;	{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Runtime rt = Runtime.getRuntime&amp;#40;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Process p = rt.exec&amp;#40;&amp;#34;C&amp;#58;/programfolder/program.exe&amp;#34;&amp;#41;;p.destroy&amp;#40;&amp;#41;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	catch&amp;#40;Exception ee&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println&amp;#40;ee&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;	}&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;When the filename and its directory are correct, (&amp;quot;C:/programfolder/program.exe&amp;quot;) nothing happened when i press the corresponding button.&lt;br /&gt;However, during debugging, i purposely state the incorrect filename, eg: (&amp;quot;C:/programfolder/progrm.exe&amp;quot;), then there is an error caught: &lt;br /&gt;&lt;br /&gt;&lt;!--QuoteBegin--&gt;&lt;div class='quotetop'&gt;QUOTE&lt;/div&gt;&lt;div class='quotemain'&gt;&lt;!--QuoteEBegin--&gt;java.io.IOException: Cannot run program &amp;quot;C:/programfolder/progrm.exe&amp;quot;: CreateProcess error=2, The system cannot find the file specified&lt;!--QuoteEnd--&gt;&lt;/div&gt;&lt;!--QuoteEEnd--&gt;&lt;br /&gt;&lt;br /&gt;Anyone knows why?&lt;br /&gt;Oh ya, the exe is written in C++.&lt;br /&gt;Thanks in advance.&lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Fri, 18 Jan 2008 15:51:12 +0800</pubDate>
        </item>
        <item>
            <title>Steinberg Cubase Studio</title>
            <link>http://forum.lowyat.net/topic/613960</link>
            <description>Hi all,&lt;br /&gt;I need to buy Steinberg Cubase Studio for my Power G4.&lt;br /&gt;Which shop in Lowyat can i get it? Or where can i get it online?&lt;br /&gt;Thanks.</description>
            <author>cloudet</author>
            <category>Apple Byte</category>
            <pubDate>Thu, 17 Jan 2008 17:01:16 +0800</pubDate>
        </item>
        <item>
            <title>[WTA]Steinberg Cubase Studio 4</title>
            <link>http://forum.lowyat.net/topic/613007</link>
            <description>Hi all,&lt;br /&gt;I need to buy Steinberg Cubase Studio for my Power G4. &lt;br /&gt;Which shop in Lowyat can i get it?&lt;br /&gt;Thanks.&lt;br /&gt; &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src='http://www.jrrshop.com/images/images_big/steinbergcubasestudio4.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[addedon]January 17, 2008, 12:51 pm[/addedon]No one knows?&lt;br /&gt;&lt;!--emo&amp;:(--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Price &amp;amp; Dealers Guide</category>
            <pubDate>Wed, 16 Jan 2008 10:51:50 +0800</pubDate>
        </item>
        <item>
            <title>Virus or window&amp;#39;s problem?</title>
            <link>http://forum.lowyat.net/topic/612007</link>
            <description>Hi,&lt;br /&gt;My PC is now facing the strangest problem i have ever encountered. I&amp;#39;m now using my gf&amp;#39;s pc to post this thread.&lt;br /&gt;Here&amp;#39;s the story goes:&lt;br /&gt;&lt;br /&gt;I downloaded some stupid china-made program which claim to be all-in-one pdf convertor (word to pdf, ppt to pdf, html to pdf, jpeg to pdf, blah..blah..blah). Nothing weird until i finished installing the program. The 1st thing i noticed is tat there&amp;#39;s no highlight wherever i mouse over my program list. For a normal window, u can pause for a moment to let &amp;quot;Accessories&amp;quot; to pop up its submenu, but mine doesn&amp;#39;t. &lt;br /&gt;Then i felt a bit laggy for my pc. So i called up the task manager. I saw no weird process created by me as a user. &lt;br /&gt;&lt;br /&gt;The next thing i did was endtask my explorer.exe, I suspected tat mayb it needs a refresh or something. But, still, thing didn&amp;#39;t change after a new explorer.exe was called up. Then i tried to restart my window. This is 1st weird thing i noticed: &amp;quot;you do not have permission to shut down and restart this computer&amp;quot;. What? Feeling strange and anxious, i pressed the restart button on the pc casing to restart.&lt;br /&gt;&lt;br /&gt;After i restarted my pc, more strange thing happened. I could not run my regedit, msconfig, and services.msc. It said there: &amp;quot;windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.&amp;quot; But i can open my task manager, and processes created by user (me) left only 2- which are explorer.exe and task manager itself&amp;#33; Furthermore, i noticed tat my icons on the taskbar are all gone&amp;#33; Left only connected-network icon. I should have more icons there such as avast, sound control, window live messenger... But they are all gone&amp;#33;&lt;br /&gt;&lt;br /&gt;And every single exe i tried to open was failed&amp;#33; Same error message box appeared: &amp;quot;windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.&amp;quot;  This happenned to my mp3 files and video files.&lt;br /&gt;&lt;br /&gt;I did go to safe mode, logged in as admin, everything is ok. I deleted the chinese software from the safe mode. And all the regedit, msconfig, and files can be opened.&lt;br /&gt;&lt;br /&gt;OK, since there was not extra process running there, i decided to repair my window. I didn&amp;#39;t use repair console, but just repair the normal way. After repair, problem still there. And getting worse, my vga driver and sound driver were gone&amp;#33; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t printscreen or run any diagnose program now. Here&amp;#39;s the list of processes running according to task manager:&lt;br /&gt;&lt;br /&gt;taskmgr.exe  user&lt;br /&gt;explorer.exe  user&lt;br /&gt;svchost.exe   LOCAL SERVICE&lt;br /&gt;alg.exe          LOCAL SERVICE&lt;br /&gt;svchost.exe   NETWORK SERVICE&lt;br /&gt;svchost.exe   NETWORK SERVICE&lt;br /&gt;system idle process   SYSTEM&lt;br /&gt;system                     SYSTEM&lt;br /&gt;spoolsv.exe              SYSTEM&lt;br /&gt;smss.exe                  SYSTEM&lt;br /&gt;csrss.exe                  SYSTEM&lt;br /&gt;winlogon.exe             SYSTEM&lt;br /&gt;services.exe             SYSTEM&lt;br /&gt;lsass.exe                  SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;cmdagent.exe           SYSTEM&lt;br /&gt;CTSVCCDA.EXE        SYSTEM&lt;br /&gt;MsPMSPsv.exe          SYSTEM&lt;br /&gt;aswUpdSv.exe          SYSTEM&lt;br /&gt;PnkBstrA.exe            SYSTEM&lt;br /&gt;ashServ.exe             SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;ashMailSv.exe          SYSTEM&lt;br /&gt;ashWebSv.exe          SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure is it the virus problem or window problem. Reformat is my last option but i strongly do not want to reformat. &lt;br /&gt;Please note tat i&amp;#39;ve disabled system restore, and i do not have any ghost CD.&lt;br /&gt;&lt;br /&gt;Please help me if u have this problem b4.&lt;br /&gt;Thanks a million.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>cloudet</author>
            <category>Security &amp;amp; Privacy</category>
            <pubDate>Mon, 14 Jan 2008 23:43:40 +0800</pubDate>
        </item>
        <item>
            <title>Win XP extremely weird problem</title>
            <link>http://forum.lowyat.net/topic/612003</link>
            <description>Hi,&lt;br /&gt;My PC is now facing the strangest problem i have ever encountered. I&amp;#39;m now using my gf&amp;#39;s pc to post this thread.&lt;br /&gt;Here&amp;#39;s the story goes:&lt;br /&gt;&lt;br /&gt;I downloaded some stupid china-made program which claim to be all-in-one pdf convertor (word to pdf, ppt to pdf, html to pdf, jpeg to pdf, blah..blah..blah). Nothing weird until i finished installing the program. The 1st thing i noticed is tat there&amp;#39;s no highlight wherever i mouse over my program list. For a normal window, u can pause for a moment to let &amp;quot;Accessories&amp;quot; to pop up its submenu, but mine doesn&amp;#39;t. &lt;br /&gt;Then i felt a bit laggy for my pc. So i called up the task manager. I saw no weird process created by me as a user. &lt;br /&gt;&lt;br /&gt;The next thing i did was endtask my explorer.exe, I suspected tat mayb it needs a refresh or something. But, still, thing didn&amp;#39;t change after a new explorer.exe was called up. Then i tried to restart my window. This is 1st weird thing i noticed: &amp;quot;you do not have permission to shut down and restart this computer&amp;quot;. What? Feeling strange and anxious, i pressed the restart button on the pc casing to restart.&lt;br /&gt;&lt;br /&gt;After i restarted my pc, more strange thing happened. I could not run my regedit, msconfig, and services.msc. It said there: &amp;quot;windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.&amp;quot; But i can open my task manager, and processes created by user (me) left only 2- which are explorer.exe and task manager itself&amp;#33; Furthermore, i noticed tat my icons on the taskbar are all gone&amp;#33; Left only connected-network icon. I should have more icons there such as avast, sound control, window live messenger... But they are all gone&amp;#33;&lt;br /&gt;&lt;br /&gt;And every single exe i tried to open was failed&amp;#33; Same error message box appeared: &amp;quot;windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.&amp;quot;  This happenned to my mp3 files and video files.&lt;br /&gt;&lt;br /&gt;I did go to safe mode, logged in as admin, everything is ok. I deleted the chinese software from the safe mode. And all the regedit, msconfig, and files can be opened.&lt;br /&gt;&lt;br /&gt;OK, since there was not extra process running there, i decided to repair my window. I didn&amp;#39;t use repair console, but just repair the normal way. After repair, problem still there. And getting worse, my vga driver and sound driver were gone&amp;#33; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t printscreen or run any diagnose program now. Here&amp;#39;s the list of processes running according to task manager:&lt;br /&gt;&lt;br /&gt;taskmgr.exe  user&lt;br /&gt;explorer.exe  user&lt;br /&gt;svchost.exe   LOCAL SERVICE&lt;br /&gt;alg.exe          LOCAL SERVICE&lt;br /&gt;svchost.exe   NETWORK SERVICE&lt;br /&gt;svchost.exe   NETWORK SERVICE&lt;br /&gt;system idle process   SYSTEM&lt;br /&gt;system                     SYSTEM&lt;br /&gt;spoolsv.exe              SYSTEM&lt;br /&gt;smss.exe                  SYSTEM&lt;br /&gt;csrss.exe                  SYSTEM&lt;br /&gt;winlogon.exe             SYSTEM&lt;br /&gt;services.exe             SYSTEM&lt;br /&gt;lsass.exe                  SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;cmdagent.exe           SYSTEM&lt;br /&gt;CTSVCCDA.EXE        SYSTEM&lt;br /&gt;MsPMSPsv.exe          SYSTEM&lt;br /&gt;aswUpdSv.exe          SYSTEM&lt;br /&gt;PnkBstrA.exe            SYSTEM&lt;br /&gt;ashServ.exe             SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;ashMailSv.exe          SYSTEM&lt;br /&gt;ashWebSv.exe          SYSTEM&lt;br /&gt;svchost.exe              SYSTEM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure is it the virus problem or window problem. Reformat is my last option but i strongly do not want to reformat. &lt;br /&gt;Please note tat i&amp;#39;ve disabled system restore, and i do not have any ghost CD.&lt;br /&gt;&lt;br /&gt;Please help me if u have this problem b4.&lt;br /&gt;Thanks a million.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>cloudet</author>
            <category>Technical Support</category>
            <pubDate>Mon, 14 Jan 2008 23:42:28 +0800</pubDate>
        </item>
        <item>
            <title>reading multiple files in loop, please come in</title>
            <link>http://forum.lowyat.net/topic/538188</link>
            <description>Dear all gurus,&lt;br /&gt;Given 30 files, with same format (2 columns, column1 is string and column2 is int. contains thousands of lines) and uniform file name, eg: file1.txt, file2.txt,...,file30.txt,&lt;br /&gt;How can i read it in a loop, and then load them into my 2D array (eg: string words [filesize][maxline], and int numbers [filesize][maxline])?&lt;br /&gt;&lt;br /&gt;Tried to use strcat and append but cant work coz the integer i:&lt;br /&gt;       &lt;br /&gt;   &lt;br /&gt;        ifstream infile;&lt;br /&gt;        int indexx;&lt;br /&gt;        string st1 = &amp;quot;file&amp;quot;;&lt;br /&gt;	string st2 = &amp;quot;.txt&amp;quot;;&lt;br /&gt;	for (int i=0; i&amp;lt;filesize; i++)&lt;br /&gt;	{&lt;br /&gt;		infile.open(strcat(strcat(st1,(strcat((string)i,st2))),ios::in)&lt;br /&gt;	while (&amp;#33;infile.eof())&lt;br /&gt;	{&lt;br /&gt;		infile&amp;gt;&amp;gt;words[i][indexx]&amp;gt;&amp;gt;numbers[i][indexx];&lt;br /&gt;		indexx++;&lt;br /&gt;	}&lt;br /&gt;	infile.close();&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;That are parts of my data mining project. Every help would be much appreciated. Thanks.&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Codemasters</category>
            <pubDate>Thu, 18 Oct 2007 16:20:32 +0800</pubDate>
        </item>
        <item>
            <title>Partion in Vista</title>
            <link>http://forum.lowyat.net/topic/527468</link>
            <description>Dear all,&lt;br /&gt;Installed partition magic (forgot wat version) into my vista but got compatibility issues, googled and found out that partition magic can&amp;#39;t be used on vista.&lt;br /&gt;So any other softwares that u guys have been used or tried that can be used on vista?&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Software</category>
            <pubDate>Thu, 27 Sep 2007 14:36:43 +0800</pubDate>
        </item>
        <item>
            <title>Shops in LYP offer case modding</title>
            <link>http://forum.lowyat.net/topic/500187</link>
            <description>Hi dear all,&lt;br /&gt;Wanna ask is there any shop in LYP that offer case modding? Eg: transparent side window modding.&lt;br /&gt;If yes, how is the price? &lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt; &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>cloudet</author>
            <category>Price &amp;amp; Dealers Guide</category>
            <pubDate>Mon, 06 Aug 2007 21:03:19 +0800</pubDate>
        </item>
        <item>
            <title>[WTA] best price for Gemini II</title>
            <link>http://forum.lowyat.net/topic/458455</link>
            <description>Guys, want to ask: &lt;br /&gt;You bought Cooler Master Gemini II before?&lt;br /&gt;Which shop in LYP is offering the lowest price?&lt;br /&gt;Planning to get one..&lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&amp;#33;</description>
            <author>cloudet</author>
            <category>Price &amp;amp; Dealers Guide</category>
            <pubDate>Thu, 17 May 2007 17:05:51 +0800</pubDate>
        </item>
    </channel>
</rss>
