<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CFile::Open flags in LoadFromFile</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : CFile::Open flags in LoadFromFile]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 12:17:17 +0000</pubDate>
  <lastBuildDate>Fri, 25 Sep 2009 19:24:21 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15248</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CFile::Open flags in LoadFromFile : The CXTPGraphicBitmapPng::LoadFromFile...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15248&amp;PID=53460&amp;title=cfileopen-flags-in-loadfromfile#53460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5057">VitVal</a><br /><strong>Subject:</strong> 15248<br /><strong>Posted:</strong> 25 September 2009 at 7:24pm<br /><br />The CXTPGraphicBitmapPng::LoadFromFile has such code:<DIV>/---</DIV><DIV>&nbsp;CFile file;<BR>&nbsp;if (!file.Open(lpszFileName, CFile::modeRead))<BR>&nbsp;{<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}<BR>---/</DIV><DIV>The code can result in failing to load an image if two instanses of a program will try to open the file.</DIV><DIV>I think you should change flags for CFile::Open</DIV><DIV>/---</DIV><DIV>&nbsp;&nbsp;CFile file;<BR>&nbsp;&nbsp;if (! file.Open(lpszFileName, CFile::modeRead | CFile::shareDenyWrite))<BR>&nbsp;{<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}<BR>---/</DIV>]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 19:24:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15248&amp;PID=53460&amp;title=cfileopen-flags-in-loadfromfile#53460</guid>
  </item> 
 </channel>
</rss>