In this part I’m going to show how to make a simple extension in C# using VS2013. While you can make a library .dll in C# it is slightly different from C++ .dll, and I don’t think you can use it in the same way. However, the good news is that you can make C++ .dll but write your code in C# inside of it. Bear with me, because I don’t really know C# but I know how to Google .
Ok, first thing is first. Follow this guide and create a C++ .dll project, call it test_cs. Follow the guide up to the point when you have to paste code in it. Instead of pasting the code provided, post this code:
It contains both C++ and C# languages. You should now also have multiple IntelliSense complains as VS2013 is not recognising C#. Go to Project -> Properties -> General and change Common Language Runtime Support to (/clr):
Apply this and it should do the trick. Now go back to this guide to check on how to complete the .dll creation. Place test_cs.dll in Arma 3 main folder and run this test:
If everything went ok, you should see your input in the hint:
EDIT: Another tutorial for those wanting to make .dll in C#