English
Regulars table & Café

LoadLibrary.

 


Description:

The LoadLibrary function determined whom Module-lever of/ one DLL. yet not loaded DLLs go when calling automatically loaded, with others becomes only the interne Verwendungszähler increased




Deklaration:

Def LoadLibrary(1) !Kernel32, LoadLibraryA




Parameter:

1.Parameter: Memory-Variable, The whom names the DLL contains



Return Value:

0 with failure, otherwise the lever to DLL

Examples:

CompileMarkSeparation
Beispiel ab XProfan 8
benötigt SKControl.dll
Definitionen
Def LoadLibrary(1) !"Kernel32", "LoadLibraryA"
Def GetProcAddress(2) !"Kernel32", "GetProcAddress"
Def FreeLibrary(1) !"Kernel32", "FreeLibrary"
Deklarationen
Declare hSKControl&
Declare SKCtrl_InitDll&, SKCtrl_DeInitDll&, SKCtrl_InfoBox&
DLL laden (entspricht UseDLL)
hSKControl& = LoadLibrary("SKControl.dll")

If hSKControl& nur wenn die DLL auch gefunden wurde

    Funktionsadressen ermitteln
    SKCtrl_InitDll& = GetProcAddress(hSKControl&, "SKCtrl_InitDll")
    SKCtrl_DeInitDll& = GetProcAddress(hSKControl&, "SKCtrl_DeInitDll")
    SKCtrl_InfoBox& = GetProcAddress(hSKControl&, "SKCtrl_InfoBox")

Else

    End

EndIf

Funktionen direkt aufrufen
Call(SKCtrl_InitDll&)
Call(SKCtrl_InfoBox&)
Call(SKCtrl_DeInitDll&)
DLL freigeben, entspricht FreeDLL
FreeLibrary(hSKC
&)

[keywords:bf76f5ea62]
DLL loading
[/keywords:bf76f5ea62]
 
05/23/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.413 Views

Untitledvor 0 min.
Andreas Koch03/19/12
iF03/10/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie