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

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=4286&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=4286&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:01Z</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://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=4285&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=4285&amp;oldid=prev"/>
				<updated>2014-08-11T21:40:48Z</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:40, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=1655&amp;oldid=prev</id>
		<title>UberFoX: /* name */</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=1655&amp;oldid=prev"/>
				<updated>2012-04-19T23:58:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;name&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:58, 19 April 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== name&amp;#160; ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== name&amp;#160; ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;minus;&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The struct returned by &lt;/del&gt;DLLStructCreate&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Name of the DLLStruct to create for use later in &lt;/ins&gt;DLLStructCreate &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;using this name&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== def string ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==== def string ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=1339&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; DLLStructCreateDef( &lt;name&gt;, &lt;def string&gt; ) &lt;/pre&gt;  === Description ===  Creates a named C/C++ style structure definition that can be used with DLLStructCreate and can also ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://hotline.ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_DLLStructCreateDef&amp;diff=1339&amp;oldid=prev"/>
				<updated>2011-12-07T15:44:19Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; DLLStructCreateDef( &amp;lt;name&amp;gt;, &amp;lt;def string&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Creates a named C/C++ style structure definition that can be used with DLLStructCreate and can also ...&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;
DLLStructCreateDef( &amp;lt;name&amp;gt;, &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 named C/C++ style structure definition that can be used with DLLStructCreate and can also be placed inside other DLLStructs.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== name  ====&lt;br /&gt;
&lt;br /&gt;
The struct returned by DLLStructCreate.&lt;br /&gt;
&lt;br /&gt;
==== def string ====&lt;br /&gt;
&lt;br /&gt;
A string representing the structure to create (See DLLStructCreate for full details).&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: 1.&lt;br /&gt;
&lt;br /&gt;
Failure: 0.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
Used in DLLCall.&lt;br /&gt;
&lt;br /&gt;
This will create the DLLStruct definition similar to a prototype in C/C++ once it has been made you can use its name to create new structs or place its name inside a struct to create more of them.&lt;br /&gt;
&lt;br /&gt;
You can then get/set data from the struct and even structs deep inside other structs.&lt;br /&gt;
&lt;br /&gt;
However you must make sure you never include a struct that will include your struct else that will cause an infinite loop.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Create a struct definition to be used later&lt;br /&gt;
DLLStructCreateDef(&amp;quot;POINT&amp;quot;, &amp;quot;int x;int y&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Create a new struct using the name of the struct def we just made&lt;br /&gt;
$Struct = DLLStructCreate(&amp;quot;POINT&amp;quot;); // $Struct now contains a POINT struct&lt;br /&gt;
println( &amp;quot;Size: &amp;quot; . DLLStructGetSize($Struct)  ); // Show its size&lt;br /&gt;
&lt;br /&gt;
// Set its data&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;x&amp;quot;, 333);&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;y&amp;quot;, 444);&lt;br /&gt;
&lt;br /&gt;
// Get its data&lt;br /&gt;
$x = DLLStructGetData($Struct, &amp;quot;x&amp;quot;);&lt;br /&gt;
$y = DLLStructGetData($Struct, &amp;quot;y&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Print its data&lt;br /&gt;
println(&amp;quot;X: $x&amp;quot;);&lt;br /&gt;
println(&amp;quot;Y: $y&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example has a struct inside a struct and shows how to get/set its data&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
// Create the struct definitions to be used later&lt;br /&gt;
DLLStructCreateDef(&amp;quot;TEST&amp;quot;, &amp;quot;int a;int b&amp;quot;);&lt;br /&gt;
DLLStructCreateDef(&amp;quot;POINT&amp;quot;, &amp;quot;int x;int y;TEST t&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Create a new struct using the name of the struct def we just made&lt;br /&gt;
$Struct = DLLStructCreate(&amp;quot;POINT&amp;quot;); // $Struct now contains a POINT struct&lt;br /&gt;
println( &amp;quot;Size: &amp;quot; . DLLStructGetSize($Struct)  ); // Show its size&lt;br /&gt;
&lt;br /&gt;
// Set its data&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;x&amp;quot;, 333);&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;y&amp;quot;, 444);&lt;br /&gt;
// Set data of the included struct&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;t-&amp;gt;a&amp;quot;, 555);&lt;br /&gt;
DLLStructSetData($Struct, &amp;quot;t-&amp;gt;b&amp;quot;, 777);&lt;br /&gt;
&lt;br /&gt;
// Get its data&lt;br /&gt;
$x = DLLStructGetData($Struct, &amp;quot;x&amp;quot;);&lt;br /&gt;
$y = DLLStructGetData($Struct, &amp;quot;y&amp;quot;);&lt;br /&gt;
// Get data of the included struct&lt;br /&gt;
$ta = DLLStructGetData($Struct, &amp;quot;t-&amp;gt;a&amp;quot;);&lt;br /&gt;
$tb = DLLStructGetData($Struct, &amp;quot;t-&amp;gt;b&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Print its data&lt;br /&gt;
println(&amp;quot;X: $x&amp;quot;);&lt;br /&gt;
println(&amp;quot;Y: $y&amp;quot;);&lt;br /&gt;
// Print data of the included struct&lt;br /&gt;
println(&amp;quot;t-&amp;gt;a: $ta&amp;quot;);&lt;br /&gt;
println(&amp;quot;t-&amp;gt;b: $tb&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Of course you could place any number of structs inside other structs including arrays of structs the choice is yours.&lt;br /&gt;
&lt;br /&gt;
However you must make sure you never include a struct that will include your struct else that will cause an infinite loop.&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>