SkillAgentSearch skills...

WinCCLibrary

No description available

Install / Use

/learn @mfumagalli95/WinCCLibrary
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

WinCCLibrary

Source code to create a simple Dynamic-Link Library (DLL) which can be used in WinCC's script (VBS and C++).

Compile the project and get the DLL

Compile the project with Visual Studio and get the DLL in project path ".../WinCCLibrary/bin/release/WinCCLibrary.dll"

1

Register DLL on system

To use the DLL in WinCC is necessary to register it with the following Command Prompt

C:\Windows\Microsoft.NET\Framework\V4.0.30319>RegAsm /CODEBASE C:\...\WinCCLibrary.dll pause

If all went well you can see the following text in Command Prompt Untitled

Use library's methods in WinCC VBS script

Create a new VBS script file and try library's method as following

Sub WinCCLibTest()

On Error Resume Next
Dim obj
Set obj = CreateObject("WinCCLibrary.dll")
MsgBox(obj.Info())

End Sub

Versions

WinCC Professional v15.1, Visual Studio Community 2019

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks2

Languages

Visual Basic .NET

Security Score

50/100

Audited on Nov 2, 2024

No findings