09-25-2013, 03:00 PM
Macro Macro2132
Often don't need to register COM dlls. Try this:
Macro Macro2133
If have type library:
Macro Macro2135
Can use LoadLibrary, but usually we declare dll functions instead:
dll "sydt.dll"
,Func1 a b
,Func2 c d
Need to declare correct parameter types etc, read more in dll help.
Many Windows API are already declared, + you can download more Windows declarations.
;Shell "regsvr32 / s "
RegisterComComponent "sydt.dll" 4
;Set sydt = CreateObject ("sy.dt")
IDispatch sydt._create("sy.dt")
Often don't need to register COM dlls. Try this:
Macro Macro2133
;Set sydt = CreateObject ("sy.dt")
IDispatch sydt._create("{SYDT-CLASS-GUID}" "sydt.dll")
If have type library:
Macro Macro2135
;Set sydt = CreateObject ("sy.dt")
typelib Sydt "sydt.dll" 1
Sydt.Class1 sydt._create(0 "sydt.dll")
;or
IDispatch sydt._create(uuidof(Sydt.Class1) "sydt.dll")
;or, if component registered
Sydt.Class1 sydt._create
Can use LoadLibrary, but usually we declare dll functions instead:
dll "sydt.dll"
,Func1 a b
,Func2 c d
Need to declare correct parameter types etc, read more in dll help.
Many Windows API are already declared, + you can download more Windows declarations.