<?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=331428&amp;view=findpost&amp;p=2890762</guid>
        <pubDate>Mon, 09 May 2011 14:40:50 +0000</pubDate>
        <title>компиляция Gtk template</title>
        <link>https://forum.sources.ru/index.php?showtopic=331428&amp;view=findpost&amp;p=2890762</link>
        <description><![CDATA[Layer: да безусловно установлен:) MonoDev требует предварительно установки Gtk#, если его не обнаруживает.<br>
<br>
Botva, спасибо, очень выручил, вставил код и понял в чем дело..<br>
всё дело оказалось из-за того, что визард создает код в файле Main.cs:<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">using System;</div><div class="code_line">using Gtk;</div><div class="code_line">namespace Application{</div><div class="code_line">&nbsp;&nbsp; &nbsp;class MainClass{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;public static void Main (string[] args) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.Init ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MainWindow win = new MainWindow ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;win.Show ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.Run ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
где namespace Application - совпадает с именем объекта Application в файле MainWindow.cs: и вызывает методы типа Application.Quit ();<br>
на чем и затыкается...<br>
<br>
поменял пространство имён и всё заработало, благодарю:) <br>
удивило одно, почему мастер по умолчанию создает простецкое приложение, которое не компилится сразу по такой, казалось бы дурацкой причине)]]></description>
        <author>Layer</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331428&amp;view=findpost&amp;p=2890571</guid>
        <pubDate>Mon, 09 May 2011 09:46:03 +0000</pubDate>
        <title>компиляция Gtk template</title>
        <link>https://forum.sources.ru/index.php?showtopic=331428&amp;view=findpost&amp;p=2890571</link>
        <description><![CDATA[Botva: У меня Build (); не находит, при запуске твоего кода. Покажите весь проект.<br>
<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">using System;</div><div class="code_line">using Gtk;</div><div class="code_line">&nbsp;</div><div class="code_line">namespace myProg</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;class MainClass</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;public static void Main (string[] args)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.Init ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MainWindow win = new MainWindow ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;win.Show ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.Run ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-05-09T09:48:06+00:00">09.05.11, 09:48</time></span></span><br>
Глупый вопрос: А GtkSharp У тебя установлен?]]></description>
        <author>Botva</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=331428&amp;view=findpost&amp;p=2890002</guid>
        <pubDate>Sun, 08 May 2011 09:03:56 +0000</pubDate>
        <title>компиляция Gtk template</title>
        <link>https://forum.sources.ru/index.php?showtopic=331428&amp;view=findpost&amp;p=2890002</link>
        <description><![CDATA[Layer: решил пощупать Mono, взял IDE MonoDevelop под виндой<br>
создаю проект обычным способом Gtk# 2.0<br>
<br>
Примеры разбирал, всё идентично делаю, а нифига не работает.<br>
пробовал референсы в опциях подключать как в инете пишут, не помогло.<br>
<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">using System;</div><div class="code_line">using Gtk;</div><div class="code_line">&nbsp;</div><div class="code_line">public partial class MainWindow: Gtk.Window{ &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;public MainWindow (): base (Gtk.WindowType.Toplevel){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Build ();</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;protected void OnDeleteEvent (object sender, DeleteEventArgs a){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Application.Quit ();</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;a.RetVal = true;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div><br>
<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">Error CS0234: Имя типа или пространства имен &#39;Quit&#39; отсутствует в пространстве имен &#39;Application&#39; (пропущена ссылка на сборку?)</div><div class="code_line">Error CS0234: Имя типа или пространства имен &#39;Init&#39; отсутствует в пространстве имен &#39;Application&#39; (пропущена ссылка на сборку?)</div><div class="code_line">Error CS0234: Имя типа или пространства имен &#39;Run&#39; отсутствует в пространстве имен &#39;Application&#39; (пропущена ссылка на сборку?)</div></ol></div></div></div></div><br>
<br>
Подскажите в чем дело?]]></description>
        <author>Layer</author>
        <category>.NET: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	