<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_DLLStructCreateUnion</id>
		<title>Core Function DLLStructCreateUnion - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_DLLStructCreateUnion"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;action=history"/>
		<updated>2026-05-16T10:01:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=4850&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=4850&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:40Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=4849&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=4849&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=3565&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; DLLStructCreateUnion( &lt;def string&gt; ) &lt;/pre&gt;  === Description ===  Creates a C/C++ style structure (Union) to be used with DLLCall  This is just a simple wrapper for DLLStru...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateUnion&amp;diff=3565&amp;oldid=prev"/>
				<updated>2013-10-01T13:56:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; DLLStructCreateUnion( &amp;lt;def string&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Creates a C/C++ style structure (Union) to be used with DLLCall  This is just a simple wrapper for DLLStru...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
DLLStructCreateUnion( &amp;lt;def string&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Creates a C/C++ style structure (Union) to be used with DLLCall&lt;br /&gt;
&lt;br /&gt;
This is just a simple wrapper for DLLStructCreate that automatically inserts the union property into your struct by placing &amp;quot;union &amp;quot; before the def string like so DllStructCreate(&amp;quot;union int a;float b&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== def string  ====&lt;br /&gt;
&lt;br /&gt;
See [[Core Function DLLStructCreate|DLLStructCreate(  )]] for def string.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
See [[Core Function DLLStructCreate|DLLStructCreate(  )]] for return value.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
See [[Core Function DLLStructCreate|DLLStructCreate(  )]] for remarks.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
See [[Core Function DLLStructCreate|DLLStructCreate(  )]] for more examples.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
# A union will place all the objects at the same address&lt;br /&gt;
$a = DLLStructCreateUnion(&amp;quot;int a;float b&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
# so when we set the floats value it also set the ints value&lt;br /&gt;
DLLStructSetData($a,&amp;quot;b&amp;quot;, 133.77);&lt;br /&gt;
&lt;br /&gt;
# Its size is 4 since they are both at the same offset&lt;br /&gt;
say &amp;quot;Size: &amp;quot; . DLLStructGetSize( $a );&lt;br /&gt;
&lt;br /&gt;
# Lets read the int value as a hex and it will give us the floats&lt;br /&gt;
# value as a hex (since we wrote to the float which also set the int)&lt;br /&gt;
$value = DllStructGetData($a,&amp;quot;a&amp;quot;);&lt;br /&gt;
printf( &amp;quot;Value is %#x\n&amp;quot;, $value );&lt;br /&gt;
&lt;br /&gt;
# Prints&lt;br /&gt;
# Size: 4&lt;br /&gt;
# Value is 0x4305c51f&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>