<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — HWND in Byte PTR?]]></title>
		<link>https://gprogs.com/viewtopic.php?id=97</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=97&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in HWND in Byte PTR?.]]></description>
		<lastBuildDate>Thu, 24 Aug 2006 23:45:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: HWND in Byte PTR?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=405#p405</link>
			<description><![CDATA[<div class="codebox"><pre><code>Local w:TGadget = CreateWindow(&quot;Easy GL Cube in a GUI window&quot;, 10, 10, 1024+10, 768+10 )
Local c:TGadget = CreateCanvas(0,0,w.ClientWidth(),w.ClientHeight(),w,0)
Local hwnd:Int = QueryGadget(c,QUERY_HWND)
If Not i3ImpactOpen(Byte Ptr(hwnd),Byte Ptr(hwnd)) RuntimeError &quot;Unable to initialize the 3Impact game engine&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Thu, 24 Aug 2006 23:45:40 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=405#p405</guid>
		</item>
		<item>
			<title><![CDATA[HWND in Byte PTR?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=404#p404</link>
			<description><![CDATA[<p>Hi,</p><p>I&#039;m new to Blitzmax, and I try to bind Maxgui with 3Impact.</p><p>The idea is to open a 3Impact window in a Maxgui window in order to control 3impact from MAxgui gadgets.</p><p>Local w:TGadget = CreateWindow(&quot;Easy GL Cube in a GUI window&quot;, 10, 10, 1024+10, 768+10 )<br />Local c:TGadget = CreateCanvas(0,0,w.ClientWidth(),w.ClientHeight(),w,0)<br />Local hwnd:Int = QueryGadget(c,QUERY_HWND)<br />If Not i3ImpactOpen(hwnd,hwnd) RuntimeError &quot;Unable to initialize the 3Impact game engine&quot;</p><br /><p>THE PROBLEM!</p><p>You always use BYTE PTR for passing the HWND to i3ImpactOpen, that generate an error &quot;Unable to convert from Int to Byte Ptr&quot; at compile.</p><p>Why using Byte PTR when windows handles are int?</p><p>I&#039;m stuck</p>]]></description>
			<author><![CDATA[null@example.com (nikko)]]></author>
			<pubDate>Thu, 24 Aug 2006 23:17:35 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=404#p404</guid>
		</item>
	</channel>
</rss>
