thankyou very much
Using a DLL
Using a DLL
Hello, I've found a dll, can someone give me a hint on how can I use the relative commands? (I have no experience using dll's...
)
thankyou very much
thankyou very much
hi @yashaa
1. Loading the DLL with 'OpenLibrary'
2. The Command 'Callfunction'
but i would prefer reading the manual first 
1. Loading the DLL with 'OpenLibrary'
Code: Select all
dymodllname$="labels.dll"
dymodll=OpenLibrary(#PB_Any,dymodllname$)
If dymodll=0
MessageRequester(dymodllname$,"required DLL is missing")
End
EndIf
Code: Select all
If CallFunction(dymodll,"ReadLabelFile",LabelFile$)
CallFunction(dymodll,"SetZoom",100)
CallFunction(dymodll,"SetShadow",0)
CallFunction(dymodll,"GetLabelInfo",Label.LABELINFO)
EndIf
of course whith the following commands :
ExamineLibraryFunctions(#Library)
NextLibraryFunction()
ResultName$ = LibraryFunctionName()
ResultAdress.l = LibraryFunctionAddress()
Result.l = IsFunction(#Library, FunktionsName$)
and an example (i now there is a better one around here but i can´t find it right now
)
ExamineLibraryFunctions(#Library)
NextLibraryFunction()
ResultName$ = LibraryFunctionName()
ResultAdress.l = LibraryFunctionAddress()
Result.l = IsFunction(#Library, FunktionsName$)
and an example (i now there is a better one around here but i can´t find it right now
Code: Select all
Gina=OpenLibrary(#PB_Any,"MSGINA.DLL")
Debug Gina
Debug CountLibraryFunctions(Gina)
If ExamineLibraryFunctions(Gina)
While NextLibraryFunction()
Name$ = LibraryFunctionName()
Adr.l = LibraryFunctionAddress()
Debug RSet(Hex(Adr),10,"0")+" "+Name$
Wend
EndIf


