使用Elmer生成C代码,然后创建dll [英] Using Elmer to generate C code and then create dll

查看:144
本文介绍了使用Elmer生成C代码,然后创建dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想看看有没有人尝试过这样的事情,并得到一些建议,不管是否追求这个想法。我有一个Python脚本,我想从中创建一个dll。在进行一些研究之后,执行此任务的最佳方法是将python脚本嵌入到C中,然后从C代码生成一个dll。



然后我发现Elmer Software Glue: http:/ /elmer.sourceforge.net/index.html ,它将Python模块嵌入到C中。我想我可以使用Elmer将我的python代码嵌入到C中,并从中创建一个dll。

$ b我有任何人会给我一些保证,这可以工作,如果不是也许一些替代方案。我可以接受任何和所有的建议。

解决方案

所以我联系了ELmer背后的个人,他们很高兴创造了一个例子关于如何从Elmer的代码生成一个DLL。该示例可以在以下链接中找到: http://elmer.sourceforge.net/examples.html #WINDOWSDLL


I wanted to see if anyone has tried something like this and to get some advice whether or not to pursue this idea. I have a Python script which I would like to create a dll from. After doing some research, the best way to perform this task would be to embed the python script into C and then generate a dll from the C code.

I then found Elmer Software Glue: http://elmer.sourceforge.net/index.html, which embeds a Python module into C. I am thinking I could use Elmer to embed my python code into C and from there create a dll.

I anyone would give me some reassurance that this could work and if not maybe some alternatives. I am open to any and all suggestions.

解决方案

So I contact the individuals behind ELmer and they were nice enough to create an example as to how to create a DLL from the code generate from Elmer. The example can be found in the following link: http://elmer.sourceforge.net/examples.html#WINDOWSDLL

这篇关于使用Elmer生成C代码,然后创建dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆