<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        I found a way to get a bitmap from the HBITMAP you get using getBitmap. You use this line of coding:&lt;br&gt;&lt;br&gt;HBITMAP hbmp;&lt;br&gt;...&lt;br&gt;Bitmap^ bmp = Image::FromHbitmap(IntPtr((int)hbmp));        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Made further changes to the code:&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bitmap^ bitmaps;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HBITMAP hbitmap = rr.getBitmap(&quot;processed&quot;, image, &amp;width, &amp;height,width*height*3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GetObject(hbitmap, sizeof(hbitmap), &amp;bitmaps);&lt;br&gt;&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;&amp;nbsp;return bitmaps;&lt;br&gt;&lt;br&gt;Im trying to get the HBITMAP and allocate it into a Bitmap^ variable but when I do this and step through the program the value returned for &quot;hbitmap&quot; is zero and the Bitmap variable &quot;bitmaps&quot; returned has a value of &quot;&amp;lt;undefined value&amp;gt;&quot; is there something wrong with my code? Ive checked and the program steps through the whole of the getBitmap function and returns &quot;hbitmap&quot; from within the function but this doesnt have a value either.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Has anyone else got the getBitmap function working? Have you been able to save the HBITMAP into a normal bitmap file?        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        That kind of confuses me more. I have this code so far:&lt;br&gt;&lt;br&gt;Bitmap^ bitmaps;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HBITMAP hbitmap = (rr.getBitmap(&quot;processed&quot;, image, &amp;width, &amp;height,width*height*3));&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Image^ tester=Image::FromHbitmap(hbitmap);&lt;br&gt;&lt;br&gt;This gives me the error:&lt;br&gt; error C2665: &apos;System::Drawing::Image::FromHbitmap&apos; : none of the 2 overloads could convert all the argument types.&lt;br&gt;Is there a simple way to take the HBITMAP and change it into a bitmap? It sounds elementary but I just dont have a clue on how to do it. I dont know what an HBITMAP is strictly speaking...        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Ok a quick search on google for &quot;Image-&amp;gt;Fromhbitmap c++&quot; yields this example:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.codeproject.com/KB/mcpp/ijwscrcap.aspx&quot; target=&quot;_blank&quot;&gt;http://www.codeproject.com/&lt;wbr&gt;KB/&lt;wbr&gt;mcpp/&lt;wbr&gt;ijwscrcap.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Perhaps that can help? It seems to use that function and a PictureBox class.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        I dont know about Cbitmaps I just use the Bitmap and Image classes from the System::Drawing library. I mention hbitmap because the Image function in visual c++ allows for an image to be taken from an hbitmap file using the Image-&amp;gt;Fromhbitmap function.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        This is a common programming issue ..&amp;nbsp;&amp;nbsp;I think you mean CBitmap in C++. &lt;br&gt;&lt;br&gt;We used HBITMAP since that does not require MFC (for some of the older apps). You can do a search on Google (great research site!) for &quot;Convert HBITMAP CBitmap&quot;. Try that link&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.google.com/search?q=convert+Hbitmap+CBitmap&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a&quot; target=&quot;_blank&quot;&gt;http://www.google.com/&lt;wbr&gt;search?q=convert+Hbitmap+CBitmap&amp;ie=utf-&lt;wbr&gt;8&amp;oe=utf-&lt;wbr&gt;8&amp;aq=t&amp;rls=org.mozilla:en-&lt;wbr&gt;US:official&amp;client=firefox-&lt;wbr&gt;a&lt;/a&gt;&lt;br&gt;&lt;br&gt;and see the first couple results.&lt;br&gt;&lt;br&gt;STeven.        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Im using the following code:&lt;br&gt;&lt;br&gt;Bitmap^ bitmaps;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;HBITMAP ashir = rr.getBitmap(&quot;processed&quot;, image, &amp;width, &amp;height,width*height*3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GetObject(ashir, sizeof(BITMAP),&amp;bitmaps);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;&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;&amp;nbsp;return bitmaps;&lt;br&gt;&lt;br&gt;Im really not sure how to deal with a HBITMAP since visual c++ seems to cater for the hbitmap class and not HBITMAP. When i run this code the program crashes and windows closes it down (offering to send details of the bug to Microsoft)        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>HBITMAP?</title>
        <description>
        How would you go about changing the HBITMAP file, you get from using the getBitmap function, into a normal Image or Bitmap file in visual c++?        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=2728</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=2728</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
