<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - Software Development</title>
		<link>http://www.daniweb.com/forums</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Tue, 13 May 2008 22:34:46 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/forums/myimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - Software Development</title>
			<link>http://www.daniweb.com/forums</link>
		</image>
		<item>
			<title>Find value from Cell in dataGridView</title>
			<link>http://www.daniweb.com/forums/thread124093.html</link>
			<pubDate>Tue, 13 May 2008 22:21:32 GMT</pubDate>
			<description><![CDATA[I am trying to get a value from a specific cell in a dataGridView.
I know how to choose a Row / Column but not at the same time.
I have tried to get the value from row 3 in column 2 like below. But I cant find a Column member to Rows like this.

 <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>I am trying to get a value from a specific cell in a dataGridView.<br />
I know how to choose a Row / Column but not at the same time.<br />
I have tried to get the value from row 3 in column 2 like below. But I cant find a Column member to Rows like this.<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">dataGridView1-&gt;Rows[3]-&gt;Columns[2] ?</code> </div>
<br />
I tried something like this also but here I will get an Object^. I will need to have a String^ value.<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">Object^ Sel50 = dataGridView1[3, 2];</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Jennifer84</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124093.html</guid>
		</item>
		<item>
			<title>What do I need to do for this ?</title>
			<link>http://www.daniweb.com/forums/thread124091.html</link>
			<pubDate>Tue, 13 May 2008 22:16:38 GMT</pubDate>
			<description>*Problem 
Math*

Input File: MathIn.txt
Output File: MathOut.txt
Project File: Math 


Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on 
(e.g., 2 + 3). On Mars, math strings are...</description>
			<content:encoded><![CDATA[<div><b>Problem <br />
Math</b><br />
<br />
Input File: MathIn.txt<br />
Output File: MathOut.txt<br />
Project File: Math <br />
<br />
<br />
Mathematicians on the planet Earth, write math expressions using in-fixed notation. In this notation, math operators are written between the operands they operate on <br />
(e.g., 2 + 3). On Mars, math strings are written in post-fixed form. In this notation, math operators are written after the two operands they operate on (e.g., 2 3 +). <br />
<br />
The nice thing about post-fixed notation is that we don’t need rules of precedence to decide what math operator should be evaluated first. For instance, in the in-fixed math string 6 + 4  / 2, the rules of precedence dictate that we should divide before we add. Without these rules, there is an ambiguity in the expression. The same math expression written in post fixed notation is 4 2 / 6 +. <br />
<br />
Fortunately programmers who write translators are from Mars, and they translate math expressions from in-fixed to post-fixed notation before evaluating them. Thus, we need not worry about the rules of precedence at run time. <br />
<br />
To evaluate a post-fixed string, we start at the left most character and examine characters until we find an operator. Once an operator is found, it is applied to the two operands immediately before it, and then the operand and the two operators in the post-fixed string are replaced with the result. Then we continue from this point, repeating the procedure. When we reach the end of the string, there will only be one item left in the string, the result. Thus the in-fixed string 5 6 2 + 4 / - is equivalent to the post-fixed string<br />
5 - (6 + 2) / 4, both of which evaluate to 3.<br />
<br />
Inputs<br />
The input file will contain math strings in post-fixed notation, one per line. Operands will consist of one digit. Operators and operands will be separated by one space. There will be no more than 80 characters in the math expressions.<br />
<br />
Outputs <br />
There will be one line of output for each math expression. The line will contain the value of the math expression.<br />
<br />
Sample input<br />
1 5 9 + 8 – +<br />
5 6 2 + 4 / -<br />
4 7 9 8 * + 2 + -<br />
<br />
Sample Output<br />
7<br />
3<br />
77</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science and Software Design</category>
			<dc:creator>alannabrittany</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124091.html</guid>
		</item>
		<item>
			<title>netbeans6.0</title>
			<link>http://www.daniweb.com/forums/thread124090.html</link>
			<pubDate>Tue, 13 May 2008 22:08:42 GMT</pubDate>
			<description><![CDATA[Do you have some understanding of the netbeans6.0 concerning binding and queries?

 I have a jdesktop program from a tutorial using the netbeans ide.

it automaticlally sets the query property to 
SELECT c FROM Content c(which is somewhat foreign to me)
however;

I'd like to have another example of...]]></description>
			<content:encoded><![CDATA[<div>Do you have some understanding of the netbeans6.0 concerning binding and queries?<br />
<br />
 I have a jdesktop program from a tutorial using the netbeans ide.<br />
<br />
it automaticlally sets the query property to <br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">SELECT c FROM Content c</code> </div>
(which is somewhat foreign to me)<br />
however;<br />
<br />
I'd like to have another example of a query that for sure is written sound (maybe simply LIMIT the results) so I can move it around in the program until I figure out how it works.<br />
<br />
I can't seem to find any info on the  createQuery();<br />
<br />
and apply it to change what what populates the table<br />
<br />
the original query is<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">query = entityManager.createQuery(&quot;SELECT c FROM Content c&quot;&quot;);</code> </div>
<br />
ultimately i'd like to use something like this;<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"> query = entityManager.createQuery(&quot;SELECT c FROM content c WHERE c.artist LIKE \&quot;%&quot; + like + &quot;%\&quot;&quot;);</code> </div>
<br />
do you happen to have any information on the procedure for changing and implementing a query?<br />
Thanks<br />
-Steve<br />
p.s <div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">String like = searchJTextField1.getText();</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124090.html</guid>
		</item>
		<item>
			<title>How to tell number of pointers in a pointer</title>
			<link>http://www.daniweb.com/forums/thread124089.html</link>
			<pubDate>Tue, 13 May 2008 22:02:37 GMT</pubDate>
			<description><![CDATA[I have been teaching myself c++ for a little while now and came across something I couldn't figure out. I am trying to figure out how many char*s there are in a char**. In the current program I am using *argv[], so I can access it through argc, but is there a way to find that number without a...]]></description>
			<content:encoded><![CDATA[<div>I have been teaching myself c++ for a little while now and came across something I couldn't figure out. I am trying to figure out how many char*s there are in a char**. In the current program I am using *argv[], so I can access it through argc, but is there a way to find that number without a second variable in case I do not have access to something like argc in another variable? Second, can you overload the assignment operator for the string class? I want to overload = for a string* so that it can be assigned a char**. Thank you for any help you may offer. <br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="co2">#include &lt;string&gt;</span></div></li><li class="li1"><div class="de1"><span class="co2">#include &lt;stdlib.h&gt;</span></div></li><li class="li1"><div class="de1">using namespace std;</div></li><li class="li1"><div class="de1"><span class="coMULTI">/* operator here??</span></div></li><li class="li2"><div class="de2"><span class="coMULTI">string string::operator= (char*);*/</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1"><span class="kw4">int</span> main<span class="br0">&#40;</span><span class="kw4">int</span> argc,<span class="kw4">char</span> *argv<span class="br0">&#91;</span><span class="br0">&#93;</span><span class="br0">&#41;</span></div></li><li class="li2"><div class="de2"><span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw4">string</span> * test1 = new <span class="kw4">string</span><span class="br0">&#91;</span>argc<span class="br0">&#93;</span>;</div></li><li class="li1"><div class="de1"><span class="co1">//replace next 2 lines with single statement using = operator</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw4">int</span> a = <span class="nu0">0</span>; a &lt; argc; a++<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; test1<span class="br0">&#91;</span>a<span class="br0">&#93;</span> = argv<span class="br0">&#91;</span>a<span class="br0">&#93;</span>;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; <span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw4">int</span> b = <span class="nu0">0</span>; b &lt; argc; b++<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">printf</span><span class="br0">&#40;</span><span class="st0">&quot;argv[%d] : %s<span class="es0">\n</span>string[%d] : %s<span class="es0">\n</span>&quot;</span>,b,argv<span class="br0">&#91;</span>b<span class="br0">&#93;</span>,b,test1<span class="br0">&#91;</span>b<span class="br0">&#93;</span>.<span class="me1">c_str</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>c++noobie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124089.html</guid>
		</item>
		<item>
			<title>new datagridview column</title>
			<link>http://www.daniweb.com/forums/thread124087.html</link>
			<pubDate>Tue, 13 May 2008 21:33:31 GMT</pubDate>
			<description><![CDATA[i m working on a windows application on vb .net 2005. i have a datagridview column "Dates" with dates in it. I want to add dynamically on form load a new datagridview column "Days passed" and in the cells of this column i want to display how many days passed from the date of "date" column until the...]]></description>
			<content:encoded><![CDATA[<div>i m working on a windows application on vb .net 2005. i have a datagridview column &quot;Dates&quot; with dates in it. I want to add dynamically on form load a new datagridview column &quot;Days passed&quot; and in the cells of this column i want to display how many days passed from the date of &quot;date&quot; column until the current day. any help please?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>pikkas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124087.html</guid>
		</item>
		<item>
			<title>Store System.Drawing.Color in datatable</title>
			<link>http://www.daniweb.com/forums/thread124084.html</link>
			<pubDate>Tue, 13 May 2008 21:19:37 GMT</pubDate>
			<description><![CDATA[Hello

I want to store System.Drawing.Colors in a datatable

But for that I need to know the datatype to use

I've seen several qustion about this bu no answer 

Any Idea how to do it ?]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I want to store System.Drawing.Colors in a datatable<br />
<br />
But for that I need to know the datatype to use<br />
<br />
I've seen several qustion about this bu no answer <br />
<br />
Any Idea how to do it ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>olibara</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124084.html</guid>
		</item>
		<item>
			<title>System.NotSupportedException</title>
			<link>http://www.daniweb.com/forums/thread124083.html</link>
			<pubDate>Tue, 13 May 2008 21:04:47 GMT</pubDate>
			<description><![CDATA[Hi guys,

I have a code that sends sms through clickatell gateway, but now I am getting the NotSupportedException with the message "this stream does not support seek operations". Anyone who has used clickatell gateway for sms successfully please help me.

Please help me eliminate this exception and...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I have a code that sends sms through clickatell gateway, but now I am getting the NotSupportedException with the message &quot;this stream does not support seek operations&quot;. Anyone who has used clickatell gateway for sms successfully please help me.<br />
<br />
Please help me eliminate this exception and get my code working.<br />
here is my code:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">client.Headers.Add(&quot;user-agent&quot;, &quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR&quot; +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1.0.3705;)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client.QueryString.Add(&quot;user&quot;, &quot;ditshego&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client.QueryString.Add(&quot;password&quot;, &quot;khanyala1&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client.QueryString.Add(&quot;api_id&quot;, &quot;3092895&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client.QueryString.Add(&quot;to&quot;, sms);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; client.QueryString.Add(&quot;text&quot;, &quot;A new tender is uploaded, visit our website&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string baseurl = &quot;http://api.clickatell.com/http/sendmsg&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.IO.Stream data = client.OpenRead(baseurl); //I get the exception after this line<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.IO.StreamReader reader = new System.IO.StreamReader(data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = reader.ReadToEnd();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //data.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //reader.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return ;</code> </div>
<br />
Thanks,:confused:</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sibotho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124083.html</guid>
		</item>
		<item>
			<title><![CDATA[Tomcat & apache webserver authentication]]></title>
			<link>http://www.daniweb.com/forums/thread124080.html</link>
			<pubDate>Tue, 13 May 2008 20:39:37 GMT</pubDate>
			<description><![CDATA[Hi,
I hope this is the right place to post this topic.
I'm building an imagealbum application. Registred users can visit certain parts of the album after authentication.
So, the usermanagement and authentication process are build as servlets in Tomcat using a jdbcrealm. As the images are uploaded...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I hope this is the right place to post this topic.<br />
I'm building an imagealbum application. Registred users can visit certain parts of the album after authentication.<br />
So, the usermanagement and authentication process are build as servlets in Tomcat using a jdbcrealm. As the images are uploaded directly thru the filesystem, this files should be dynamically read from the filesystem. So, storing this images in the web content part of the webapp is not an option (i presume). My plan was to store the images in a structure in the docroot of the Apache webserver. I tied the webserver and Tomcat together with mod_jk. But it seems to be impossible to address a location outside the webapp context without breaking the authentication. Of course you can perform a sendRedirect but this bypasses the Tomcat authentication. I'm looking for two possible approaches:<br />
1) Is there a way to load dynamically files into an area that is managed by Tomcat (without redeploying)?<br />
Or<br />
2) Is there a way to address an area outside de webapp context without breaking the authentication managed by Tomcat.<br />
Any idea how i can solve this one?<br />
Many thanks for any output.<br />
<br />
Bart.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>bduitp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124080.html</guid>
		</item>
		<item>
			<title>netbeans createQuery()</title>
			<link>http://www.daniweb.com/forums/thread124076.html</link>
			<pubDate>Tue, 13 May 2008 20:23:44 GMT</pubDate>
			<description>If netbeans ide has a queryproperty set to
SELECT c FROM Content c
How can I change this query to say ..limit the resultset to less records like 10 or 20 instead of the whole database.

I am not sure what that SQL string would look like.</description>
			<content:encoded><![CDATA[<div>If netbeans ide has a queryproperty set to<br />
SELECT c FROM Content c<br />
How can I change this query to say ..limit the resultset to less records like 10 or 20 instead of the whole database.<br />
<br />
I am not sure what that SQL string would look like.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124076.html</guid>
		</item>
		<item>
			<title>Java encryption help</title>
			<link>http://www.daniweb.com/forums/thread124073.html</link>
			<pubDate>Tue, 13 May 2008 20:07:48 GMT</pubDate>
			<description><![CDATA[I'm just playing around with some code and I can't figure out why this isn't working.  It's only "encrypting" one word.  Can anyone tell me what's wrong with it?

[code = java] import java.util.*;

public class EncrypterDriver {
	
	static String encrypt(String fileMessage)
	{
		String...]]></description>
			<content:encoded><![CDATA[<div>I'm just playing around with some code and I can't figure out why this isn't working.  It's only &quot;encrypting&quot; one word.  Can anyone tell me what's wrong with it?<br />
<br />
[code = java] import java.util.*;<br />
<br />
public class EncrypterDriver {<br />
	<br />
	static String encrypt(String fileMessage)<br />
	{<br />
		String encryptedMessage = &quot;&quot;;<br />
		char fileChar = '0';<br />
		String fileWord = &quot;&quot;;<br />
		String encryptedWord;<br />
		StringTokenizer st = new StringTokenizer(fileMessage);<br />
		<br />
		while(st.hasMoreTokens())								//While the fileMessage string has more words in it<br />
		{<br />
			fileWord = st.nextToken();						//Returns word from the fileMessage string and stores it in fileWord<br />
			System.out.println(fileWord);<br />
			encryptedWord = &quot;&quot;;							//Resets encrypted word<br />
			<br />
			for(int i = 0; i &lt; fileWord.length() - 1; i++)			//loops through each character in the fileWord string<br />
			{<br />
				fileChar = fileWord.charAt(i);						// returns the character at position &quot;i&quot; from the string fileWord<br />
				fileChar+= 10;										// adds 10 to the character<br />
				encryptedWord +=  fileChar;				// puts the character in the String encryptedMessage<br />
			}<br />
			<br />
			encryptedMessage += encryptedWord + &quot; &quot;;							//stores a word in encrypted word and inserts a space after every word encrypted<br />
			<br />
		}<br />
		<br />
		return encryptedMessage;<br />
	}<br />
<br />
	public static void main(String[] args) {<br />
		String message = &quot;&quot;;<br />
		String encryptedMessage = &quot;&quot;;<br />
		Scanner sc = new Scanner(System.in);<br />
		<br />
		System.out.println(&quot;Enter a message: &quot;);<br />
		message = sc.next();<br />
		<br />
		encryptedMessage = encrypt(message);<br />
		<br />
		System.out.println(encryptedMessage);<br />
		<br />
		<br />
<br />
	}<br />
<br />
}<br />
[/code]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>NickMalone85</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124073.html</guid>
		</item>
		<item>
			<title>How to get started with this</title>
			<link>http://www.daniweb.com/forums/thread124072.html</link>
			<pubDate>Tue, 13 May 2008 20:06:41 GMT</pubDate>
			<description><![CDATA[I'm stuck on figuring out the best to do this assignment. I need to it with either a single array or a 2d array, no structs or classes or anything. Should i just have a 20x8 array and enter the data that way?

A company has records for the hours worked by each employee per week. Each employee's...]]></description>
			<content:encoded><![CDATA[<div>I'm stuck on figuring out the best to do this assignment. I need to it with either a single array or a 2d array, no structs or classes or anything. Should i just have a 20x8 array and enter the data that way?<br />
<br />
A company has records for the hours worked by each employee per week. Each employee's record consists of the hourly rate of pay and seven numbers, representing the hours worked by the employee on the seven days of the week. For example, a typical entry could be the following:<br />
13.25 1.3 7 8 0 4.7 0 0<br />
The first piece of data entered (not shown) is a parameter value, specifying the number of employees (there are no more than 20).<br />
<br />
Write a program that reads in the specified data and does the following:<br />
<br />
a.    For each employee, finds the total number of hours worked for the week.<br />
b.    For each employee, finds the weekly pay my multiplying the hours worked by the rate per hour.<br />
c.    Finds the number of employees absent on each day of the week. An employee is considered absent on a given day if the hours worked are equal to 0.<br />
d. Find which day has the most absentees.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tiney83</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124072.html</guid>
		</item>
		<item>
			<title>Error: Reading from file - using eof</title>
			<link>http://www.daniweb.com/forums/thread124068.html</link>
			<pubDate>Tue, 13 May 2008 19:03:42 GMT</pubDate>
			<description><![CDATA[int j=1;
fstream kd("Gydytojai.sed");
while (!kd.eof())      // Checking if the entry already exist;
 { if (gydmas[j].vardas==pgyd.vardas) {ShowMessage(L"Gydytojo id jau egzistuoja");
                                        pagalb=true;};      // if the entry exist, variable pagalb becomes true
...]]></description>
			<content:encoded><![CDATA[<div><div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="kw4">int</span> j=<span class="nu0">1</span>;</div></li><li class="li1"><div class="de1">fstream kd<span class="br0">&#40;</span><span class="st0">&quot;Gydytojai.sed&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="kw1">while</span> <span class="br0">&#40;</span>!kd.<span class="me1">eof</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>&nbsp; &nbsp; &nbsp; <span class="co1">// Checking if the entry already exist;</span></div></li><li class="li1"><div class="de1"> <span class="br0">&#123;</span> <span class="kw1">if</span> <span class="br0">&#40;</span>gydmas<span class="br0">&#91;</span>j<span class="br0">&#93;</span>.<span class="me1">vardas</span>==pgyd.<span class="me1">vardas</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>ShowMessage<span class="br0">&#40;</span>L<span class="st0">&quot;Gydytojo id jau egzistuoja&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pagalb=<span class="kw2">true</span>;<span class="br0">&#125;</span>;&nbsp; &nbsp; &nbsp; <span class="co1">// if the entry exist, variable pagalb becomes true</span></div></li><li class="li1"><div class="de1"> j++;<span class="br0">&#125;</span>;</div></li><li class="li1"><div class="de1">kd.<span class="me1">close</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li></ol></pre></code> </div>
<br />
Well, i'm checking if in the file Gydytojai.sed while it is not end of line checking if my input text, which i compared with the array of structure from file is the same, if it's then pagalb becomes true. And in this thing i get an error of project. File is not empty.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>En1ro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124068.html</guid>
		</item>
		<item>
			<title>strange dictionary definition/object instance problem</title>
			<link>http://www.daniweb.com/forums/thread124065.html</link>
			<pubDate>Tue, 13 May 2008 18:54:26 GMT</pubDate>
			<description><![CDATA[I am trying to add entries to a dictionary with the following loop:


for p in pressures:
	q70in.resetKeyword( "expansionRatio", p )
	q70in.writeInput( prefix + tempInput )  
	commands.getstatusoutput( runq70 )
	q70out = q70.Q70Output( prefix + outputFile )
	results[p] =...]]></description>
			<content:encoded><![CDATA[<div>I am trying to add entries to a dictionary with the following loop:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="kw1">for</span> p <span class="kw1">in</span> pressures:</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; q70in.<span class="me1">resetKeyword</span><span class="br0">&#40;</span> <span class="st0">&quot;expansionRatio&quot;</span>, p <span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; q70in.<span class="me1">writeInput</span><span class="br0">&#40;</span> prefix + tempInput <span class="br0">&#41;</span>&nbsp; </div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">commands</span>.<span class="me1">getstatusoutput</span><span class="br0">&#40;</span> runq70 <span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; q70out = q70.<span class="me1">Q70Output</span><span class="br0">&#40;</span> prefix + outputFile <span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; results<span class="br0">&#91;</span>p<span class="br0">&#93;</span> = <span class="br0">&#123;</span><span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">#results[p]['Performance'] = q70out.performance</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; results<span class="br0">&#91;</span>p<span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">'Conditions'</span><span class="br0">&#93;</span> = q70out.<span class="me1">conditions</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">print</span> q70out</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">print</span> results</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">print</span> <span class="st0">''</span></div></li></ol></pre></code> </div>
<br />
however, earlier entries of the dictionary are being 'overwritten' with new values as follows:<br />
<br />
(here's the output from the code print statements)<br />
<br />
&lt;q70.Q70Output instance at 0x400cbccc&gt;<br />
{'2.0': {'Conditions': {'Vane2INLET': {'WG': '3.200'}, 'Blade1INLET': {'WG': '3.191'}, 'Blade2INLET': {'WG': '3.200'}, 'Vane1INLET': {'WG': '3.191'}}}}<br />
<br />
&lt;q70.Q70Output instance at 0x400cbccc&gt;<br />
{'2.0': {'Conditions': {'Vane2INLET': {'WG': '3.320'}, 'Blade1INLET': {'WG': '3.311'}, 'Blade2INLET': {'WG': '3.320'}, 'Vane1INLET': {'WG': '3.311'}}}, '3.0': {'Conditions': {'Vane2INLET': {'WG': '3.320'}, 'Blade1INLET': {'WG': '3.311'}, 'Blade2INLET': {'WG': '3.320'}, 'Vane1INLET': {'WG': '3.311'}}}}<br />
<br />
&lt;q70.Q70Output instance at 0x400cbccc&gt;<br />
{'2.0': {'Conditions': {'Vane2INLET': {'WG': '3.326'}, 'Blade1INLET': {'WG': '3.316'}, 'Blade2INLET': {'WG': '3.326'}, 'Vane1INLET': {'WG': '3.316'}}}, '3.5': {'Conditions': {'Vane2INLET': {'WG': '3.326'}, 'Blade1INLET': {'WG': '3.316'}, 'Blade2INLET': {'WG': '3.326'}, 'Vane1INLET': {'WG': '3.316'}}}, '3.0': {'Conditions': {'Vane2INLET': {'WG': '3.326'}, 'Blade1INLET': {'WG': '3.316'}, 'Blade2INLET': {'WG': '3.326'}, 'Vane1INLET': {'WG': '3.316'}}}}<br />
<br />
<br />
So what's happening?<br />
<br />
Note that #### in:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">results{ '2.0':{'Conditions':{'Vane2INLET':{'WG': ####}}}}</code> </div>
<br />
SHOULD NOT CHANGE WITH ITERATION based on the loop</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>jmroach</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124065.html</guid>
		</item>
		<item>
			<title>Control contextmenustrip display</title>
			<link>http://www.daniweb.com/forums/thread124064.html</link>
			<pubDate>Tue, 13 May 2008 18:49:06 GMT</pubDate>
			<description><![CDATA[Hello

I want to know if is it possible to avoid the pop-up of a contextmenustrip (below mentionned as ctxs) 

Explaination :

In a Picture Box I've defined a ctxs
Mousedown right doesn't display it
Mouseup right display it]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I want to know if is it possible to avoid the pop-up of a contextmenustrip (below mentionned as ctxs) <br />
<br />
Explaination :<br />
<br />
In a Picture Box I've defined a ctxs<br />
Mousedown right doesn't display it<br />
Mouseup right display it<br />
<br />
I want to avoid the display if during the mouse down the user made a signifiant mouse move<br />
<br />
Any idea ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>olibara</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124064.html</guid>
		</item>
		<item>
			<title><![CDATA[gwbasic <>]]></title>
			<link>http://www.daniweb.com/forums/thread124063.html</link>
			<pubDate>Tue, 13 May 2008 18:47:21 GMT</pubDate>
			<description><![CDATA[what does the *<>* mean in the following GWBASIC programm ?

190 FOR C=2 TO N
200        LET I=C-1
210        WHILE I <> 0
220                  IF ASN(I)>ASN(I+1) THEN SWAP ASN(I), ASN(I+1) : I=I-1 ELSE I=0
230         WEND
240 NEXT C

ITS BUBBLE SORT IN GWBASIC]]></description>
			<content:encoded><![CDATA[<div>what does the <b>&lt;&gt;</b> mean in the following GWBASIC programm ?<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">190 FOR C=2 TO N<br />
200&nbsp; &nbsp; &nbsp; &nbsp; LET I=C-1<br />
210&nbsp; &nbsp; &nbsp; &nbsp; WHILE I &lt;&gt; 0<br />
220&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF ASN(I)&gt;ASN(I+1) THEN SWAP ASN(I), ASN(I+1) : I=I-1 ELSE I=0<br />
230&nbsp; &nbsp; &nbsp; &nbsp;  WEND<br />
240 NEXT C</code> </div>
<br />
ITS BUBBLE SORT IN GWBASIC</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum42.html">Legacy and Other Languages</category>
			<dc:creator>manzoor</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124063.html</guid>
		</item>
	</channel>
</rss>
