<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>it.rss24h.com</title>
	<atom:link href="http://it.rss24h.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://it.rss24h.com</link>
	<description>Solving technology problems</description>
	<lastBuildDate>Fri, 12 Mar 2010 06:12:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>switch statement</title>
		<link>http://it.rss24h.com/index.php/switch-statement/</link>
		<comments>http://it.rss24h.com/index.php/switch-statement/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:12:29 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C programming]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59396</guid>
		<description><![CDATA[Question:
hi,,,
i am having problem with this switch statement which is controled by a delay loop&#8230; whenever i run it i get the first value of the (case) rather than sequential count from (case1   to case5) for the desired loop.
can anyone help me finding the erorr, or posibily diferent coding methis
here is the code below
#include &#60;p18f1320.h&#62;
#include [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">hi,,,<br />
i am having problem with this switch statement which is controled by a delay loop&#8230; whenever i run it i get the first value of the (case) rather than sequential count from (case1   to case5) for the desired loop.</p>
<p>can anyone help me finding the erorr, or posibily diferent coding methis</p>
<p>here is the code below</p>
<p>#include &lt;p18f1320.h&gt;<br />
#include &lt;delays.h&gt;</p>
<p>void main(void)<br />
{<br />
int a,b,c,d, trisb,portb;<br />
int loop_count = 1;<br />
int ips = 10000;<br />
int select = 0;<br />
int Loop_1 = 0;<br />
int Loop_2 = 0;</p>
<p>ADCON1 = 0b11111111;  /*  this goes from right to left to digitalise the PORT_B strip&#8230; this sets the<br />
analoge or digital signals for prots A and B&#8230; if the bits set as &#8220;1&#8243;,<br />
then the signal are digital, but if they set as &#8220;0&#8243; then it set as analog */</p>
<p>TRISA = 0b00000000; /*  set TRISA as output, if we set the bits to &#8220;0&#8243; that means the port is output,<br />
but if set as &#8220;1&#8243; that means we taking input for that port */</p>
<p>TRISB = 0b01; //set TRISA as input</p>
<p>PORTA = 0; //initialising PORTA<br />
PORTB = 0; //initialising PORTA<br />
while (1)                                       //while loop generated<br />
{<br />
for (a=1; a&lt;100; a++)           //giving the variable a a value, and also increment it based on that value<br />
{<br />
select= Loop_1; //putting the value into RB1<br />
Loop_1 = 1-Loop_1;                      // decreament the giving value in Loop_1<br />
}<br />
for (b=1; b&lt;100; b++)           // the value in &#8220;b&#8221; also incremented by 1  150 times<br />
{<br />
select= Loop_2; //putting the value into RB1<br />
Loop_2 = 1-Loop_2;                      // decreament the giving value in Loop_1                        }</p>
<p>}<br />
switch (select)                                 //the biginning of the switch statement<br />
{<br />
case 1:</p>
<p>LATBbits.LATB1 = 1;<br />
break;</p>
<p>case  2:<br />
LATBbits.LATB2 = 1;<br />
break;</p>
<p>case  3:<br />
LATBbits.LATB3 = 1;<br />
break;</p>
<p>case  4:<br />
LATBbits.LATB4 = 1;<br />
break;</p>
<p>case  5:<br />
LATBbits.LATB5 = 1;<br />
break;<br />
}<br />
}<br />
}</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">If all you want to do is execute the next case each pass, you can drop both of the for (;;) loops (or use them for the calculations that you need) and just compute *select* each time through the loop.</p>
<p>Select = (Select == 5 ? 1 : Select + 1);</p>
<p>switch (Select)<br />
{<br />
&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/switch-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS send email attachment as part of body</title>
		<link>http://it.rss24h.com/index.php/ssis-send-email-attachment-as-part-of-body/</link>
		<comments>http://it.rss24h.com/index.php/ssis-send-email-attachment-as-part-of-body/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:09:27 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59394</guid>
		<description><![CDATA[Question:
I have build a SSIS package.
I would like to send some data in a tabular format as part of the email message body.
(not as an attachment)
I have tried SSRS &#8211; but this doesn&#8217;t work for my requirements. I need to change the subject based on the count of rows returned from the query&#8221;
eg . Subject: [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">I have build a SSIS package.<br />
I would like to send some data in a tabular format as part of the email message body.<br />
(not as an attachment)</p>
<p>I have tried SSRS &#8211; but this doesn&#8217;t work for my requirements. I need to change the subject based on the count of rows returned from the query&#8221;</p>
<p>eg . Subject: &#8221; 5 transactions to verify&#8221;</p>
<p>only with SSIS or script task i can control the subject entry. but I need a way to not send an attachment but embed it into the body part.</p>
<p>Any ideas please?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">Here is a n example of how to format a body text as an html table from a quey. Hope it helps:</p>
<p>SELECT @formattedbody = &#8216;&lt;h1&gt;Look at the results below&lt;/h1&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;col1&lt;/th&gt;&lt;th&gt;col2&lt;/th&gt;&lt;th&gt;col3&lt;/th&gt;&lt;/tr&gt;&#8217; +<br />
(SELECT &#8216;&lt;tr&gt;&#8217; + &#8216;&lt;td&gt;&#8217; + col1 + &#8216;&lt;/td&gt;&lt;td&gt;&#8217; + col2 + &#8216;&lt;/td&gt;&lt;td&gt;&#8217; + col3 + &#8216;&lt;/td&gt;&lt;/tr&gt;&#8217; FROM mytable WHERE myid = 5 FOR XML PATH(&#8221;),TYPE).value(&#8216;.&#8217;,'VARCHAR(4000)&#8217;)<br />
+ &#8216;&lt;/table&gt;&#8217;</p>
<p>EXEC msdb.dbo.sp_send_dbmail<br />
@recipients=N&#8217;me@me.com;him@him.com&#8217;,<br />
@body=@formattedbody,</p>
<p>@subject =&#8217;Message Subject&#8217;,<br />
@profile_name =&#8217;DatabaseMailProfile&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/ssis-send-email-attachment-as-part-of-body/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 7 &#8211; ASP</title>
		<link>http://it.rss24h.com/index.php/iis-7-asp/</link>
		<comments>http://it.rss24h.com/index.php/iis-7-asp/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:08:06 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59392</guid>
		<description><![CDATA[Question:
Is ther benefits in Classsic ASP with IIS 7? How?
Solution:
IIS, in most reqards, offers more control over your web server. It doesn&#8217;t really have much benefit for specific scripting languages other than better logging.
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Is ther benefits in Classsic ASP with IIS 7? How?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">IIS, in most reqards, offers more control over your web server. It doesn&#8217;t really have much benefit for specific scripting languages other than better logging.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/iis-7-asp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>hibernate second level cache, multiple app modify the same DB</title>
		<link>http://it.rss24h.com/index.php/hibernate-second-level-cache-multiple-app-modify-the-same-db/</link>
		<comments>http://it.rss24h.com/index.php/hibernate-second-level-cache-multiple-app-modify-the-same-db/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:06:28 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59390</guid>
		<description><![CDATA[Question:
Hello experts,
I read hibernate documentation, it is stated that &#8220;Caches are never aware of changes made to the persistent store by another application&#8221;.
In real world application, it is not uncommon that a DB is used by more than one application with different persistence strategy. I want to know how hibernate will handle such situtation?
Thanks,
Solution:
&#62;, it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Hello experts,</p>
<p>I read hibernate documentation, it is stated that &#8220;Caches are never aware of changes made to the persistent store by another application&#8221;.</p>
<p>In real world application, it is not uncommon that a DB is used by more than one application with different persistence strategy. I want to know how hibernate will handle such situtation?</p>
<p>Thanks,</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">&gt;, it&#8217;s not feasible in a situation where a db is accessible and modifiable by multiple application.</p>
<p>Its feasible only u can use the sheama where used in the DB for accessing other application .</p>
<p>Hibernate do only mapping between backend and ur DAO<br />
so that s possible only</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/hibernate-second-level-cache-multiple-app-modify-the-same-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>W7 PCs keep losing connection to domain</title>
		<link>http://it.rss24h.com/index.php/w7-pcs-keep-losing-connection-to-domain/</link>
		<comments>http://it.rss24h.com/index.php/w7-pcs-keep-losing-connection-to-domain/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:05:26 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows 7 Active Directory domain]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59388</guid>
		<description><![CDATA[Question:
Environment: Windows AD domain with 3 DCs &#8211; one running Server 2003 Std SP2, one Server 2003 R2 Std SP2 and the other is Server 2008 Std x64 SP2.
I have 2 W7 PCs (one Pro, one Enterprise) which have been losing their AD connections almost daily now this week.  The error is:
The trust relationship between [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Environment: Windows AD domain with 3 DCs &#8211; one running Server 2003 Std SP2, one Server 2003 R2 Std SP2 and the other is Server 2008 Std x64 SP2.</p>
<p>I have 2 W7 PCs (one Pro, one Enterprise) which have been losing their AD connections almost daily now this week.  The error is:</p>
<p>The trust relationship between this workstation and the primary domain failed.</p>
<p>I have 2 other W7 laptops that don&#8217;t have this issue (just starting to deploy W7 into our school).  I fix the problem by logging in as a local admin and rejoining to the existing domain (users do not have admin rights for their PCs), but then the problem happens again in a day or two.  What is going on here?  Of course, I can&#8217;t keep doing this day after day.  Thanks for any help here.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">Well, as it turns out &#8211; during an upgrade of one of them last week, I mistakenly gave it the wrong name, so that the two had the same NETBIOS name.  Whoops.  So they now have unique names and all is well.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/w7-pcs-keep-losing-connection-to-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Java for displaying the image from my webcam, and capture picture?</title>
		<link>http://it.rss24h.com/index.php/how-to-use-java-for-displaying-the-image-from-my-webcam-and-capture-picture/</link>
		<comments>http://it.rss24h.com/index.php/how-to-use-java-for-displaying-the-image-from-my-webcam-and-capture-picture/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:04:11 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59386</guid>
		<description><![CDATA[Question:
Would that be difficult to use Java for displaying the image from the webcam connected locally, and capture the image from that?   If yes, would that be a cross platform solution like Java does for other application?
Solution:
It wouldn&#8217;t be easy, but if you know a bit of Java you should be able to do it. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Would that be difficult to use Java for displaying the image from the webcam connected locally, and capture the image from that?   If yes, would that be a cross platform solution like Java does for other application?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">It wouldn&#8217;t be easy, but if you know a bit of Java you should be able to do it. Do a search on google for &#8220;java webcam application&#8221; (without the double quotes) and you can find loads of examples.</p>
<p>&gt;  If yes, would that be a cross platform solution like Java does for other application?</p>
<p>It depends if the libraries use native code or not. If you go with JMF (http://java.sun.com/javase/technologies/desktop/media/jmf/) it will be, although you need to use some native code, it comes with all the necessary libraries you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/how-to-use-java-for-displaying-the-image-from-my-webcam-and-capture-picture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Find SQLEXpress 2008 Report Server on Local Computer</title>
		<link>http://it.rss24h.com/index.php/cannot-find-sqlexpress-2008-report-server-on-local-computer/</link>
		<comments>http://it.rss24h.com/index.php/cannot-find-sqlexpress-2008-report-server-on-local-computer/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:02:43 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL Server 2008 Reporting Services]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59384</guid>
		<description><![CDATA[Question:
I am learning Reporting Services and I havre SQLExpress 2008 with Reporting Services loaded on my local Machine.  I have learned to author reports and now I want to open the Report Manager.  I am told to go to the default location of
http://ComputerName (my local computer name)/ reports
or
http://localhost/reports
but the browser gives the error message that [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">I am learning Reporting Services and I havre SQLExpress 2008 with Reporting Services loaded on my local Machine.  I have learned to author reports and now I want to open the Report Manager.  I am told to go to the default location of<br />
http://ComputerName (my local computer name)/ reports<br />
or</p>
<p>http://localhost/reports</p>
<p>but the browser gives the error message that this page does not exist.<br />
I have loaded SQL Server in the default location<br />
Does anyone know what is going on?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">go to :<br />
start<br />
programs<br />
microsoft sql server 2008<br />
configuration tools<br />
reporting service configuration manager</p>
<p>what typed front of URLs :    ????<br />
you must browse to this address now</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/cannot-find-sqlexpress-2008-report-server-on-local-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how do I include a second range</title>
		<link>http://it.rss24h.com/index.php/how-do-i-include-a-second-range/</link>
		<comments>http://it.rss24h.com/index.php/how-do-i-include-a-second-range/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:01:30 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59382</guid>
		<description><![CDATA[Question:
this code will search through all lines of data and delete a line of data if, in the second position the value is between 1 and 6 ;
#!/usr/bin/perl
unlink (&#8216;result.txt&#8217;); #delete result.txt
open (IN,&#8221;master.vim&#8221;) or die;
open (OUT,&#8221;&#62;&#62;result.vim&#8221;) or die;
$pos=1;
#position number you can change
while (&#60;IN&#62;){
my @a=split (/,/,$_);
next if ($a[0] &#62;= 1 &#38;&#38; $a[0] &#60;= 14 &#38;&#38; $a[1] &#62;= [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">this code will search through all lines of data and delete a line of data if, in the second position the value is between 1 and 6 ;</p>
<p>#!/usr/bin/perl</p>
<p>unlink (&#8216;result.txt&#8217;); #delete result.txt<br />
open (IN,&#8221;master.vim&#8221;) or die;<br />
open (OUT,&#8221;&gt;&gt;result.vim&#8221;) or die;</p>
<p>$pos=1;<br />
#position number you can change<br />
while (&lt;IN&gt;){<br />
my @a=split (/,/,$_);<br />
next if ($a[0] &gt;= 1 &amp;&amp; $a[0] &lt;= 14 &amp;&amp; $a[1] &gt;= 1 &amp;&amp; $a[5] &lt;= 6);</p>
<p>if ( ($a[$pos-1] &lt; 15) or ($a[$pos-1] &gt; 49) ) {print OUT $_;}<br />
}</p>
<p>close (OUT);<br />
close (IN);</p>
<p>How do get it to do the same, but in addition seek out values 14-24 ?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">next if ($a[0] &gt;= 1 &amp;&amp; $a[0] &lt;= 14 &amp;&amp; (($a[1] &gt;= 1 &amp;&amp; $a[1] &lt;= 6)||($a[1] &gt;= 14 &amp;&amp; $a[1] &lt;= 24)) );</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/how-do-i-include-a-second-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>char * to int*</title>
		<link>http://it.rss24h.com/index.php/char-to-int/</link>
		<comments>http://it.rss24h.com/index.php/char-to-int/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:59:57 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[char pointer int]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59380</guid>
		<description><![CDATA[Question:
I have the following in my code:
char *someChars
int *someCharLength
I have a function which takes in :
int *myFuction(int *in, int inCount, int outCount);
It basically takes the bits and do a rot 13, how do I safely pass my char string in?
Solution:
Hmm&#8230;. that function makes more sense, but is there any chance &#8220;your bad&#8221; is bad?  I [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">I have the following in my code:</p>
<p>char *someChars<br />
int *someCharLength</p>
<p>I have a function which takes in :</p>
<p>int *myFuction(int *in, int inCount, int outCount);</p>
<p>It basically takes the bits and do a rot 13, how do I safely pass my char string in?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">Hmm&#8230;. that function makes more sense, but is there any chance &#8220;your bad&#8221; is bad?  I would expect one of the following:</p>
<p>uint32 * myFuction( uint8 *in, uint32 inCount, uint8 **out );<br />
uint32 myFuction( uint8 *in, uint32 inCount, uint8 ** out );</p>
<p>The first doesn&#8217;t make much sense, since the size should be returned simply as a uint32 rather than a uint32 *.  The second one seems extremely likely.</p>
<p>I&#8217;m fairly certain your return must be a uint32 or uint32 *.  Otherwise, your maximum byte count allowed on the return is 255 bytes, and since your input allows up to 4GB, nothing can compress your input to be that small.</p>
<p>Call me presumptious, but I&#8217;m going to give the examples assuming it returned either uint32 or uint32 *.</p>
<p>I&#8217;m going to start using unsigneds, to help avoid some of the typecasting.</p>
<p>If it returns a uint32*:</p>
<p>unsigned char *           someChars;<br />
unsigned                       someCharLength;<br />
unsigned char *            returnedChars;<br />
unsigned *                     returnedLength;<br />
and you would call the function as follows:<br />
returnedLength = myFuction( someChars, someCharLength, &amp;returnedChars );</p>
<p>then access the size of the out via *returnedLength</p>
<p>If it returns a uint32:</p>
<p>unsigned char *           someChars;<br />
unsigned                       someCharLength;<br />
unsigned char *           returnedChars;<br />
unsigned                       returnedLength;<br />
and you would call the function as follows:<br />
returnedLength = myFuction( someChars, someCharLength, &amp;returnedChars );</p>
<p>then access the size of the out via returnedLength</p>
<p>Note, this implies that the function creates new memory for the returned value.  At some point, it is your responsibility to free the memory:</p>
<p>free( returnedChars );</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/char-to-int/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing Workbook in Excel</title>
		<link>http://it.rss24h.com/index.php/sharing-workbook-in-excel/</link>
		<comments>http://it.rss24h.com/index.php/sharing-workbook-in-excel/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 05:58:18 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[colloboration]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Microsoft Excel 2003]]></category>
		<category><![CDATA[Multiple-users]]></category>
		<category><![CDATA[real time]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[sharing]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=59378</guid>
		<description><![CDATA[Question:
Application = Microsoft Excel 2003
I need to find a way that multiple users (on three different PCs) can jointly author a spreadsheet in near real time and see each other’s edits. Before I provide more detail, please know that I am well aware that Excel does not have an ideal sharing tool, so let&#8217;s focus [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Application = Microsoft Excel 2003</p>
<p>I need to find a way that multiple users (on three different PCs) can jointly author a spreadsheet in near real time and see each other’s edits. Before I provide more detail, please know that I am well aware that Excel does not have an ideal sharing tool, so let&#8217;s focus on solutions : )</p>
<p>Each user has access to a shared network.<br />
Each user will provide data to upate a &#8220;main&#8221; tab or file<br />
Ideally (very ideally), each user can see the latest updates as they occur so there is no repetitive work. This is not absolutly necessary, however, as the users will each be granted access to the &#8220;main&#8221; file via large TVs.<br />
The nice thing is that there are really no &#8220;conflicts&#8221; to worry about as I want the latest change(s) regardless of what user it came from&#8230;the users are all limited to list boxes, so the data is always as valid as the person entering it..which is fine&#8230;</p>
<p>I created a worbook that does everything I envisioned. It has three tabs (station 1), (station 2), and (station 3) and a (main file) that&#8217;s updated every time a new selection is made on one of the station tabs. The problem is that it&#8217;s all in one workbook and the shared excel features are not real-time enough (the five min lag is too long and having each user save when they are finished AND save when they want an update is impractical)</p>
<p>I also separated the station tabs and the main tabs into there own files in hopes that I could share all the station tabs with a macro that auto-updates every spreadsheet after every change (by saving all the spreadsheets) and having one of the station files linked to the main file (on the same PC, so the changes are instantaneous). I could not get the change function to work, however, in the shared environment. It could have been something I was doing wrong though.<br />
I ended-up writing a macro that saves the station file automatically every 40 seconds after it&#8217;s opened. ODDLY, this macro needs to be started (run) in each Excel file EVEN THOUGH THE FILE IS SHARED. This is where I start to get really confused as to why this is not working&#8230;.plus, having the shared file save every 40 seconds (when I opened the shared station file from all three different PCs on the network) was really inefficient and will eventually have problems, I am sure&#8230;</p>
<p>Is there any easier way to do what we are looking for?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">dreicer_jarr,</p>
<p>Your question makes the bold and false assumption that all the options have not been investigated and that somehow you are the first to attempt to overcome the problems. Not so. You are just one of a large number of people who would like to overcome the problem. Although I realise you come from the camp that believes in the &#8220;so let&#8217;s focus on solutions&#8221; approach because you see that as the way to persuade yourself and others that there must be a solution, you are wasting your time and other people&#8217;s time.</p>
<p>I fully realise that some people, rare in my 8 years here in EE, have experienced no problems with shared Excel files, but they are about 2% of those that discuss the subject. The rest ask for help. Microsoft are fully aware of the problem but have so far not offered a fix.</p>
<p>There are many inexpensive databases available on the market which would do the job that you are describing without problem. The users would enjoy using a database as they would have instantaneous and continuous availability of such a system. They would not need to wait whilst the file saved, they would not need to worry about backups, or file corruption. If you have not used databases before the only question is whether you have the willingness and ability to learn quickly how to use one as a developer.</p>
<p>When faced with just the sort of problem you describe I overcame it by learning within days how to use Lotus Approach. And bear in mind I have never earned my living in IT, I am just an interested user. Lotus Approach is a genuine multi-user database with a user interface that you can make look as good as you want. It is these days extremely cheap (approx £50 for Lotus Smartsuite which includes Lotus Approach) and its learning curve is shallow &#8211; and that is unlike MS Access which is horrendous for developers who are new to it. I managed to design and build a database alternative to an Excel system for use by 6 people using Lotus Approach in about 2 days. It was used without trouble for about 2 years after which the company&#8217;s IT department replaced it with a more comprehensive system.</p>
<p>The challenge to develop a sensible alternative to Excel is yours.</p>
<p>Patrick</p>
<p>ps. Have a look at:</p>
<p>http://www.ecostsoftware.com/ibm-lotus/lotus-smartsuite-millennium-9-8-retail-boxed_p1842?gclid=CNqzjs_qqKACFYMA4wodzl0KZw</p>
<p>or just put &#8216;Lotus Smatsuite&#8217; into Google</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/sharing-workbook-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
