<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - WSERV 10 Panic with bitmap loading - Comments</title>
 <link>http://www.newlc.com/en/topic-634</link>
 <description>Comments for &quot;WSERV 10 Panic with bitmap loading&quot;</description>
 <language>en</language>
<item>
 <title>WSERV 10 Panic with bitmap loading</title>
 <link>http://www.newlc.com/en/topic-634#comment-4725</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi all, to load Bitmap from mbm file, i use this function which is pretty usefull:&lt;br /&gt;&lt;br /&gt;void LoadBitmapL(CFbsBitmap* aBitMap,const TDesC&amp;amp; aPathAndFile,TInt aId/*,TBool aShareIfLoaded*/)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_LIT(KTxtCDrive,&amp;quot;C:&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_LIT(KTxtZDrive,&amp;quot;Z:&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TParse mbfn;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbfn.Set(aPathAndFile,&amp;amp;KTxtCDrive,NULL);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!aBitMap-&amp;gt;Load(mbfn.FullName(),aId,ETrue))//ETrue --&amp;gt; aShareIfLoaded&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mbfn.Set(aPathAndFile,&amp;amp;KTxtZDrive,NULL);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;User::LeaveIfError(aBitMap-&amp;gt;Load(mbfn.FullName(),aId,ETrue));//ETrue --&amp;gt; aShareIfLoaded&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;i found it in one of the uiq exemple. &lt;br /&gt;The loading works well BUT, now i&#039;v got a WSERV 7 panics code. &lt;br /&gt;I load my bitmap in :&lt;br /&gt;void CMyView::ConstructControlsL()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;monImage = new (ELeave) CFbsBitmap();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LoadBitmapL(monImage,KMBMFileName,EMbmIdimgbrassieFondgolf);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;and i want to draw it in the Draw() function:&lt;br /&gt;void CMyView::Draw(const TRect&amp;amp;/* aRect*/) const&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CWindowGc&amp;amp; gc = SystemGc();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gc.Clear();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;gc.BitBlt(TPoint(0,0), iImgFdVueInfosGolf); &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&lt;br /&gt;I can&#039;t? what did i do wrong? or how can i draw my bitmap?&lt;br /&gt;&lt;br /&gt;Thx a lot.&lt;/div&gt;</description>
 <pubDate>Tue, 01 Jun 2004 11:09:52 +0200</pubDate>
 <dc:creator>bnj99</dc:creator>
 <guid isPermaLink="false">comment 4725 at http://www.newlc.com</guid>
</item>
<item>
 <title>&#039;Z&#039; is ROM Drive on the device</title>
 <link>http://www.newlc.com/en/topic-634#comment-4724</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;If the problem is only during loading, it&#039;s probably because on the target device, the app is not installed on &#039;Z&#039; drive. That usually is reserved for the internal ROM. On the emulator the app is installed to &#039;Z&#039;. But it is not so on the device. Try changing it to &#039;C&#039; or &#039;D&#039; depending on where you have installed it.&lt;/div&gt;</description>
 <pubDate>Tue, 28 Oct 2003 08:40:05 +0100</pubDate>
 <dc:creator>hoopsman</dc:creator>
 <guid isPermaLink="false">comment 4724 at http://www.newlc.com</guid>
</item>
<item>
 <title>WSERV 10 Panic with bitmap loading</title>
 <link>http://www.newlc.com/en/topic-634#comment-4723</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;You should activate the drawing context only once per each drawing iteration - it appears that you are doing it twice.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Pawel&lt;/div&gt;</description>
 <pubDate>Fri, 24 Oct 2003 09:34:58 +0200</pubDate>
 <dc:creator>pawel</dc:creator>
 <guid isPermaLink="false">comment 4723 at http://www.newlc.com</guid>
</item>
<item>
 <title>WSERV 10 Panic with bitmap loading</title>
 <link>http://www.newlc.com/en/topic-634</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-634&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-634#comments</comments>
 <category domain="http://www.newlc.com/en/forums/2d-3d-graphics">Bitmaps and Graphics</category>
 <pubDate>Fri, 24 Oct 2003 09:02:45 +0200</pubDate>
 <dc:creator>fullscale</dc:creator>
 <guid isPermaLink="false">1709 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
