From 2d570fb8c065cb78e5eaffc5ab2cd35233eee165 Mon Sep 17 00:00:00 2001 From: Developer01 Date: Mon, 29 Dec 2025 14:41:55 +0100 Subject: [PATCH] =?UTF-8?q?*=20=E2=80=9ELinie=20497:=20The=20error=20BC304?= =?UTF-8?q?51=20is=20caused=20by=20the=20use=20of=20'oConnect'=20which=20i?= =?UTF-8?q?s=20not=20declared=20anywhere=20in=20the=20method=20or=20class.?= =?UTF-8?q?=20According=20to=20the=20comments,=20WMConnect=20is=20not=20de?= =?UTF-8?q?fined=20or=20available=20in=20the=20current=20project=20or=20it?= =?UTF-8?q?s=20references.=20To=20fix=20the=20error,=20the=20problematic?= =?UTF-8?q?=20line=20is=20commented=20out=20and=20a=20note=20is=20added=20?= =?UTF-8?q?to=20declare=20and=20instantiate=20'oConnect'=20as=20the=20appr?= =?UTF-8?q?opriate=20type=20if/when=20the=20correct=20reference=20is=20ava?= =?UTF-8?q?ilable.=E2=80=9C=20in=20Datei=20=E2=80=9EWindream\Windream.vb?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Windream/Windream.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windream/Windream.vb b/Windream/Windream.vb index ef94b804..5bef6bd9 100644 --- a/Windream/Windream.vb +++ b/Windream/Windream.vb @@ -494,7 +494,8 @@ Public Class Windream .aDomain = Domain } - oConnect.ModuleId = 9 + ' ERROR: oConnect is not declared. Please declare oConnect as the appropriate type (e.g., WMConnect or IWMConnect2) and ensure it is properly instantiated before use. + ' oConnect.ModuleId = 9 End If End If If oImpersonation = False Then