<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159372</guid>
        <pubDate>Thu, 05 Sep 2002 15:18:15 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159372</link>
        <description><![CDATA[artgonch: Нет, нельзя. &nbsp;Свитч/кэйс может работать только с целочисленными константами]]></description>
        <author>artgonch</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159371</guid>
        <pubDate>Thu, 05 Sep 2002 13:17:27 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159371</link>
        <description><![CDATA[CBP: &gt; Сейчас уже придумали классы AnsiString и сравнивается все правильно<br>Прогресс, однако! А в switch--case их можно засовывать?]]></description>
        <author>CBP</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159370</guid>
        <pubDate>Thu, 05 Sep 2002 13:16:21 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159370</link>
        <description><![CDATA[Monster: Ура заработало Спасибо огромное!!! :)]]></description>
        <author>Monster</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159369</guid>
        <pubDate>Thu, 05 Sep 2002 12:54:53 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159369</link>
        <description><![CDATA[AGAMEMNUM: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>CBP, 05.09.02, 15:53:55</span><div class='quote '>О, а разве так можно строки сравнивать? Чё-то отстал я от жизни.</div></div><br><br>Наверное отстал... Сейчас уже придумали классы AnsiString и сравнивается все правильно. <br><br>Вот только то что принимаешь при первом иф, при втором не вылезет...<br>пробуй так:<br><br>AnsiString s;<br>s=Socket-&gt;ReceiveText();<br><br>if(s==&quot;MC&quot;)<br> &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>if(s==&quot;GZ&quot;) &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>и т д.<br>]]></description>
        <author>AGAMEMNUM</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159368</guid>
        <pubDate>Thu, 05 Sep 2002 12:25:53 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159368</link>
        <description><![CDATA[Monster: Так вообще не работает.]]></description>
        <author>Monster</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159367</guid>
        <pubDate>Thu, 05 Sep 2002 12:04:39 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159367</link>
        <description><![CDATA[CBP: А так не пойдёт?<br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;char *bla = Socket-&#62;ReceiveText();&#60;br&#62;&#60;br&#62;if(!strcmp(&quot;MC&quot;, bla))&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62;ShellExecute(Handle,&quot;open&quot;,&quot;d:/c.bat&quot;,NULL,NULL,SW_SHOWNOACTIVATE);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(24);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;else if(!strcmp(&quot;GZ&quot;, bla))&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;post();&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(9);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;else if(!strcmp(&quot;50TD&quot;, bla))&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62;ShellExecute(Handle,&quot;open&quot;,&quot;d:/o.bat&quot;,NULL,NULL,SW_SHOWNOACTIVATE);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(7);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;return;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>CBP</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159366</guid>
        <pubDate>Thu, 05 Sep 2002 11:53:55 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159366</link>
        <description><![CDATA[CBP: О, а разве так можно строки сравнивать? Чё-то отстал я от жизни.]]></description>
        <author>CBP</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159365</guid>
        <pubDate>Thu, 05 Sep 2002 11:10:40 +0000</pubDate>
        <title>WinSocet</title>
        <link>https://forum.sources.ru/index.php?showtopic=21225&amp;view=findpost&amp;p=159365</link>
        <description><![CDATA[Monster: Почему при такой конструкции работает только первое условие, а остальные работать не хотят?<br><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;void __fastcall TForm1::ServerSocket1ClientRead(TObject *Sender,&#60;br&#62; &nbsp; &nbsp; &nbsp;TCustomWinSocket *Socket)&#60;br&#62;{&#60;br&#62;if(Socket-&#62;ReceiveText()==&quot;MC&quot;)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;ShellExecute(Handle,&quot;open&quot;,&quot;d:/c.bat&quot;,NULL,NULL,SW_SHOWNOACTIVATE);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(24);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;else if(Socket-&#62;ReceiveText()==&quot;GZ&quot;)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;post();&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(9);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;else if(Socket-&#62;ReceiveText()==&quot;5OTD&quot;)&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;{&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;ShellExecute(Handle,&quot;open&quot;,&quot;d:/o.bat&quot;,NULL,NULL,SW_SHOWNOACTIVATE);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;log(7);&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;return;&#60;br&#62; &nbsp; &nbsp; &nbsp; &nbsp;}&#60;br&#62;</div></ol></div></div></div></div>]]></description>
        <author>Monster</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      </channel>
      </rss>
	