<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Masaki's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 07 Aug 2008 20:57:14 GMT</pubDate>
    <description>DZone Snippets: Masaki's Code Snippets</description>
    <item>
      <title>&#12487;&#12501;&#12457;&#12523;&#12488;&#12398;MIME&#12479;&#12452;&#12503;&#12434;&#36861;&#21152;&#12377;&#12427;</title>
      <link>http://snippets.dzone.com/posts/show/2139</link>
      <description>// PNG&#12398;&#22580;&#21512;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;import javax.activation.FileTypeMap;&lt;br /&gt;import javax.activation.MimetypesFileTypeMap;&lt;br /&gt;&lt;br /&gt;public void setMimeType() {&lt;br /&gt;    String mimeType = "image/png    png PNG";&lt;br /&gt;    MimetypesFileTypeMap map = new MimetypesFileTypeMap();&lt;br /&gt;    map.addMimeTypes(mimeType);&lt;br /&gt;    FileTypeMap.setDefaultFileTypeMap(map);&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 05 Jun 2006 15:12:59 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2139</guid>
      <author>masaki (NAKAGAWA Masaki)</author>
    </item>
    <item>
      <title>MFC&#12391;&#12524;&#12472;&#12473;&#12488;&#12522;&#12398;&#20195;&#12431;&#12426;&#12395;INI&#12501;&#12449;&#12452;&#12523;&#12434;&#20351;&#12358;</title>
      <link>http://snippets.dzone.com/posts/show/1047</link>
      <description>&lt;code&gt;&lt;br /&gt;#include &lt;shlwapi.h&gt;&lt;br /&gt;&lt;br /&gt;BOOL CMyApp::InitInstance()&lt;br /&gt;{&lt;br /&gt;  // ... &lt;br /&gt;&lt;br /&gt;  TCHAR szIniPath[MAX_PATH];&lt;br /&gt;  VERIFY(::GetModuleFileName(::AfxGetInstanceHandle(), szIniPath, MAX_PATH) != 0);&lt;br /&gt;  VERIFY(::PathRenameExtension(szIniPath, _T(".ini")) != FALSE);&lt;br /&gt;  ::free(static_cast&lt;LPVOID&gt;(const_cast&lt;LPTSTR&gt;(m_pszProfileName)));&lt;br /&gt;  m_pszProfileName = ::_tcsdup(szIniPath);&lt;br /&gt;&lt;br /&gt;  // ...&lt;br /&gt;&lt;br /&gt;  return TRUE;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 03 Jan 2006 15:58:34 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1047</guid>
      <author>masaki (NAKAGAWA Masaki)</author>
    </item>
    <item>
      <title>&#12514;&#12472;&#12517;&#12540;&#12523;&#12398;&#12497;&#12473;&#12434;&#35519;&#12409;&#12427;</title>
      <link>http://snippets.dzone.com/posts/show/1045</link>
      <description>&lt;code&gt;&lt;br /&gt;perldoc -ml Module::Name::Here&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 03 Jan 2006 07:55:33 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1045</guid>
      <author>masaki (NAKAGAWA Masaki)</author>
    </item>
  </channel>
</rss>
