<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — HWND in Byte PTR?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=97&amp;type=atom" />
	<updated>2006-08-24T23:45:40Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=97</id>
		<entry>
			<title type="html"><![CDATA[Re: HWND in Byte PTR?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=405#p405" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2006-08-24T23:45:40Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=405#p405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HWND in Byte PTR?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=404#p404" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[nikko]]></name>
				<uri>https://gprogs.com/profile.php?id=46</uri>
			</author>
			<updated>2006-08-24T23:17:35Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=404#p404</id>
		</entry>
</feed>
