如何将Perl解释器嵌入一个C ++应用程序制作DLL? [英] How can I embed Perl Interpreter inside a C++ application making DLL?

查看:93
本文介绍了如何将Perl解释器嵌入一个C ++应用程序制作DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个内置C ++的DLL,其中包含Perl解释器和一个Perl库

I need a DLL built in C++ having Perl interpreter inside it and a Perl library exiftool by Phil Harvey being called by C++ functions.

我想在Windows 7上使用Visual Studio 2010 VC ++安装。哪个Perl分发最适合此任务: Strawberry ActiveState Perl ?还有,哪个Perl编译命令:nmake或dmake?

I want to do it on Windows 7 with Visual Studio 2010 VC++ installed. Which Perl distribution is best for this task: Strawberry or ActiveState Perl? Also, which Perl compilation command: nmake or dmake?

最后的交付应该是一个DLL。这可以导入任何程序C等DLL函数将调用内部调用Phil Harvey的 exiftool 库函数/参数/开关。

In the end the final deliverable should be a DLL. This can be imported into any program C etc and the DLL functions will be called which will internally be calling Phil Harvey's exiftool library functions/arguments/switches.

推荐答案

如果你安装了Perl,你应该做的第一件事是查看perlesmbed的联机帮助页,即在Unix系统上的man perlembed。由于您使用的是Windows,因此最好查看官方的 Perl文档,了解perlembed a>。

If you've got Perl installed, the first thing you should do is look at the manpage for perlembed, i.e. "man perlembed" on Unix systems. Since you are on Windows, you are better off looking at the official Perl documentation on the web for "perlembed".

在该信息页面上有Win32的特定部分。至于包括perl作为DLL的细节和注意事项,我没有太多帮助。

There's a specific section on Win32 on that information page. As for the specifics and caveats of including perl as a DLL, I'm not much help there.

这篇关于如何将Perl解释器嵌入一个C ++应用程序制作DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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