Skip to content

Commit ed2aa12

Browse files
authored
Update 000-NetJson.Parser.au3
1 parent a32db68 commit ed2aa12

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/000-NetJson.Parser.au3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <Array.au3>
77
#include <MsgBoxConstants.au3>
8+
#include "..\NetWebView2Lib.au3"
89

910
; Global objects handler for COM objects
1011
Global $oMyError = ObjEvent("AutoIt.Error", _ErrFunc)
@@ -17,8 +18,8 @@ Func _Example()
1718
ConsoleWrite(@CRLF & "=== STARTING NETJSON TUTORIAL ===" & @CRLF)
1819

1920
#Region ; 0. Initialize the COM Object
20-
Local $oJson = ObjCreate("NetJson.Parser")
21-
If Not IsObj($oJson) Then
21+
Local $oJson = _NetJson_CreateParser()
22+
If @error Then
2223
MsgBox(16, "Error", "Could not create NetWebView2Lib.JsonParser. Make sure the DLL is registered.")
2324
Return
2425
EndIf

0 commit comments

Comments
 (0)