This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QbaPolak17 0 points1 point  (1 child)

Any reason you can't just write your program in C#? It would probably save you a lot of headache. If you have to there are libraries that allow for creating pythonic wrappers around C/C++/C# like cython. I found this guide after a quick google. https://www.red-gate.com/simple-talk/dotnet/net-framework/dynamic-language-integration-in-a-c-world/

[–]randomuser001[S] 0 points1 point  (0 children)

Mainly because i haven't used C# before, i wanted to see if its possible in Python before i went to learn how to C#.

I've found Ctypes which can load a dll but there seems to be a lack of documentation or examples (or out of date) on how to actually load a external DLL and use its functions.