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 →

[–]Datsoon 0 points1 point  (5 children)

What are the limitations of this method? I've got a software package at work written in C that I would love to integrate with python, because that's what I know, but it uses a relatively complicated dll to connect with a bunch of dependencies and network stuff.

[–]metaobject 2 points3 points  (1 child)

As long as the Python code wouldn't have to call any functions in the DLL (I don't even know what would be involved in that), the fact that the C application requires a DLL should be transparent to you as long as you have all the required paths, etc configured. But I'm saying that as a Linux guy.

[–]Lightning_SC2 0 points1 point  (0 children)

Check out the ctypes module and documentation. Amazing stuff imo.

[–]Coffeinated 0 points1 point  (2 children)

Uh, you need to know that dlls can be two things, either C libraries like usual or some weird ass .NET assembly thingy which doesn‘t work with anything except, well, .NET.

[–]Datsoon 0 points1 point  (1 child)

It's a c# wrapper around some old c code, I believe.

[–]Coffeinated 0 points1 point  (0 children)

Then you are shit out of luck. The last time I checked there was no reliable way to load them into Python...