Core Function DLLImport

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> DLLImport( <varies...> ) </pre> === Description === Dynamically load a function from a DLL and transform it to act and behave like a normal Sputnik function (Can load tho...")
 
m (1 revision)
 
(6 intermediate revisions by one user not shown)
Line 17: Line 17:
 
It must be an array of all functions to import from DLLs
 
It must be an array of all functions to import from DLLs
  
CLick HERE to see how to use DLLImport with the single DLL to import DLL functions or to create a DLL file.
+
CLick [[Core Function DLLImport as Array|DLLImport( <array> )]] to see how to use DLLImport with the single DLL to import DLL functions or to create a DLL file.
  
 
==== Usage method 2 ====
 
==== Usage method 2 ====
Line 23: Line 23:
 
If you use 5-6 parameters then the DLLImport will be importing a single function from a single DLL.
 
If you use 5-6 parameters then the DLLImport will be importing a single function from a single DLL.
  
Click HERE to see how to import a single function from a single DLL.
+
Click [[Core Function DLLImport as Params|DLLImport( <DLLName>, <FunctionName/Alias>, <ReturnType>, <ParameterType>, <CharSet/CallingConvention> )]] to see how to import a single function from a single DLL.
  
 
=== Return Value ===
 
=== Return Value ===
Line 34: Line 34:
  
 
None.
 
None.
 
=== Example ===
 
 
<syntaxhighlight lang="sputnik">
 
</syntaxhighlight>
 
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Latest revision as of 12:37, 14 June 2015

DLLImport( <varies...> )

Contents

Description

Dynamically load a function from a DLL and transform it to act and behave like a normal Sputnik function (Can load thousands functions at a time and even save the loaded stuff to DLL for quick access later).

Parameters

Usage method 1

If the only parameters is a single array it can work as follows :

Optional; The array can begin with a string containing the DLL name to save the DLLImport as such as "MyDLL.dll"

It must be an array of all functions to import from DLLs

CLick DLLImport( <array> ) to see how to use DLLImport with the single DLL to import DLL functions or to create a DLL file.

Usage method 2

If you use 5-6 parameters then the DLLImport will be importing a single function from a single DLL.

Click DLLImport( <DLLName>, <FunctionName/Alias>, <ReturnType>, <ParameterType>, <CharSet/CallingConvention> ) to see how to import a single function from a single DLL.

Return Value

Success: True

Failure: False

Remarks

None.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox