A DLL (Dynamic Link Library) is a library that contains code and data that can be used by more than one program at the same time. Some DLLs come with the Windows operating system while others are added when new programs are installed.
Function:
scribe.InvokeDLL(ByVal DLLPath As String, ByVal NamespaceAndClassName As String, ByVal Methodname As String, ByRef ArgumentArray() As Object, Optional ByRef ErrorMsg As
String = "") As Object
Description:
This allows you to call a custom DLL from M5.
Eg:
scribe.InvokeDLL(“c:\mydll.dll”,”MyNamespace.MyClassName”,”HelloWorld”, ,arrArgs,_errormsg))
Return value:
Object (Whatever returned by the function you are calling)
How to invoke DLL
In your application page, click Edit.

Click External DLL Libraries.

Click Register a new External Library.

Put a library name and upload your dll file. Click Create now.

Click OK on the message pop up.

This is your dll file after been created.

Go to your application page then click on the form.

Click Form Behavior.

Click Create new behavior.

Put the appropriate caption. Click Action wizard.

Click Create an action.

Click Call DLL.

Select DLL, Service Name and Method Name. Click OK.

Click Save changes.

Click View code. To notify the user that the form is using the custom DLL, modify existing code so that it shows a message. Add below code:
Scribe.DisplayMessage(returnValue)
Click Check Syntax. If no error then click Save and close.

Click Create now.

Example how it look in the form:

Commenti