如何在不使用com的情况下在perl中调用C ++ DLL? [英] How can I call a C++ dll in perl without using com?

查看:106
本文介绍了如何在不使用com的情况下在perl中调用C ++ DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在不使用COM的情况下在perl代码中调用C ++ dll的示例。该库是在visual studio 2010中编写的。我正在搜索并发现使用extern C __dllexport声明该方法并使用win32 :: API->编写perl脚本可以帮助我实现相同的目的。是否有任何链接或相同的完整示例?

I am looking for examples to call a C++ dll in a perl code without using COM. The library is written in visual studio 2010. I was searching through and found declaring the method using extern C __dllexport and writing a perl script using win32::API->new() can help me achieve the same. Is there any links or complete example for the same?

推荐答案

找到它..这个链接成功地为我工作。 http://eli.thegreenplace.net/2006 / 12/04 / compiling-c-dlls-and-using-them-from-perl / [ ^ ]
Found it..This link worked for me successfully. http://eli.thegreenplace.net/2006/12/04/compiling-c-dlls-and-using-them-from-perl/[^]


这篇关于如何在不使用com的情况下在perl中调用C ++ DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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