-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
According to:
https://www.autoitscript.com/forum/topic/149405-using-a-com-property-out-of-not-registered-dll/#findComment-1064413
Dll registration is not required the UDF/script can work out of the box:
How To:
....
....
....
Global $g_sDLLPath = @ScriptDir & "\NetWebView2Lib.dll"
....
....
....
Func _Web_ObjectsInit($sProfilePath = @ScriptDir & "\UserDataFolder") ; Create the Manager Instance
; A. Create the Manager Instance
Local $hDll = DllOpen($g_sDLLPath)
;~ $oWeb = ObjCreate("NetWebView2.Manager") ; REGISTERED VERSION
$oWeb = ObjCreate("NetWebView2.Manager", "{CCB12345-6789-4ABC-DEF0-1234567890AB}", $hDll) ; NOT REGISTERED VERSION
If Not IsObj($oWeb) Then Return MsgBox(16, "Error", "WebView2 DLL not registered!")
_NetWebView2_ObjName_FlagsValue($oWeb)
....
Please notice that it is important to use global for DLL file path as it can be in different location in case user want to have separate directory for DLL files
btw.
It has been working flawlessly for 12 years in my QuickPDF UDF file.
Could you update yours UDF and examples ?
btw.
As I said on AutoIt forum I will get more involved in this project from the AutoIt programming side (UDF creation) in February.
Metadata
Metadata
Assignees
Labels
No labels