<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>「透過Mono讓.Net Framework開發的軟體，搖身一變成為綠色軟體」的迴響</title>
	<atom:link href="http://blog.colorbase.tw/programming/525/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.colorbase.tw/programming/525</link>
	<description>訊息多變的時代裡，需要多學習多思考</description>
	<lastBuildDate>Sat, 14 Jan 2012 11:28:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>作者：Jamie</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-1717</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Thu, 28 Apr 2011 04:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-1717</guid>
		<description>您好,

我在.net 內, 有引用Microsoft.Office.Interop.Excel, 但我在lib 裡找不到, 要去哪裡找呢? 我只差這個了, &gt;&lt;</description>
		<content:encoded><![CDATA[<p>您好,</p>
<p>我在.net 內, 有引用Microsoft.Office.Interop.Excel, 但我在lib 裡找不到, 要去哪裡找呢? 我只差這個了, &gt;&lt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：加入了MS word Reference 問題 &#124; Hello, Visual Basic program&#8230;</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-1595</link>
		<dc:creator>加入了MS word Reference 問題 &#124; Hello, Visual Basic program&#8230;</dc:creator>
		<pubDate>Mon, 07 Mar 2011 05:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-1595</guid>
		<description>[...] Mono 透過Mono讓.Net Framework開發的軟體，搖身一變成為綠色軟體 .Net Framework透過Mono跨平台的一些技巧 MONO: an alternative for the .NET [...]</description>
		<content:encoded><![CDATA[<p>[...] Mono 透過Mono讓.Net Framework開發的軟體，搖身一變成為綠色軟體 .Net Framework透過Mono跨平台的一些技巧 MONO: an alternative for the .NET [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：K.T. Lo</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-1279</link>
		<dc:creator>K.T. Lo</dc:creator>
		<pubDate>Wed, 10 Nov 2010 06:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-1279</guid>
		<description>Try monow.exe</description>
		<content:encoded><![CDATA[<p>Try monow.exe</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：悠哉悠哉</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-1165</link>
		<dc:creator>悠哉悠哉</dc:creator>
		<pubDate>Sun, 12 Sep 2010 04:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-1165</guid>
		<description>.NET程序脱离框架进阶 之 Embedding Mono　　使用MONO让.NET程序脱离.NET Framework运行是个不错的方法，网上已有很多介绍。但是MONO运行.NET程序也有让人郁闷的地方，比如你只能使用“mono 你的NET程序名.exe”这样的命令运行你的.NET程序（当然，你也可以用C++写个程序来调用。），虽然也不复杂，但是程序运行时MONO黑乎乎的命令行窗口实在碍眼。

　　前些日子看了下MONO官方Embedding Mono介绍，于是动手写了个，用起来爽多了，看下面C++代码：
#include &quot;stdafx.h&quot;
#include 
#include 
#include 
#include 
#pragma comment( linker, &quot;/subsystem:\&quot;windows\&quot; /entry:\&quot;mainCRTStartup\&quot;&quot; )
int main(int argc, char* argv[])
{
    int retval;
    char *file;
    file = &quot;.\\demo.exe&quot;; // .NET程序路径
    //argv[0] = file;
    mono_set_dirs(&quot;.\\lib&quot;, NULL);
    MonoDomain *domain;
    MonoAssembly *assembly;
    domain = mono_jit_init (file);
    assembly = mono_domain_assembly_open (domain, file);
    if (!assembly) exit (2);
    mono_jit_exec (domain, assembly, argc, argv);
    retval = mono_environment_exitcode_get ();
    mono_jit_cleanup (domain);
    return retval;
}
　　哎，不会写文章，直接上源码下载地址：http://www.xun6.com/file/0dcf46622/EmbeddingMono.zip.html
　　压缩包中包含精简过的MONO框架（在Release目录中）仅包含demo所需的组件，所以不适合你的程序，你可以自行下载MONO框架进行精简，这方面网上已有很多文章，我就不再罗嗦了。</description>
		<content:encoded><![CDATA[<p>.NET程序脱离框架进阶 之 Embedding Mono　　使用MONO让.NET程序脱离.NET Framework运行是个不错的方法，网上已有很多介绍。但是MONO运行.NET程序也有让人郁闷的地方，比如你只能使用“mono 你的NET程序名.exe”这样的命令运行你的.NET程序（当然，你也可以用C++写个程序来调用。），虽然也不复杂，但是程序运行时MONO黑乎乎的命令行窗口实在碍眼。</p>
<p>　　前些日子看了下MONO官方Embedding Mono介绍，于是动手写了个，用起来爽多了，看下面C++代码：<br />
#include 『stdafx.h』<br />
#include<br />
#include<br />
#include<br />
#include<br />
#pragma comment( linker, 『/subsystem:\』windows\』 /entry:\』mainCRTStartup\』" )<br />
int main(int argc, char* argv[])<br />
{<br />
    int retval;<br />
    char *file;<br />
    file = 『.\\demo.exe』; // .NET程序路径<br />
    //argv[0] = file;<br />
    mono_set_dirs(『.\\lib』, NULL);<br />
    MonoDomain *domain;<br />
    MonoAssembly *assembly;<br />
    domain = mono_jit_init (file);<br />
    assembly = mono_domain_assembly_open (domain, file);<br />
    if (!assembly) exit (2);<br />
    mono_jit_exec (domain, assembly, argc, argv);<br />
    retval = mono_environment_exitcode_get ();<br />
    mono_jit_cleanup (domain);<br />
    return retval;<br />
}<br />
　　哎，不会写文章，直接上源码下载地址：http://www.xun6.com/file/0dcf46622/EmbeddingMono.zip.html<br />
　　压缩包中包含精简过的MONO框架（在Release目录中）仅包含demo所需的组件，所以不适合你的程序，你可以自行下载MONO框架进行精简，这方面网上已有很多文章，我就不再罗嗦了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：way</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-121</link>
		<dc:creator>way</dc:creator>
		<pubDate>Wed, 10 Mar 2010 07:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-121</guid>
		<description>中文路径有办法解决么?</description>
		<content:encoded><![CDATA[<p>中文路径有办法解决么?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：beaver</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-120</link>
		<dc:creator>beaver</dc:creator>
		<pubDate>Thu, 26 Nov 2009 23:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-120</guid>
		<description>我已經解決了..因為用了 --debug的參數
所以一直有dos畫面...thankx</description>
		<content:encoded><![CDATA[<p>我已經解決了..因為用了 &#8211;debug的參數<br />
所以一直有dos畫面&#8230;thankx</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：beaver</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-119</link>
		<dc:creator>beaver</dc:creator>
		<pubDate>Thu, 26 Nov 2009 10:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-119</guid>
		<description>vb6..用shell仍會跑出命令視窗...
請問vb6如何call mono 而不會有命令視窗
雖然可以用 vbhide的屬性..不過在部分作業系統 ex win2003..則連mono呼叫出來的主程式都隱藏了..
thankx</description>
		<content:encoded><![CDATA[<p>vb6..用shell仍會跑出命令視窗&#8230;<br />
請問vb6如何call mono 而不會有命令視窗<br />
雖然可以用 vbhide的屬性..不過在部分作業系統 ex win2003..則連mono呼叫出來的主程式都隱藏了..<br />
thankx</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：阿育</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-118</link>
		<dc:creator>阿育</dc:creator>
		<pubDate>Tue, 20 Oct 2009 12:38:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-118</guid>
		<description>Hi Chris

原來如此啊，這個問題我倒是沒想過，感謝分享 :)

.net 使用的繪圖函式庫是使用GDI+，而GDI+是XP以後內建的函式庫
但這是微軟的技術，所以我想mono可能沒有實現這個東西專利上不允許而未包含</description>
		<content:encoded><![CDATA[<p>Hi Chris</p>
<p>原來如此啊，這個問題我倒是沒想過，感謝分享 <img src='http://blog.colorbase.tw/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>.net 使用的繪圖函式庫是使用GDI+，而GDI+是XP以後內建的函式庫<br />
但這是微軟的技術，所以我想mono可能沒有實現這個東西專利上不允許而未包含</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Chris</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-117</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 19 Oct 2009 09:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-117</guid>
		<description>Hello~
我找到原因了，因為windows 2000沒有使用gdiplus.dll的樣子

如果套用您提供的小程式
只要把gdiplus.dll丟到該目錄底下就可以正常開啟
分享一下囉~</description>
		<content:encoded><![CDATA[<p>Hello~<br />
我找到原因了，因為windows 2000沒有使用gdiplus.dll的樣子</p>
<p>如果套用您提供的小程式<br />
只要把gdiplus.dll丟到該目錄底下就可以正常開啟<br />
分享一下囉~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：阿育</title>
		<link>http://blog.colorbase.tw/programming/525/comment-page-1#comment-116</link>
		<dc:creator>阿育</dc:creator>
		<pubDate>Wed, 14 Oct 2009 06:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colorbase.tw/?p=525#comment-116</guid>
		<description>嗨 Chris

我在XP好像也遇過這樣的情形
但我卻是在中文目錄底下發生的

不過據你這麼說，你的情況與我不同
詳細的原因我也不太清楚，抱歉了</description>
		<content:encoded><![CDATA[<p>嗨 Chris</p>
<p>我在XP好像也遇過這樣的情形<br />
但我卻是在中文目錄底下發生的</p>
<p>不過據你這麼說，你的情況與我不同<br />
詳細的原因我也不太清楚，抱歉了</p>
]]></content:encoded>
	</item>
</channel>
</rss>

