<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>Ace メモ・備忘録 Blog</title>
  <link>https://acepg.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="https://acepg.blog.shinobi.jp/RSS/" />
  <description>メモ、備忘録、その他雑記を記載します。
ただし、このＨＰに記載している情報を利用した結果 損失・損害等が発生したとしても筆者は責任を持ちません。
</description>
  <lastBuildDate>Fri, 26 Jul 2013 13:37:52 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>STL std::stringの文字列の抽出(substr())</title>
    <description>
    <![CDATA[<div>STLのstringでsubstr()を使って文字列を抽出するサンプルです。<br />
※環境<br />
　WindowsXP sp3<br />
　VC6.0 sp6</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>#include &lt;stdio.h&gt;</div>
<div>#include &lt;string&gt;</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>int main()</div>
<div>{</div>
<div>&nbsp; &nbsp; std::string str;</div>
<div>&nbsp; &nbsp; std::string strRet;</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div>&nbsp; &nbsp; str = "1234567890";</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div>&nbsp; &nbsp; strRet = str.substr(1);</div>
<div>&nbsp; &nbsp; printf("str &nbsp; &nbsp;= \"%s\"\n", str.c_str());</div>
<div>&nbsp; &nbsp; printf("strRet = \"%s\"\n", strRet.c_str());</div>
<div>&nbsp; &nbsp; printf("\n");</div>
<div>
<div>&nbsp; &nbsp;&nbsp;// 実行結果</div>
<div>&nbsp; &nbsp;&nbsp;// str &nbsp; &nbsp;= "1234567890"</div>
<div>&nbsp; &nbsp;&nbsp;// strRet = "234567890"</div>
</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>&nbsp; &nbsp; strRet = str.substr(2, 3);</div>
<div>&nbsp; &nbsp; printf("str &nbsp; &nbsp;= \"%s\"\n", str.c_str());</div>
<div>&nbsp; &nbsp; printf("strRet = \"%s\"\n", strRet.c_str());</div>
<div>&nbsp; &nbsp; printf("\n");</div>
<div>&nbsp; &nbsp;&nbsp;// 実行結果</div>
<div>&nbsp; &nbsp;&nbsp;// str &nbsp; &nbsp;= "1234567890"</div>
<div>&nbsp; &nbsp;&nbsp;// strRet = "345"</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>
<div>&nbsp; &nbsp; // ！！！以下は実行時エラーが発生！！！</div>
<div>&nbsp; &nbsp; // strRet = str.substr(100);</div>
<div>&nbsp; &nbsp; // printf("str &nbsp; &nbsp;= \"%s\"\n", str.c_str());</div>
<div>&nbsp; &nbsp; // printf("strRet = \"%s\"\n", strRet.c_str());</div>
<div>&nbsp; &nbsp; // printf("\n");</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>&nbsp; &nbsp; getchar();</div>
<div>
<div>&nbsp; &nbsp;&nbsp;</div>
</div>
<div>&nbsp; &nbsp; return 0;</div>
<div>}</div>
<div>　</div>
<div></div>
<div></div>
</div>]]>
    </description>
    <category>C/C++</category>
    <link>https://acepg.blog.shinobi.jp/c--/stl%20std--string%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E6%8A%BD%E5%87%BA-substr---</link>
    <pubDate>Fri, 26 Jul 2013 13:37:51 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/59</guid>
  </item>
    <item>
    <title>[GetPointColor]デスクトップの色を取得</title>
    <description>
    <![CDATA[フリーソフトの紹介です。<br />
<br />
名前：GetPointColor<br />
機能：デスクトップで、マウスをドラッグしている位置の色を取得します。<br />
　　　※おまけの機能で、マウスの座標を表示するようにしました。<br />
<a href="//acepg.blog.shinobi.jp/File/GetPointColor.png" title="" target="_blank"><img alt="" src="//acepg.blog.shinobi.jp/Img/1373760282/" /></a><br />
　図：Windowsのカラーパレットの色を取得<br />
<br />
HP作成支援などにどうぞ。<br />
<br />
ダウンロードはこちらから。<br />
　<a href="http://www42.tok2.com/home/gimmegifts/pcx_soft/index.html#GetPointColor">GetPointColor<br />
</a>　<br />
]]>
    </description>
    <category>未選択</category>
    <link>https://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-getpointcolor-%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E3%81%AE%E8%89%B2%E3%82%92%E5%8F%96%E5%BE%97</link>
    <pubDate>Sun, 14 Jul 2013 00:09:51 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/58</guid>
  </item>
    <item>
    <title>メモ　MTVX2005USBを起動すると初期化に失敗しましたと表示される</title>
    <description>
    <![CDATA[ちょっとした用事で地上アナログ波（デジタルでなく）をキャプチャする必要があった為、現時点で地上アナログ波をキャプチャする方法を検討してみる。<br />
<br />
現在店頭に並んでいるTVキャプチャユニットはほぼすべて地上デジタル専用になっており、地上アナログキャプチャができない。<br />
<br />
手元にMTVX2005USBがあるのだが、いつからか、起動すると初期化に失敗しましたとエラーが表示されTVモードが使用できなくなってしまっていた。捨てようかと半ばあきらめていたが、一念発起し悪あがきしたところ、以下の方法によりエラーが出なくなり、TVモードで視聴ができるようになったのでその方法を記録しておく。<br />
<br />
<span class="lh120">　1.「FEATHER2005&rarr;FEATHER2005 V2アップデータ」をインストールする。</span><br />
<span class="lh120">　　　この時点でFeatherを起動すると、初期化に失敗しましたと表示されTVモードが使用できない。<br />
　<br />
　2.再度、「FEATHER2005&rarr;FEATHER2005 V2アップデータ」をインストールする。（修復）</span><br />
　　　インストール途中で、なぜかCDライティングソフト「NERO」関連プログラムの<br />
　　　インストールが始まる。ウィザードに従い、OK、OKと進めていく。<br />
　　　インストールが完了すると、TVモードが使用可能になっていた。<br />
<br />
<br />
追記<br />
MTVX2005USBで録画したファイルの拡張子が<br />
「m2d」となり、再生ができない現象が発生した。<br />
　エラーメッセージ<br />
　"(録画したファイル名)"<br />
　再生に失敗しました。<br />
<br />
ググったところ、以下の情報を見つけた為<br />
記録しておく。<br />
<a href="http://lene.blog4.fc2.com/blog-date-200508.html">http://lene.blog4.fc2.com/blog-date-200508.html</a><br />
<a href="http://blog-imgs-18.fc2.com/l/e/n/lene/m2dconv.zip.mp3" target="_blank">m2dconv.zip</a>
<script type="text/javascript">google_ad_client = "ca-pub-7965862503002014";
/* 広告 */
google_ad_slot = "3695350487";
google_ad_width = 728;
google_ad_height = 90;</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>]]>
    </description>
    <category>未選択</category>
    <link>https://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%83%A1%E3%83%A2%E3%80%80mtvx2005usb%E3%82%92%E8%B5%B7%E5%8B%95%E3%81%99%E3%82%8B%E3%81%A8%E5%88%9D%E6%9C%9F%E5%8C%96%E3%81%AB%E5%A4%B1%E6%95%97</link>
    <pubDate>Tue, 02 Jul 2013 00:38:21 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/15</guid>
  </item>
    <item>
    <title>目次</title>
    <description>
    <![CDATA[目次　(随時更新)<br />
<br />
[フリーソフト]<br />
・<a href="http://acepg.blog.shinobi.jp/%E6%9C%AA%E9%81%B8%E6%8A%9E/-getpointcolor-%E3%83%87%E3%82%B9%E3%82%AF%E3%83%88%E3%83%83%E3%83%97%E3%81%AE%E8%89%B2%E3%82%92%E5%8F%96%E5%BE%97">GetPointColor　デスクトップの色を取得</a><br />
<br />
<br />
[java]<br />
・<a href="http://acepg.blog.shinobi.jp/java/-java-socket%E9%80%9A%E4%BF%A1%20%E3%82%B5%E3%83%BC%E3%83%90%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB">socket通信 サーバサンプル</a><br />
・<a href="http://acepg.blog.shinobi.jp/java/-java-socket%E9%80%9A%E4%BF%A1%20%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB">socket通信 クライアントサンプル</a><br />
・<a href="http://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0">ライフゲーム</a><br />
<br />
<br />
[linux]<br />
・<a href="http://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint">WinXPの代わりのOSを探してLinux Mint14に辿り着いた</a><br />
<br />
<br />
[C/C++]<br />
・<a href="http://acepg.blog.shinobi.jp/c--/-c---%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B5%E3%82%A4%E3%82%BA%E5%8F%96%E5%BE%97">ファイルサイズ取得</a><br />
・<a href="http://acepg.blog.shinobi.jp/c--/-c-c---%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%8B%E3%82%891%E8%A1%8C%E8%AA%AD%E8%BE%BC-std-">テキストファイルから1行読込(std::getline)<br />
</a>・<a href="http://acepg.blog.shinobi.jp/c--/-c-c---%E3%83%90%E3%82%A4%E3%83%8A%E3%83%AA%E3%83%87%E3%83%BC%E3%82%BFread-write">バイナリデータRead/Write</a><br />
<br />
　MFC<br />
・<a href="http://acepg.blog.shinobi.jp/vc/-vc-%E6%8E%92%E4%BB%96%E5%88%B6%E5%BE%A1-cmutex%E3%81%AA%E3%81%A9-">排他制御(CMutexなど)<br />
</a>・<a href="http://acepg.blog.shinobi.jp/vc/-vc-clistctrl%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95">CListCtrl使用方法</a><br />
・<a href="http://acepg.blog.shinobi.jp/vc/dll%E4%BD%9C%E6%88%90%E6%96%B9%E6%B3%95">DLL作成方法</a><br />
<br />
　STL<br />
・<a href="http://acepg.blog.shinobi.jp/c--/-c---stl%20std--string%E3%81%AE%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88">STL std::stringのフォーマット<br />
</a>・<a href="http://acepg.blog.shinobi.jp/c--/stl%20std--string%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E6%8A%BD%E5%87%BA-substr---" title="">STL std::stringの文字列の抽出(substr())</a><br />
・<a href="http://acepg.blog.shinobi.jp/c--/-c---stl%20map">STL map<br />
<br />
</a>]]>
    </description>
    <category>目次</category>
    <link>https://acepg.blog.shinobi.jp/%E7%9B%AE%E6%AC%A1/%E7%9B%AE%E6%AC%A1</link>
    <pubDate>Tue, 25 Jun 2013 15:05:10 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/57</guid>
  </item>
    <item>
    <title>[java]ライフゲーム</title>
    <description>
    <![CDATA[<div>ライフゲームにはまった。</div>
<div>ライフゲームとは、生物の生命の誕生、進化、淘汰などのプロセスを簡易的なモデルで再現したシミュレーションゲームのこと。<br />
<a href="//acepg.blog.shinobi.jp/File/7546ac5d.png" title="" target="_blank"><img alt="" src="//acepg.blog.shinobi.jp/Img/1374279948/" /></a><br />
<br />
※以下はライフゲームを取り上げたページ。</div>
<div>　Lifeゲームって、知っていますか？</div>
<div>　http://allabout.co.jp/gm/gc/80611/</div>
<div></div>
<div><br />
<br />
～　下に続く　～</div><br /><br /><a href="https://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>java</category>
    <link>https://acepg.blog.shinobi.jp/java/-java-%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0</link>
    <pubDate>Tue, 25 Jun 2013 14:54:19 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/56</guid>
  </item>
    <item>
    <title>[mac]iPhotoの自動起動を解除</title>
    <description>
    <![CDATA[<div>
	&nbsp;</div>
iPhoneをMacBookProに繋いだときに毎回iPhotoが起動し、<br />
本来したいこと(プログラム転送)をするのに時間が掛かったので、<br />
それを解除する方法のメモ。<br />
<div>
	&nbsp;</div>
<div>
	～　下に続く　～</div>
<br /><a href="https://acepg.blog.shinobi.jp/mac/-mac-iphoto%E3%81%AE%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E3%82%92%E8%A7%A3%E9%99%A4" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>Mac</category>
    <link>https://acepg.blog.shinobi.jp/mac/-mac-iphoto%E3%81%AE%E8%87%AA%E5%8B%95%E8%B5%B7%E5%8B%95%E3%82%92%E8%A7%A3%E9%99%A4</link>
    <pubDate>Tue, 18 Jun 2013 11:03:35 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/55</guid>
  </item>
    <item>
    <title>WinXPの代わりのOSを探してLinux Mint14に辿り着いた</title>
    <description>
    <![CDATA[<div>
<div>
<div>WinXPのサポートが2014/04/09に切れることと、<br />
手元にあるWinXPの中古PCを有効利用することを考えた。<br />
WinXP以外のOSでWinXP(クラシックモード)にできるだけ<br />
近い状態で使える方法はないかと探し、「Linux Mint14」に<br />
辿り着いた。<br />
<br />
以下、その時のメモ。<br />
&nbsp;</div>
</div>
<div>・見た目をWinXP(クラシックモード)っぽくするには<br />
・WinXPで使っていたソフトの代わりを検討<br />
・etc..<br />
&nbsp;</div>
</div>
～　下に続く　～<br /><br /><a href="https://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint" target="_blank">つづきはこちら</a>]]>
    </description>
    <category>linux</category>
    <link>https://acepg.blog.shinobi.jp/linux/winxp%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AEos%E3%82%92%E6%8E%A2%E3%81%97%E3%81%A6linux%20mint</link>
    <pubDate>Sat, 15 Jun 2013 23:33:11 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/54</guid>
  </item>
    <item>
    <title>[C/C++]16進文字列を数値に変換</title>
    <description>
    <![CDATA[strtol(),strtoul()を使用する。<br />
<br />
例<br />
<div>
	ULONG ul = 0;</div>
<div>
	ul = strtoul(&quot;64&quot;, NULL, 16);</div>
<div>
	<br />
	// これで ul には 0x64 (つまり100) が入る<br />
	&nbsp;</div>
]]>
    </description>
    <category>C/C++</category>
    <link>https://acepg.blog.shinobi.jp/c--/-c-c---16%E9%80%B2%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E6%95%B0%E5%80%A4%E3%81%AB%E5%A4%89%E6%8F%9B</link>
    <pubDate>Sat, 03 Mar 2012 15:46:59 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/53</guid>
  </item>
    <item>
    <title>[C++]STL for_each文を作ってみた</title>
    <description>
    <![CDATA[<div>
	#include &lt;stdio.h&gt;</div>
<div>
	#include &lt;list&gt;</div>
<div>
	&nbsp;</div>
<div>
	#define for_each(it, con)<span class="Apple-tab-span" style="white-space:pre"> </span>for (it = con.begin(); it != con.end(); it++)</div>
<div>
	#define LIST_INT<span class="Apple-tab-span" style="white-space:pre"> </span>std::list&lt;int&gt;</div>
<div>
	&nbsp;</div>
<div>
	int main()</div>
<div>
	{</div>
<div>
	LIST_INT lstInt;</div>
<div>
	LIST_INT::iterator it;</div>
<div>
	&nbsp;</div>
<div>
	lstInt.push_back(1);</div>
<div>
	lstInt.push_back(4);</div>
<div>
	lstInt.push_back(7);</div>
<div>
	&nbsp;</div>
<div>
	for_each (it, lstInt) {</div>
<div>
	printf(&quot;%d\n&quot;, *it);</div>
<div>
	}</div>
<div>
	&nbsp;</div>
<div>
	getchar();</div>
<div>
	return 0;</div>
<div>
	}</div>
<div>
	<br />
	<br />
	// 処理結果<br />
	1<br />
	4<br />
	7<br />
	&nbsp;</div>
]]>
    </description>
    <category>C/C++</category>
    <link>https://acepg.blog.shinobi.jp/c--/-c---stl%20for_each%E6%96%87%E3%82%92%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F</link>
    <pubDate>Mon, 20 Feb 2012 13:15:31 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/52</guid>
  </item>
    <item>
    <title>[C++]STL std::stringのフォーマット</title>
    <description>
    <![CDATA[<div>
	#include &lt;string&gt;</div>
<div>
	#include &lt;sstream&gt;</div>
<div>
	#include &lt;iomanip&gt;<span class="Apple-tab-span" style="white-space:pre"> </span>// setfill, setwなどのフォーマット指定<br />
	<br />
	&nbsp;</div>
<div>
	std::string str;</div>
<div>
	std::ostringstream stream;</div>
<div>
	&nbsp;</div>
<div>
	stream.str(&quot;&quot;);</div>
<div>
	stream &lt;&lt; &quot;[0x&quot;</div>
<div>
	&nbsp; &lt;&lt; std::setfill(&#39;0&#39;)<span class="Apple-tab-span" style="white-space:pre"> </span>// &#39;0&#39;埋め</div>
<div>
	&nbsp; &lt;&lt; std::setw(8)<span class="Apple-tab-span" style="white-space:pre"> </span>// &nbsp;8桁</div>
<div>
	&nbsp; &lt;&lt; std::hex<span class="Apple-tab-span" style="white-space:pre"> </span>// &nbsp;16進</div>
<div>
	&nbsp; &lt;&lt; 100<span class="Apple-tab-span" style="white-space:pre"> </span>// &nbsp;100</div>
<div>
	&nbsp; &lt;&lt; &quot;]&quot;;</div>
<div>
	str = stream.str();</div>
<div>
	printf(&quot;%s&quot;, str.c_str());<br />
	<br />
	<br />
	// 表示結果<br />
	[0x00000064]<br />
	&nbsp;</div>
]]>
    </description>
    <category>C/C++</category>
    <link>https://acepg.blog.shinobi.jp/c--/-c---stl%20std--string%E3%81%AE%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88</link>
    <pubDate>Sat, 11 Feb 2012 02:29:03 GMT</pubDate>
    <guid isPermaLink="false">acepg.blog.shinobi.jp://entry/51</guid>
  </item>

    </channel>
</rss>