Code: Select all
If OpenLibrary(0, "msw3prt.dll")
If ExamineLibraryFunctions(0)
While NextLibraryFunction()
func$ = LibraryFunctionName() : Debug func$
Wend
EndIf
CloseLibrary(0)
EndIf
Code: Select all
If OpenLibrary(0, "msw3prt.dll")
If ExamineLibraryFunctions(0)
While NextLibraryFunction()
func$ = LibraryFunctionName() : Debug func$
Wend
EndIf
CloseLibrary(0)
EndIf
Code: Select all
If OpenLibrary(0, "msw3prt.dll")
If ExamineLibraryFunctions(0)
While NextLibraryFunction()
func$ = LibraryFunctionName() : Debug func$
Wend
EndIf
Delay(1)
CloseLibrary(0)
EndIf
As the NextLibraryFunction(), LibraryFunctionName() and LibraryFunctionAddress() are all subordinate to the ExamineLibraryFunctions(#Library) command, repeating it for them would be redundant typing. The other Examine... command that takes a parameter also treats its subordinate commands this way - ExamineDirectory(#Directory)... followed by NextDirectoryEntry() etc.Syntax
CloseLibrary(#Library)
Code: Select all
Procedure ErrorHandler()
MessageRequester("Crash","Crash")
EndProcedure
OnErrorGosub(@ErrorHandler())
If OpenLibrary(0, "msw3prt.dll")
If ExamineLibraryFunctions(0)
While NextLibraryFunction()
func$ = LibraryFunctionName() : Debug func$
Wend
EndIf
CloseLibrary(0)
EndIfCode: Select all
a = LoadLibrary_("msw3prt.dll")
If a
FreeLibrary_(a)
MessageBox_(0, "ok", "", 0)
EndIf
Code: Select all
#include <Windows.h>
int main(int argc, TCHAR* argv[])
{
HMODULE a = LoadLibrary("msw3prt.dll");
if (a)
{
FreeLibrary(a);
MessageBox(NULL, "ok", "", MB_ICONINFORMATION);
}
return 0;
}Code: Select all
#include "Windows.h"
int _tmain(int argc, TCHAR* argv[])
{
HMODULE a = LoadLibrary("msw3prt.dll");
if (a)
{
Sleep(1);
FreeLibrary(a);
MessageBox(NULL, "ok", "", MB_ICONINFORMATION);
}
return 0;
}Code: Select all
a = LoadLibrary_("msw3prt.dll")
If a
Sleep_(1)
FreeLibrary_(a)
MessageBox_(0, "ok", "", 0)
EndIf
Code: Select all
If OpenLibrary(0,"msw3prt.dll")
Delay(1)
CloseLibrary(0)
MessageRequester("", "ok")
EndIf