Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 3.11 KB

File metadata and controls

83 lines (63 loc) · 3.11 KB

EN

How to import a C# code file into VCPL

In order to import the C# library (.dll), it is necessary to write:

#include(FileName\Or\PathToFile\WithoutFormat)

Or

#include(FileName\Or\PathToFile\WithoutFormat, NamespaceName)

To use data from the library, write:

yournamespace.data

Clarification

When specifying a NOT file, write its .dll format, and the file itself must necessarily have the .dll format. Also, the version of .NET in your library must be the same as the program you are using.

If you import a file with a full path and no namespace specified, your namespace will be the filename instead of the full path.

The library file must have the same name as the namespace in it, and the code must also contain a Library class with a public static field Items of type ICollection<(string? name, object? value)>.

The namespace that was used will also be added to the constant stack.

When developing your library, import the GlobalInterface module to it. This will allow you to create functions and manage pointers to them

UA

Як імпортувати файл з кодом C# до VCPL

Для того щоб імпортувати бібліотеку С# (.dll) необіхдно написати:

#include(FileName\Or\PathToFile\WithoutFormat)

Або

#include(FileName\Or\PathToFile\WithoutFormat, NamespaceName)

Для використання данних з бібліотеки напиши:

yournamespace.data

Уточнення

При вказанні файлу НЕ пишіть його формат .dll, а сам файл повинен мати обов'язково формат .dll. До того ж версія .NET у вашій бібліотеці повинна бути тою ж що і програма яку ви використовуєте.

Якщо ви імпортуєте файл з повним шляхом і без вказання простору імен вашим простором імен стане ім'я файлу а не весь шлях.

Файл бібліотеки обов'язково повинен мати назву туж саму, що і простір імен у ньому, також код повинен містити клас Library з публічним статичним полем Items типу ICollection<(string? name, object? value)>.

Простір імен, що був використаний також додастся до стеку констант.

При розробці своєї бібліотеки імпоруйте до неї модуль GlobalInterface. Це дозволить вам створювати функції та керувати вказівниками в них