<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4217377140896614879</id><updated>2024-10-25T06:12:04.801+09:00</updated><title type='text'>マイコン</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>65</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-6604911539773727822</id><published>2016-04-17T22:04:00.001+09:00</published><updated>2016-04-17T22:04:21.859+09:00</updated><title type='text'>XAMPP-5.6.19 で mysql root パスワード設定方法 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
XAMPP Control Panel の Shell ボタンを押し以下を入力します。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mysqladmin --user=root password &quot;****&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (****は任意のパスワード）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
次に、xampp/phpMyAdmin/config.inc.php を以下のように変更します。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $cfg[&#39;Servers&#39;][$i][&#39;password&#39;] = &#39;&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ↓&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $cfg[&#39;Servers&#39;][$i][&#39;password&#39;] = &#39;****&#39;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;  (****は任意のパスワード）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
以上で root のパスワードは設定されたはずなので phpmyadmin を起動してみましょう。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; http://localhost/phpmyadmin/ をブラウザ入力して問題なく見れたらOKです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/6604911539773727822/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/6604911539773727822?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6604911539773727822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6604911539773727822'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2016/04/xampp-5619-mysql-root.html' title='XAMPP-5.6.19 で mysql root パスワード設定方法 '/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-2301493713909815272</id><published>2016-04-17T15:40:00.002+09:00</published><updated>2016-04-17T15:40:31.524+09:00</updated><title type='text'>AVR ブートプログラムのリンカー設定方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Atmel Studio AVR bootloader &lt;br /&gt;
CPU : ATxmega256A3BU&lt;br /&gt;
&lt;br /&gt;
ブートプログラムを自作する場合、生成されるHEXファイルは&lt;br /&gt;
ブート部に書込むようにしねければなりません。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ブートプログラム用のリンカー設定方法を　ATxmega256A3BU を例に示します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Atmel Studio の [Project]メニューの[＊＊Properties]を開き以下を設定します。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [Toolchain]-&amp;gt;[AVR/GNU Linker]-&amp;gt;[Memory Settings]-&amp;gt;[FLASH segment]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [Add Item]（緑十字アイコン）をクリックし以下を入力します。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; .text=0x20000&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ATxmega256A3BU のブート部は 0x40000 ですが&amp;nbsp;.text=0x20000 になることに注意しましょう。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/2301493713909815272/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/2301493713909815272?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2301493713909815272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2301493713909815272'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2016/04/avr.html' title='AVR ブートプログラムのリンカー設定方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-4478976280889462818</id><published>2016-04-17T15:40:00.000+09:00</published><updated>2016-04-17T15:40:10.458+09:00</updated><title type='text'>XAMPP-5.6.19 で xdebug を有効にする方法 </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;xampp-win32-5.6.19-0-VC11-installer&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;php.ini に以下を追記します。 &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;[XDebug]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;zend_extension&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;C:\xampp\php\ext\php_xdebug.dll&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;xdebug.remote_enable&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;xdebug.remote_handler&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;dbgp&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;xdebug.remote_host&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;127.0.0.1&quot;&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;xdebug.remote_port&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;9000&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;s&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;s&quot;&gt;XAMPPの再設定のとき苦労したのでメモしました。&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;s&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/4478976280889462818/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/4478976280889462818?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4478976280889462818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4478976280889462818'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2016/04/xampp-5619-xdebug.html' title='XAMPP-5.6.19 で xdebug を有効にする方法 '/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-6452658293285997125</id><published>2016-01-07T10:51:00.000+09:00</published><updated>2016-01-07T10:51:16.394+09:00</updated><title type='text'>MFC VC++6.0 シリアル通信の注意点</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MFC VC++6.0 シリアル通信の注意点&lt;br /&gt;
&lt;br /&gt;
シリアル通信を行う場合の注意点は以下です。&lt;br /&gt;
&lt;br /&gt;
・COMナンバーに￥￥￥￥.￥￥を付加する&lt;br /&gt;
&amp;nbsp; &amp;nbsp; (COM1～9なら￥￥￥￥.￥￥を付加しなくても問題なくオープンします)&lt;br /&gt;
&lt;br /&gt;
・CreateFileAを使ってCOMオープン&lt;br /&gt;
&amp;nbsp; &amp;nbsp; (VC++上位互換を意識しないのならCreateFileでもオープンします)&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
bool Open(int ComNum, int baudrate, BYTE parity, BYTE stopbit )&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// シリアルポートを開く&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;char szSerial[256];&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;sprintf( szSerial, &quot;￥￥￥￥.￥￥COM%d&quot;, ComNum);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// ■￥￥￥￥.￥￥を付加する&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if( NowCom != 0 ){&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;// すでにオープンのとき&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;Close( NowCom );&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Shandle = CreateFileA(&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;// ■CreateFileAを使ってCOMオープン&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; szSerial,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GENERIC_READ | GENERIC_WRITE,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OPEN_EXISTING,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILE_ATTRIBUTE_NORMAL,&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// 非同期モード : 受信してなくても戻る&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if( Shandle == INVALID_HANDLE_VALUE) {&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// COMオープンできなかったとき&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Shandle = NULL;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;NowCom = 0;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return FALSE;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;NowCom = ComNum;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;// COM確定&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;HandleAry[NowCom] = Shandle;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;// ハンドル登録&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if( !InitDCB( baudrate, parity, stopbit ) ){&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// DCB構造体の初期化に失敗したとき&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return FALSE;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if( !InitCommTimeOuts() ){&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// COMタイムアウト構造体設定に失敗したとき&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return FALSE;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return TRUE;&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/6452658293285997125/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/6452658293285997125?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6452658293285997125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6452658293285997125'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2016/01/mfc-vc60.html' title='MFC VC++6.0 シリアル通信の注意点'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-2798019046415277743</id><published>2015-11-16T16:13:00.000+09:00</published><updated>2015-11-16T16:13:21.204+09:00</updated><title type='text'>MFCマルチスレッド作成方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MFCでマルチスレッドを作成する方法をよく忘れてしまいます。&lt;br /&gt;
毎回調べるのが面倒なので記述しておきます。&lt;br /&gt;
(Visual Studio 6.0版)&lt;br /&gt;
&lt;br /&gt;
（１）Thread_smpDlg.cpp : OnInitDialog() の中に追加する&lt;br /&gt;
&lt;br /&gt;
BOOL CThread_smpDlg::OnInitDialog()&lt;br /&gt;
{&lt;br /&gt;
～&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// TODO: 特別な初期化を行う時はこの場所に追加してください。&lt;br /&gt;
// ■↓ここから追加&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ThreadInit();&lt;br /&gt;
&amp;nbsp;// ■↑ここまで&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;return TRUE; &amp;nbsp;// TRUE を返すとコントロールに設定したフォーカスは失われません。&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
（２）Thread_smpDlg.h : の protected: の下に追加する&lt;br /&gt;
&lt;br /&gt;
protected:&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;HICON m_hIcon;&lt;br /&gt;
～&lt;br /&gt;
// ■↓ここから追加&lt;br /&gt;
private:&lt;br /&gt;
//-----------------------------&lt;br /&gt;
// テーブル宣言&lt;br /&gt;
//-----------------------------&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;HANDLE m_hEventStop;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CWinThread* m_pThread;&lt;br /&gt;
&lt;br /&gt;
//-----------------------------&lt;br /&gt;
// スレッドエントリー&lt;br /&gt;
//-----------------------------&lt;br /&gt;
static UINT ThreadEntry(LPVOID pParam)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; CThread_smpDlg* pHogeHoge = (CThread_smpDlg*)pParam;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// 自オブジェクトの取得&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return pHogeHoge-&amp;gt;ThreadProc();&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// スレッド処理&lt;br /&gt;
}&lt;br /&gt;
//-----------------------------&lt;br /&gt;
// スレッド処理&lt;br /&gt;
//-----------------------------&lt;br /&gt;
UINT ThreadProc(void)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // 終了イベントがセットされるまでループ&lt;br /&gt;
&amp;nbsp; &amp;nbsp; while ( ::WaitForSingleObject(m_hEventStop, 0) == WAIT_TIMEOUT )&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// ■ここに処理を書く&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
}&lt;br /&gt;
//-----------------------------&lt;br /&gt;
// スレッド初期化&lt;br /&gt;
// OnInitDialog() からコールする&lt;br /&gt;
//-----------------------------&lt;br /&gt;
void ThreadInit()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_hEventStop = ::CreateEvent(NULL, TRUE, FALSE, NULL);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_pThread = NULL; // スレッドオブジェクトのポインタクリア&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ASSERT(m_pThread == NULL);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // サスペンド状態でスレッドを作成&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_pThread = ::AfxBeginThread(ThreadEntry, (LPVOID)this,&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED, NULL);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_pThread-&amp;gt;m_bAutoDelete = FALSE;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// 自動破棄フラグクリア&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_pThread-&amp;gt;ResumeThread();&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// サスペンド解除&lt;br /&gt;
}&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;// ■↑ここまで&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/2798019046415277743/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/2798019046415277743?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2798019046415277743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2798019046415277743'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/11/mfc.html' title='MFCマルチスレッド作成方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-8320561723273445933</id><published>2015-06-20T00:51:00.003+09:00</published><updated>2015-06-20T00:51:39.210+09:00</updated><title type='text'>AVR ブートプログラム用のリンカー設定方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Atmel Studio AVR bootloader&lt;br /&gt;CPU : ATxmega256A3BU&lt;br /&gt;&lt;br /&gt;ブートプログラムを自作する場合、生成されるHEXファイルは&lt;br /&gt;ブート部に書込むようにしねければなりません。 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ブートプログラム用のリンカー設定方法を　ATxmega256A3BU を例に示します。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Atmel Studio の [Project]メニューの[＊＊Properties]を開き以下を設定します。&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Toolchain]-&amp;gt;[AVR/GNU Linker]-&amp;gt;[Memory Settings]-&amp;gt;[FLASH segment]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Add Item]（緑十字アイコン）をクリックし以下を入力します。&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .text=0x20000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ATxmega256A3BU のブート部は 0x40000 ですが .text=0x20000 になることに注意しましょう。&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/8320561723273445933/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/8320561723273445933?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8320561723273445933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8320561723273445933'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/06/avr_20.html' title='AVR ブートプログラム用のリンカー設定方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-4192953760514981763</id><published>2015-06-05T14:26:00.002+09:00</published><updated>2015-06-05T14:26:28.266+09:00</updated><title type='text'>テキストボックスを軽くする方法 (C#,C++/CLI)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
シリアル通信プログラムなどで受信内容をテキストボックスに表示するとき&lt;br /&gt;
appendText を使うと 20,000 バイトくらいから表示がかなり重くなります。&lt;br /&gt;
&lt;br /&gt;
テキストボックスを軽くする方法は、プロパティで以下に設定すると軽くなります。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;WordWrap = False&lt;br /&gt;
&lt;br /&gt;
簡単ですね。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/4192953760514981763/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/4192953760514981763?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4192953760514981763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4192953760514981763'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/06/cccli.html' title='テキストボックスを軽くする方法 (C#,C++/CLI)'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-4443884423430782451</id><published>2015-05-14T11:10:00.001+09:00</published><updated>2015-05-14T11:11:09.530+09:00</updated><title type='text'>「GDI+ で汎用エラーが発生しました。」回避方法 (C++/CLI)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
以下のプログラムではエラーが発生します。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Bitmap^ b1 = gcnew Bitmap(&quot;C:\\tmp.png&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Bitmap^ b2 = gcnew Bitmap(b1-&amp;gt;Width, b1-&amp;gt;Height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Graphics^ g = Graphics::FromImage(b2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;g-&amp;gt;DrawImage(b1, 0, 0, b1-&amp;gt;Width, b1-&amp;gt;Height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b2-&amp;gt;Save(&quot;C:\\tmp.png&quot;, System::Drawing::Imaging::ImageFormat::Png);&lt;br /&gt;
&lt;br /&gt;
原因は、同一ファイル名でセーブしようしましたが、b1 がファイルオープンのままになっているからです。&lt;br /&gt;
&lt;br /&gt;
b1 を解放すればエラーは回避できます。&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Bitmap^ b1 = gcnew Bitmap(&quot;C:\\tmp.png&quot;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Bitmap^ b2 = gcnew Bitmap(b1-&amp;gt;Width, b1-&amp;gt;Height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Graphics^ g = Graphics::FromImage(b2);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;g-&amp;gt;DrawImage(b1, 0, 0, b1-&amp;gt;Width, b1-&amp;gt;Height);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;delete b1;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;b2-&amp;gt;Save(&quot;C:\\tmp.png&quot;, System::Drawing::Imaging::ImageFormat::Png);&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/4443884423430782451/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/4443884423430782451?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4443884423430782451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4443884423430782451'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/05/gdi-ccli.html' title='「GDI+ で汎用エラーが発生しました。」回避方法 (C++/CLI)'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-728003979229401777</id><published>2015-04-04T09:43:00.003+09:00</published><updated>2015-04-04T09:43:41.779+09:00</updated><title type='text'>ローカル環境にアクセスすると、ダウンロード画面になってしまう。</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
xampp の htdocsフォルダのファイルをいろいろ修正しているうちに localhost の php が起動しなくなり毎回ダウンロード画面の表示が出るようになってしまいました。&lt;br /&gt;
&lt;br /&gt;
php だけではなく http://localhost/index.html もダメでダウンロード画面が出ます。&lt;br /&gt;
&lt;br /&gt;
しかしなぜか、http;//localhost/phpmyadmin/ は正常に起動しました。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
やったことを思い出していろいろ試してみると治りました。&lt;br /&gt;
&lt;br /&gt;
どうやら htdocs にある .htaccess が悪さをしていたようです。&lt;br /&gt;
&lt;br /&gt;
ファイル名を a.htaccess などに変更すると php が正常に起動するようになりました。&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/728003979229401777/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/728003979229401777?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/728003979229401777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/728003979229401777'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/04/blog-post.html' title='ローカル環境にアクセスすると、ダウンロード画面になってしまう。'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-8847032780387690661</id><published>2015-03-09T14:07:00.002+09:00</published><updated>2015-03-09T14:07:30.301+09:00</updated><title type='text'>VC++2005 で C言語ｿｰｽをｺﾝﾊﾟｲﾙする方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
VC++2005 で C言語ｿｰｽをｺﾝﾊﾟｲﾙする方法&lt;br /&gt;
&lt;br /&gt;
C言語のﾌﾟﾛｸﾞﾗﾑをﾃﾞﾊﾞｯｸしたいけど実機やﾃﾞﾊﾞｯｶｰが無かったりしてﾃﾞﾊﾞｯｸできないことあります。&lt;br /&gt;
VC++6.0であれば以下の①を行うとｺﾝﾊﾟｲﾙが通るのですが VC++2005だとｺﾝﾊﾟｲﾙが通りませんでした。&lt;br /&gt;
しかし、②を行えばｺﾝﾊﾟｲﾙできるようになりました。&lt;br /&gt;
&lt;br /&gt;
①ﾌﾟﾘｺﾝﾊﾟｲﾙ済みﾍｯﾀﾞｰの作成/使用 -&amp;gt; ﾌﾟﾘｺﾝﾊﾟｲﾙ済みﾍｯﾀﾞｰを使用しない&lt;br /&gt;
&lt;br /&gt;
②C言語のｿｰｽは、拡張子を[.h]にし、 namespace と extern &quot;C&quot; を追加する。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
例）ﾌﾟﾛｼﾞｪｸﾄ名 &quot;Mypro&quot; とし、Form に button1 と textbox1 を配置し、&lt;br /&gt;
&amp;nbsp; button1 をｸﾘｯｸすると C言語のｿｰｽである sample.h でｾｯﾄした文字列を textbox に表示するというﾌﾟﾛｸﾞﾗﾑです。&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
[ sample.h ]&lt;br /&gt;
--------------------------&lt;br /&gt;
namespace Mypro { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // namespace を追加( Mypro はﾌﾟﾛｼﾞｪｸﾄ名 )&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; extern &quot;C&quot; { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// extern &quot;C&quot; を追加&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; char abab[] = &quot;aaaa&quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; char* sub(){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; return (char*)&amp;amp;abab;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
--------------------------&lt;br /&gt;
[ Form1.h の抜粋 ]&lt;br /&gt;
--------------------------&lt;br /&gt;
&amp;nbsp; private: System::Void button1_Click(System::Object^ &amp;nbsp;sender, System::EventArgs^ &amp;nbsp;e) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; char* buf = sub();&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; this-&amp;gt;textBox1-&amp;gt;Text = System::Runtime::InteropServices::Marshal::PtrToStringAnsi((IntPtr)buf);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/8847032780387690661/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/8847032780387690661?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8847032780387690661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8847032780387690661'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2015/03/vc2005-c.html' title='VC++2005 で C言語ｿｰｽをｺﾝﾊﾟｲﾙする方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-8346940881867056566</id><published>2013-09-11T23:17:00.003+09:00</published><updated>2013-09-12T19:40:07.721+09:00</updated><title type='text'>sponsorship　の削除方法</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
１．[スタート] ボタンをクリックして、[すべてのプログラム] をクリックし、[アクセサリ]、[システム ツール] を順にポイントして、[タスク] をクリックし、「At1」を削除します。&lt;br /&gt;
&lt;br /&gt;
２．[C]\[Documents and Settings]\[ユーザディレクトリ]\[Application Data]フォルダにある [DSite]フォルダを削除します。&lt;br /&gt;
&lt;br /&gt;
これで　sponsorship　削除完了です。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/8346940881867056566/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/8346940881867056566?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8346940881867056566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8346940881867056566'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2013/09/sponsorship.html' title='sponsorship　の削除方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-1525797531964237841</id><published>2013-09-10T16:37:00.000+09:00</published><updated>2013-09-10T16:37:04.480+09:00</updated><title type='text'>AVR Studio6 で Build すると コンパイルエラーが出る</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
AVR Studio5 で作ったプロジェクトを AVR Studio6 で Build すると、以下のエラーが出ます。&lt;br /&gt;
&lt;br /&gt;
variable &#39;lun2_name&#39; must be const in order to be put into read-only section by means of &#39;__attribute__((progmem))&#39;&lt;br /&gt;
&lt;br /&gt;
【解決方法】&lt;br /&gt;
&quot;code&quot; で宣言しているところを &quot;const&quot; に書き換えると Build に成功します。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/1525797531964237841/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/1525797531964237841?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1525797531964237841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1525797531964237841'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2013/09/avr-studio6-build.html' title='AVR Studio6 で Build すると コンパイルエラーが出る'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-4695243319541899033</id><published>2013-06-07T09:59:00.000+09:00</published><updated>2013-06-07T10:00:46.351+09:00</updated><title type='text'>ＩＥでグラデーションを使う方法（ border も正常に表示させたい方法）</title><content type='html'>ＩＥでグラデーションを設定するにはＣＳＳに以下を記述します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
例）white と cornsilk の２色でグラデーションの場合&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=white, endColorStr=cornsilk, GradientType=0);&lt;br /&gt;
&amp;nbsp; -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=white,endColorstr=cornsilk, GradientType=0);&lt;br /&gt;
&amp;nbsp; zoom:1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
しかし、この方法では border が消えてしまうため、PIE.htc を利用してみる。&lt;br /&gt;
上記３行を次の２行に変更し、PIE.htc を htmlファイルと同一フォルダに入れておく。&lt;br /&gt;
（PIE.htc は無料で入手できるので探してください）&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
例）white と cornsilk の２色でグラデーションの場合&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; -pie-background: linear-gradient(white, cornsilk);&lt;br /&gt;
&amp;nbsp; behavior: url(PIE.htc);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
この方法を使っても border が表示されないときがありますが、&lt;br /&gt;
タグの記述より上にＣＳＳの定義を記述すればＯＫです。&lt;br /&gt;
（これに気付くのに１日ハマりました）&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/4695243319541899033/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/4695243319541899033?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4695243319541899033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/4695243319541899033'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2013/06/border.html' title='ＩＥでグラデーションを使う方法（ border も正常に表示させたい方法）'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-8206382967015163564</id><published>2012-06-02T15:20:00.004+09:00</published><updated>2012-06-02T15:23:19.275+09:00</updated><title type='text'>PHP セッション保持時間をアクセス毎に延長する方法</title><content type='html'>PHP セッション保持時間をアクセス毎に延長する方法&lt;br /&gt;
&lt;br /&gt;
アクセス毎に setExpirationSeconds() を実行するとセッションを延長できます。&lt;br /&gt;
（Zend を使用します）&lt;br /&gt;
&lt;br /&gt;
例）&lt;br /&gt;
$Namespace = new Zend_Session_Namespace(&#39;Default&#39;); // Zend_Session_Namespace インスタンス作成&lt;br /&gt;
$Namespace-&gt;setExpirationSeconds( 10 * 60 );  // セッションの保持期限( アクセス毎に10分延長 )</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/8206382967015163564/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/8206382967015163564?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8206382967015163564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8206382967015163564'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2012/06/blog-post.html' title='PHP セッション保持時間をアクセス毎に延長する方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-1097315719557685855</id><published>2012-04-26T09:19:00.002+09:00</published><updated>2012-05-10T11:09:36.343+09:00</updated><title type='text'>C# 2005 dataGridView でエラー</title><content type='html'>少し前まで問題なく動いていたプログラムが突然動かなくなりました。&lt;br /&gt;
&lt;br /&gt;
次の行でエラーが発生します。&lt;br /&gt;
&lt;br /&gt;
dataGridView1.Columns[0].Visible = false;&lt;br /&gt;
&lt;br /&gt;
もう少し探ってみると、ACCESS からテーブルをロードし、dataGridView に反映するときにエラーが発生していました。&lt;br /&gt;
&lt;br /&gt;
dAdp.Fill(dSet, &quot;DT&quot; + tableName);&lt;br /&gt;
&lt;br /&gt;
以下がエラーの内容です。&lt;br /&gt;
&lt;br /&gt;
{System.IO.FileNotFoundException: ファイルまたはアセンブリ &#39;System.EnterpriseServices.Wrapper.dll&#39;、またはその依存関係の 1 つが読み込めませんでした。指定されたファイルが見つかりません。&lt;br /&gt;
ファイル名 &#39;System.EnterpriseServices.&lt;br /&gt;
&lt;br /&gt;
■解決方法&lt;br /&gt;
コントロールパネルのプログラムの追加と削除から、&lt;br /&gt;
「Microsoft .NET Framework 3.5 SP1」の「変更と削除」ボタンを押して修復すると治りました。</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/1097315719557685855/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/1097315719557685855?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1097315719557685855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1097315719557685855'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2012/04/c-2005-datagridview.html' title='C# 2005 dataGridView でエラー'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-1746094531836728542</id><published>2011-06-17T16:55:00.004+09:00</published><updated>2011-06-17T21:24:10.434+09:00</updated><title type='text'>CORESERVER で 共有SSL にリダイレクトする方法(PHP)</title><content type='html'>CORESERVER で 共有SSL にリダイレクトする方法(PHP)&lt;br /&gt;例) http://default.com/ → https://ss1.coressl.jp/default.com/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CORESERVER で、共有SSL を設定する方法として&lt;br /&gt;.htaccess の RewriteRule で行う方法があります。&lt;br /&gt;&lt;br /&gt;RewriteEngine on &lt;br /&gt;RewriteRule ^(.*)$ https://ss1.coressl.jp/%{HTTP_HOST}%{REQUEST_URI}/ [L,R]&lt;br /&gt;&lt;br /&gt;しかし、ループエラーが発生して、どうしてもうまくいきませんでした。&lt;br /&gt;xampp ではうまく置換してくれるのに、coreserver ではダメです。&lt;br /&gt;&lt;br /&gt;原因ははっきりわかりませんが、サーバー側のドメイン名の置換のときにへんなループに陥っているような感じでしょうか・・・&lt;br /&gt;&lt;br /&gt;■そこで、meta タグの refresh でやってみました。&lt;br /&gt;&lt;br /&gt;  if( $_SERVER[&#39;SERVER_PROTOCOL&#39;] != &#39;HTTP/1.0&#39; ) { // http のとき&lt;br /&gt;    print &#39;＜meta http-equiv=&quot;refresh&quot; content=&quot;;URL=https://ss1.coressl.jp/default.com/&quot;＞&#39;;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;これだとうまくいきました。&lt;br /&gt;&lt;br /&gt;補足説明：＜HTML＞の＜META＞タグを PHP で動的に書き換えています。&lt;br /&gt;http・・・でアクセスしたときは、https・・・で refresh します。そして&lt;br /&gt;https・・・でアクセスしたときには、refresh しない仕組みにしておけばOKです。</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/1746094531836728542/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/1746094531836728542?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1746094531836728542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/1746094531836728542'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2011/06/coreserver-ssl-php.html' title='CORESERVER で 共有SSL にリダイレクトする方法(PHP)'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-3017581606819101282</id><published>2010-06-30T13:44:00.004+09:00</published><updated>2010-06-30T16:47:42.781+09:00</updated><title type='text'>coreserverのphpmyadminにログオンできない解決方法</title><content type='html'>coreserverのphpmyadminにログオンできない解決方法&lt;br /&gt;&lt;br /&gt;1.以下のサイトにてユーザー名とパスワードを新規で作成する&lt;br /&gt;http://www.chama.ne.jp/access/index.htm&lt;br /&gt;&lt;br /&gt;2. FTP で /public_html/log/.htpasswd の内容を 1.で作成した内容で上書きする&lt;br /&gt;&lt;br /&gt;これでログオンできるようになります。</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/3017581606819101282/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/3017581606819101282?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/3017581606819101282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/3017581606819101282'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2010/06/coreserverphpmyadmin.html' title='coreserverのphpmyadminにログオンできない解決方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-7347835888790109741</id><published>2009-10-16T19:05:00.000+09:00</published><updated>2009-10-16T19:06:40.797+09:00</updated><title type='text'>ｓｍａｒｔｙ　＆　ｐｅａｒ　インストール方法</title><content type='html'>■smartyインストール設定&lt;br /&gt;http://www.smarty.net/&lt;br /&gt;Smarty-2.6.26 をクリックしてダウンロードする&lt;br /&gt;&lt;br /&gt;libs以下の部分を&quot;smarty&quot;にフォルダ名を変更後、以下のように配置する&lt;br /&gt;C:\xampp\php\Smarty\&lt;br /&gt;&lt;br /&gt;■pearインストール&lt;br /&gt;1.DOSで、C:\xampp\php\ に入り go-pear&lt;br /&gt;2.以下を入力する&lt;br /&gt;  pear install pear_info&lt;br /&gt;3.続いて、以下を入力する&lt;br /&gt;  pear install MDB2&lt;br /&gt;  pear install MDB2_Driver_mysql&lt;br /&gt;  pear install -f HTTP_Session2&lt;br /&gt;  pear install -f -a HTTP_Client&lt;br /&gt;  pear install -f -a XML_Serializer</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/7347835888790109741/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/7347835888790109741?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/7347835888790109741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/7347835888790109741'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2009/10/blog-post.html' title='ｓｍａｒｔｙ　＆　ｐｅａｒ　インストール方法'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-5809280138977566400</id><published>2009-07-01T13:02:00.003+09:00</published><updated>2009-08-21T12:43:37.038+09:00</updated><title type='text'>PHPデバック環境</title><content type='html'>PHPデバック環境&lt;br /&gt;&lt;br /&gt;理想のPHPデバック環境が整いました。&lt;br /&gt;いろいろ試して、以下の環境が一番いいと思います。&lt;br /&gt;&lt;br /&gt;・XAMPP(無料)&lt;br /&gt;・Peggy for PHP(有料)&lt;br /&gt;・WindowsXP&lt;br /&gt;&lt;br /&gt;■特徴&lt;br /&gt;・環境を整えるのが非常に簡単。（何もない状態からサンプルプログラムでステップ実行するまで15分もかからない）&lt;br /&gt;・動作が速くストレスを感じない。&lt;br /&gt;・ステップ実行、ブレーク、変数ウォッチなどデバック機能が充実している。&lt;br /&gt;&lt;br /&gt;■手順&lt;br /&gt;１．XAMPPをインストールする。&lt;br /&gt;２．Peggy for PHPをインストールする。&lt;br /&gt;３．php.iniを以下のように変更する。&lt;br /&gt;(C:\xampp\php\php.ini)&lt;br /&gt;  [Zend]の1行目をコメントアウトする。&lt;br /&gt;  [XDebug]のコメントを取る。&lt;br /&gt;&lt;br /&gt;---------------------------------------------------&lt;br /&gt;[Zend]&lt;br /&gt;;zend_extension_ts = &quot;C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll&quot;&lt;br /&gt;zend_extension_manager.optimizer_ts = &quot;C:\xampp\php\zendOptimizer\lib\Optimizer&quot;&lt;br /&gt;zend_optimizer.enable_loader = 0&lt;br /&gt;zend_optimizer.optimization_level=15&lt;br /&gt;;zend_optimizer.license_path =&lt;br /&gt;; Local Variables:&lt;br /&gt;; tab-width: 4&lt;br /&gt;; End:&lt;br /&gt;&lt;br /&gt;[XDebug]&lt;br /&gt;;; Only Zend OR (!) XDebug&lt;br /&gt;zend_extension_ts=&quot;C:\xampp\php\ext\php_xdebug.dll&quot;&lt;br /&gt;xdebug.remote_enable=true&lt;br /&gt;xdebug.remote_host=127.0.0.1&lt;br /&gt;xdebug.remote_port=9000&lt;br /&gt;xdebug.remote_handler=dbgp&lt;br /&gt;xdebug.profiler_enable=1&lt;br /&gt;xdebug.profiler_output_dir=&quot;C:\xampp\tmp&quot;&lt;br /&gt;---------------------------------------------------&lt;br /&gt;&lt;br /&gt;４．XAMPPコントロールパネルより、Apacheを再起動する。&lt;br /&gt;５．Peggy for PHPを設定する。&lt;br /&gt;  ・[ﾂｰﾙ]-&gt;[ｵﾌﾟｼｮﾝ]で[ﾃﾞﾊﾞｯｸ]タブを選択する。&lt;br /&gt;  ・URLﾙｰﾄ : http://localhost&lt;br /&gt;  ・ﾛｰｶﾙﾙｰﾄ: C:\xampp\htdocs&lt;br /&gt;６.sampleをhtdocsにコピーする。&lt;br /&gt;  C:\Program Files\Anchor\Peggy\sample フォルダをコピーして&lt;br /&gt;  C:\xampp\htdocs\sample を作成する&lt;br /&gt;７．Peggy for PHPに album.php をドラッグ＆ドロップする。&lt;br /&gt;  (C:\xampp\htdocs\sample\album.php)&lt;br /&gt;８．Peggy for PHPの[ｽﾃｯﾌﾟｲﾝ]ボタンを押す。&lt;br /&gt;  ([ﾃﾞﾊﾞｯｸ]-&gt;[ｽﾃｯﾌﾟｲﾝ]でもOK)</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/5809280138977566400/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/5809280138977566400?isPopup=true' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/5809280138977566400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/5809280138977566400'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2009/07/php.html' title='PHPデバック環境'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-2530650316764321420</id><published>2008-10-08T16:36:00.004+09:00</published><updated>2008-10-08T16:40:32.087+09:00</updated><title type='text'>C#2005/2008 マネージ 線形リスト クラス</title><content type='html'>C#2005/2008 マネージ 線形リスト クラス&lt;br /&gt;&lt;br /&gt;マネージで線形リストが扱えるクラス(List.cs)を作りました。マネージでは new の代わりに gcnew を使用するため、関数のスコープが外れたときでも gcnew で確保した内容が消えないようにしなければなりません。&lt;br /&gt;以下は、線形リストで追加と削除ができるクラスです。先入れ先出のみの対応で、リストの真ん中に対して挿入・削除は対応しておりません。&lt;br /&gt;&lt;br /&gt;**** Form1.cs ****&lt;br /&gt;&lt;br /&gt;        private void button3_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;     List list = new List();&lt;br /&gt;&lt;br /&gt;            ListType input = new ListType(256);&lt;br /&gt;            input.buff[0] = 1;&lt;br /&gt;            input.buff[1] = 2;&lt;br /&gt;            list.addlist(input);  // リストへ追加 1&lt;br /&gt;            input.Clear();&lt;br /&gt;            input.buff[0] = 3;&lt;br /&gt;            input.buff[1] = 4;&lt;br /&gt;            list.addlist(input);  // リストへ追加 2&lt;br /&gt;&lt;br /&gt;            ListType getd = new ListType(256);&lt;br /&gt;            getd = list.deletelist();  // リスト取得後削除 1&lt;br /&gt;            getd = list.deletelist();  // リスト取得後削除 2&lt;br /&gt;            getd = list.deletelist();  // リスト取得後削除 (nullを返す)&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;**** List.cs ****&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;namespace TestTest&lt;br /&gt;{&lt;br /&gt;/// ＜summary＞&lt;br /&gt;/// リストタイプ　クラス&lt;br /&gt;/// ＜/summary＞&lt;br /&gt;    class ListType&lt;br /&gt;    {&lt;br /&gt;        ///------------------------------------------------&lt;br /&gt;        /// テーブル宣言&lt;br /&gt;        ///------------------------------------------------&lt;br /&gt;        public Int32 no;       // リスト番号&lt;br /&gt;        public uint[] buff;    // 格納データ&lt;br /&gt;        public Int32 len;      // 文字数&lt;br /&gt;        public ListType next;  // 次の要素へのポインタ&lt;br /&gt;        /// ＜summary＞&lt;br /&gt;        /// コンストラクタ&lt;br /&gt;        /// ＜/summary＞&lt;br /&gt;        /// ＜param name=&quot;length&quot;＞＜/param＞&lt;br /&gt;        public  ListType( Int32 length )&lt;br /&gt;        {&lt;br /&gt;            buff = new uint[length];&lt;br /&gt;            len = length;&lt;br /&gt;            next = null;&lt;br /&gt;            Clear();            // バッファクリア&lt;br /&gt;        }&lt;br /&gt;        public void Clear()&lt;br /&gt;        {&lt;br /&gt;            for (Int32 ii = 0; ii ＜ len; ii++)&lt;br /&gt;            {&lt;br /&gt;                buff[ii] = 0;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;///--------------------------------------------------------&lt;br /&gt;/// ＜summary＞&lt;br /&gt;/// リスト　クラス&lt;br /&gt;/// ＜/summary＞&lt;br /&gt;    class List&lt;br /&gt;    {&lt;br /&gt;        ///------------------------------------------------&lt;br /&gt;        /// テーブル宣言&lt;br /&gt;        ///------------------------------------------------&lt;br /&gt;        public ListType head;&lt;br /&gt;        public ListType p;&lt;br /&gt;        public ListType q;&lt;br /&gt;        public ListType newcell;&lt;br /&gt;        public ListType output;&lt;br /&gt;        public Int32 No;&lt;br /&gt;        /// ＜summary＞&lt;br /&gt;        /// コンストラクタ&lt;br /&gt;        /// ＜/summary＞&lt;br /&gt;        public List()&lt;br /&gt;        {&lt;br /&gt;            head = new ListType(1);     // リストヘッダー宣言&lt;br /&gt;            No = 0;&lt;br /&gt;        }&lt;br /&gt;        /// ＜summary＞&lt;br /&gt;        /// リスト追加&lt;br /&gt;        /// ＜/summary＞&lt;br /&gt;        /// ＜param name=&quot;input&quot;＞＜/param＞&lt;br /&gt;        /// ＜returns＞＜/returns＞&lt;br /&gt;        public bool addlist( ListType input )&lt;br /&gt;        {&lt;br /&gt;            p = head.next;      // 先頭要素の次のアドレス&lt;br /&gt;            q = head;           // 先頭のアドレス&lt;br /&gt;            while( p != null )&lt;br /&gt;            {&lt;br /&gt;                q = p;  // 追加位置の直前の要素nextを後で設定するため&lt;br /&gt;                p = p.next; // 次の要素へ進む&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            newcell = new ListType(input.len);&lt;br /&gt;            if( newcell == null )&lt;br /&gt;            {&lt;br /&gt;                return false;           // メモリ不足&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            input.no = ++No;&lt;br /&gt;            for (Int32 ii = 0; ii ＜ (input.len); ii++)&lt;br /&gt;            {&lt;br /&gt;                newcell.buff[ii] = input.buff[ii];  // 新しい要素を設定&lt;br /&gt;            }&lt;br /&gt;            newcell.len = input.len;    // 文字数設定&lt;br /&gt;            newcell.next = p;           // 新しい要素の次の要素へのアドレス設定&lt;br /&gt;            q.next = newcell;           // 新しい要素の直前の要素のnextに新しい要素アドレス設定&lt;br /&gt;            return true;&lt;br /&gt;        }&lt;br /&gt;        /// ＜summary＞&lt;br /&gt;        /// リスト削除&lt;br /&gt;        /// ＜/summary＞&lt;br /&gt;        /// ＜returns＞＜/returns＞&lt;br /&gt;        public ListType deletelist()&lt;br /&gt;        {&lt;br /&gt;            p = head.next;              // 先頭要素の次の要素アドレス&lt;br /&gt;            q = head;                   // 先頭要素アドレス&lt;br /&gt;&lt;br /&gt;            if( p == null )&lt;br /&gt;            {&lt;br /&gt;                return null;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                output = new ListType(p.len);   // 取出領域確保&lt;br /&gt;                output.no = --No;&lt;br /&gt;                for(Int32 ii=0; ii＜(p.len); ii++)&lt;br /&gt;                {&lt;br /&gt;                    output.buff[ii] = p.buff[ii];&lt;br /&gt;                }&lt;br /&gt;                output.len = p.len;&lt;br /&gt;                q.next = p.next;                // 削除する要素の直前の要素のnextポインタを再設定&lt;br /&gt;                p = null;&lt;br /&gt;            }&lt;br /&gt;            return output;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/2530650316764321420/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/2530650316764321420?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2530650316764321420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2530650316764321420'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/10/c20052008.html' title='C#2005/2008 マネージ 線形リスト クラス'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-9029832106233296687</id><published>2008-06-25T00:07:00.002+09:00</published><updated>2008-06-25T00:07:48.745+09:00</updated><title type='text'>VC#2008 型 DLL対応について</title><content type='html'>VC#2008 型 DLL対応について&lt;br /&gt;&lt;br /&gt;C#の変数のDLL対応について記述します。&lt;br /&gt;&lt;br /&gt;[Windows] : [C] : [C#] : [.NET]&lt;br /&gt;-----------------------------------------&lt;br /&gt;BOOL : long : bool : System.Boolean&lt;br /&gt;BYTE : unsigned char : byte : System.Byte&lt;br /&gt; --- : --- : sbyte : System.SByte&lt;br /&gt;CHAR : char : char : System.Char&lt;br /&gt; --- : --- : decimal : System.Decimal&lt;br /&gt;DOUBLE : double : double : System.Double&lt;br /&gt;FLOAT : float : float : System.Single&lt;br /&gt;SHORT : short : short : System.Int16&lt;br /&gt;INT : int : int : System.Int32&lt;br /&gt;LONG : long : long : System.Int32&lt;br /&gt;UINT : unsigned int : uint : System.UInt32&lt;br /&gt;ULONG : unsigned long : uint : System.UInt32&lt;br /&gt;WORD : unsigned short : ushort : System.UInt16&lt;br /&gt;LPSTR : char* : --- : System.Text.StringBuilder&lt;br /&gt;LPCSTR : const char* : string : System.String</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/9029832106233296687/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/9029832106233296687?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/9029832106233296687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/9029832106233296687'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/06/vc2008-dll.html' title='VC#2008 型 DLL対応について'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-6442462325669185208</id><published>2008-06-18T23:54:00.005+09:00</published><updated>2008-06-19T00:00:25.747+09:00</updated><title type='text'>VC#2008 型 .NETの関係について</title><content type='html'>VC#2008 型 .NETの関係について&lt;br /&gt;&lt;br /&gt;C#と.NETの変数の型について記述します。&lt;br /&gt;[C#]               [.NET]&lt;br /&gt;bool       →      System.Boolean&lt;br /&gt;byte       →      System.Byte&lt;br /&gt;sbyte      →      System.SByte&lt;br /&gt;char       →      System.Char&lt;br /&gt;decimal    →      System.Decimal&lt;br /&gt;double     →      System.Double&lt;br /&gt;float      →      System.Single&lt;br /&gt;short      →      System.Int16&lt;br /&gt;int        →      System.Int32&lt;br /&gt;long       →      System.Int64&lt;br /&gt;ushort     →      System.UInt16&lt;br /&gt;uint       →      System.UInt32&lt;br /&gt;ulong      →      System.UInt64&lt;br /&gt;string     →      System.String</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/6442462325669185208/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/6442462325669185208?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6442462325669185208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6442462325669185208'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/06/vc2008-net.html' title='VC#2008 型 .NETの関係について'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-8365157839439269448</id><published>2008-06-11T23:58:00.010+09:00</published><updated>2008-06-16T23:22:59.046+09:00</updated><title type='text'>＞Form1 にツールボックスの以下のコントロールを配置のやり方がわかりません</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizuMSFip0-RKnD6gJJHXUnhx8GrFYEMWczgPp1YY_MIrQDX0WOV4AkZ_nCM_nksnO-jMfw04do3qQIQxAR0m5KIqnsT3aN91ZZd6d9eW5EfAxZFG3nAKUFWXqx1s224mTfeTWO_rW_603F/s1600-h/buttonEvent.JPG&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5210639102145107602&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizuMSFip0-RKnD6gJJHXUnhx8GrFYEMWczgPp1YY_MIrQDX0WOV4AkZ_nCM_nksnO-jMfw04do3qQIQxAR0m5KIqnsT3aN91ZZd6d9eW5EfAxZFG3nAKUFWXqx1s224mTfeTWO_rW_603F/s400/buttonEvent.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYO1UzJErXjoexeUdudiH1EWRLTSR6axUs-PZcFDWF6iHSjqE9kX5cEjBkYrkgtqsv5WQgN80BCvGtT0c4jaLQR3SbwXaXrlFyam1HbmN9OMdz6i1-h2hydkjMhod3JAC2lVMVxuoRTGlp/s1600-h/serial.JPG&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5210639002260079314&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYO1UzJErXjoexeUdudiH1EWRLTSR6axUs-PZcFDWF6iHSjqE9kX5cEjBkYrkgtqsv5WQgN80BCvGtT0c4jaLQR3SbwXaXrlFyam1HbmN9OMdz6i1-h2hydkjMhod3JAC2lVMVxuoRTGlp/s400/serial.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLm2y-HN98uSg1j_sno4s7uYfGri03GUCFzhz3S4qKmQNXdvo1XIwTyfAijq5GWoD0ANSP0jeqjpM9mmN2TBrJGxeWlsP5oSO3SSWCyTlVL7tE0dvF0fg_g8K8wUDBoylHE-aR4nEvTXV_/s1600-h/button.JPG&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5210638714579505282&quot; style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLm2y-HN98uSg1j_sno4s7uYfGri03GUCFzhz3S4qKmQNXdvo1XIwTyfAijq5GWoD0ANSP0jeqjpM9mmN2TBrJGxeWlsP5oSO3SSWCyTlVL7tE0dvF0fg_g8K8wUDBoylHE-aR4nEvTXV_/s400/button.JPG&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;図（１）ツールボックスのＢｕｔｔｏｎやＬｉｓｔＶｉｅｗを左クリックで選択状態にしておき、Ｆｏｒｍ１[デザイン]に左クリックで配置します。&lt;/p&gt;&lt;p&gt;図（２）ツールボックスのserialPortを左クリックで選択状態にしておき、&lt;br /&gt;Ｆｏｒｍ１[デザイン]に左クリックで配置します。すると、フォーム上に配置されずに外の下側に配置されます。&lt;/p&gt;&lt;p&gt;図（３）Button1をダブルクリックすると、画面がソースコードへ切替わって、イベントハンドラが自動的に作成されます。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;また質問等あれば遠慮なくどうぞ！&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/8365157839439269448/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/8365157839439269448?isPopup=true' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8365157839439269448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/8365157839439269448'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/06/form1.html' title='＞Form1 にツールボックスの以下のコントロールを配置のやり方がわかりません'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizuMSFip0-RKnD6gJJHXUnhx8GrFYEMWczgPp1YY_MIrQDX0WOV4AkZ_nCM_nksnO-jMfw04do3qQIQxAR0m5KIqnsT3aN91ZZd6d9eW5EfAxZFG3nAKUFWXqx1s224mTfeTWO_rW_603F/s72-c/buttonEvent.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-6337062177225352596</id><published>2008-05-27T11:34:00.004+09:00</published><updated>2008-05-27T11:57:38.467+09:00</updated><title type='text'>SQL Server データベースの作り方</title><content type='html'>SQL Server データベースの作り方&lt;br /&gt;&lt;br /&gt;■以下のソフトがインストールされていることを確認する。なければインストールする。&lt;br /&gt; ｽﾀｰﾄ -&gt; すべてのプログラム -&gt; Microsoft SQL Server 2005 を確認する。&lt;br /&gt;1) SQL構成ﾏﾈｰｼﾞｬｰ（SQL Server Configuration Manager）&lt;br /&gt;2) Microsoft SQL Server Management Studio Express&lt;br /&gt;&lt;br /&gt;■SQL Serverの認証を許可する&lt;br /&gt;1)SQL構成ﾏﾈｰｼﾞｬｰ（SQL Server Configuration Manager）を起動する。&lt;br /&gt;2)SQL Server 2005 ﾈｯﾄﾜｰｸの構成 -&gt; SQLEXPRESS のﾌﾟﾛﾄｺﾙ -&gt; 名前付きﾊﾟｲﾌﾟ を「有効」にする&lt;br /&gt;&lt;br /&gt;■データベースを作成する&lt;br /&gt;1)Microsoft SQL Server Management Studio Express を起動する。&lt;br /&gt;2)[新しいｸｴﾘ]で 以下を貼り付けて実行する。&lt;br /&gt;------ 貼り付けるテキスト ------&lt;br /&gt;CREATE DATABASE [TestDB]  ON (NAME = &#39;TestDB_Data&#39;, FILENAME = &#39;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\TestDB_Data.MDF&#39;) LOG ON (NAME = &#39;TestDB_Log&#39;, FILENAME = &#39;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\TestDB_Log.LDF&#39;)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;use [TestDB]&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;CREATE TABLE [dbo].[顧客] (&lt;br /&gt; [ID] [int] PRIMARY KEY ,&lt;br /&gt; [姓] [ntext] ,&lt;br /&gt; [名] [ntext] ,&lt;br /&gt; [姓かな] [ntext] ,&lt;br /&gt; [名かな] [ntext] ,&lt;br /&gt; [性別] [int] ,&lt;br /&gt; [自宅パソコンメール] [bit] ,&lt;br /&gt; [携帯メール] [bit] ,&lt;br /&gt; [職場パソコンメール] [bit] ,&lt;br /&gt; [その他メール] [bit] ,&lt;br /&gt; [その他メールの説明] [ntext] ,&lt;br /&gt; [メールアドレス] [ntext] ,&lt;br /&gt; [誕生日] [datetime] ,&lt;br /&gt; [電話番号] [ntext] &lt;br /&gt;)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;CREATE TABLE [dbo].[性別] (&lt;br /&gt; [ID] [int] PRIMARY KEY ,&lt;br /&gt; [名称] [ntext] &lt;br /&gt;)&lt;br /&gt;GO&lt;br /&gt;------ 貼り付けるテキスト ------</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/6337062177225352596/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/6337062177225352596?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6337062177225352596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/6337062177225352596'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/05/sql-server.html' title='SQL Server データベースの作り方'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4217377140896614879.post-2968872757636875207</id><published>2008-05-17T21:50:00.001+09:00</published><updated>2008-05-17T21:59:11.117+09:00</updated><title type='text'>VC++2005/2008 get() set() を property で実現する</title><content type='html'>VC++2005/2008 get() set() を property で実現する&lt;br /&gt;&lt;br /&gt;クラスのメンバ変数をアクセスするのに get() set() メソッドを用意するのは一般的ですが、property を利用すればすっきり記述できます。&lt;br /&gt;&lt;br /&gt;■property を使ったクラス&lt;br /&gt;public ref class pro&lt;br /&gt;{&lt;br /&gt;private: Byte tbl_;   // プライベート宣言&lt;br /&gt;public: property Byte tbl  // get() set() の tblパブリック宣言&lt;br /&gt;{&lt;br /&gt; void set(Byte val)&lt;br /&gt; {&lt;br /&gt;  tbl_ = val;&lt;br /&gt; }&lt;br /&gt; Byte get()&lt;br /&gt; {&lt;br /&gt;  return tbl_;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;■呼出側&lt;br /&gt;private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {&lt;br /&gt;pro^ pp = gcnew pro();&lt;br /&gt;pp-＞tbl = 10;&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://yushunkai.blogspot.com/feeds/2968872757636875207/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4217377140896614879/2968872757636875207?isPopup=true' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2968872757636875207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4217377140896614879/posts/default/2968872757636875207'/><link rel='alternate' type='text/html' href='http://yushunkai.blogspot.com/2008/05/vc20052008-get-set-property.html' title='VC++2005/2008 get() set() を property で実現する'/><author><name>優瞬会</name><uri>http://www.blogger.com/profile/18439553368885433246</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>