considering fact that you are asking this, you should really think if you want to get involved at all. you have been warned.
https://www.wikihow.com/Create-DLL-Files
https://www.youtube.com/results?search…3F&search_type=
any application development software targeting Windows can be used ot make DLL file.
heck if you really wanted to, you can hand assemble it using hex editor
one easy way to start is to get programming software from company thad made Windows itself.
for example you can get VisualStudio of particular vintage or edition and get started. there is tons of tutorials on Youtube.
for example VB.NEt or C# are some of languages available in VisualStudio.
common path is to start with basics and adopt more as you go along.
learn about forms and standard controls, declarations, properties, objects, classes, timers etc.
then try something bigger like DataGridView etc.
then add reference to external controls (OCX, ActiveX) and use them in your program (this opens up a world of possibilities).
Dependencywalker is used to sniff out what they can do and what else they depend on.
then learn communication (open close socket, etc.) and communicate with KRC4 for example.
finally how to do the same but pack it into a DLL instead of EXE.
now you need to figure out how to integrate it in KRC4 HMI so it can be loaded, and selected from menu.