在Linux Web服务器上使用DLL/ActiveX库 [英] using a DLL/ActiveX library on a linux webserver

查看:120
本文介绍了在Linux Web服务器上使用DLL/ActiveX库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我被困在使用执行编码/解码的DLL/ActiveX库文件.
我有一个在Linux服务器上运行PHP的网络服务器,我用PHP进行所有编程.
我需要找到一种将数据发送到此DLL并获取JSON响应的方法.
我在VC ++和VB中有示例代码,我对VC ++有所了解.
如果有人可以指导我使用什么方法来制作linux可执行文件或进程,那么我可以在特定端口上发送数据并获取结果,或者只运行"my-prog XXXXX"之类的命令即可YYYYY.

谢谢
Peter

Hi everyone,

I''m stuck in using a DLL/ActiveX library file that does encoding/decoding.
I have a webserver running PHP on a linux server and I do all my programming in PHP.
I need to find a way to send data to this DLL and get back the response in JSON.
I have sample codes in VC++ & VB, I know a little bit of VC++.
If someone can guide me on what to use to make a either a linux executable or a process where I can just send the data on a specific port and get back the results or just running a command like "my-prog XXXXX" and get back YYYYY.

Thanks
Peter

推荐答案

是的,如果您具有作为.NET程序集开发的产品版本,则可以解决问题.由于Windows DLL的使用几乎是100%绝望的,请考虑这是您自己的机会.

CLI/CLR由Mono完全实现,可在所有版本的Linux以及其他系统上使用.由于该代码已编译为某些字节代码(SIL,也称为MSIL),最后仅在运行时才编译为CPU指令,因此您可以在Mono 下使用.NET程序集而无需重新编译.您甚至可以在Linux上进行开发.

请参阅:
http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ],
http://www.mono-project.com/Main_Page [ http://en.wikipedia.org
/wiki/Common_Language_Infrastructure
[ ^ ],
http://en.wikipedia.org/wiki/Common_Language_Runtime [ http://en.wikipedia.org/wiki/JIT_compiler [ http://en.wikipedia.org/wiki/Standard_Interchange_Language [ http://en.wikipedia.org/wiki/MonoDevelop [ http://monodevelop.com/ [ ^ ].

对于Linux,主要的IDE是SharpDevelop:
http://en.wikipedia.org/wiki/SharpDevelop [ http://www.icsharpcode.net/OpenSource/SD/Default.aspx [ ^ ].

但是,SharpDevelop和MonoDevelop的现代版本都是多平台的.

—SA
Yes, if you have a version of a product developed as a .NET assembly, your problem is solved. As using of Windows DLLs is nearly 100% hopeless, consider this is your own chance.

CLI/CLR is fully implemented by Mono, which can be used on all versions of Linux, as well as other systems. As the code is compiled to some byte code (SIL, a.k.a. MSIL) and finally compiled to CPU instructions only during run time, you can use .NET assemblies under Mono without recompilation. You can even do development on Linux.

Please see:
http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^];
see also:
http://en.wikipedia.org
/wiki/Common_Language_Infrastructure
[^],
http://en.wikipedia.org/wiki/Common_Language_Runtime[^],
http://en.wikipedia.org/wiki/JIT_compiler[^],
http://en.wikipedia.org/wiki/Standard_Interchange_Language[^].

You can develop on Windows for .NET or on Linux.

For Windows, it could be Visual Studio or open-source MonoDevelop:
http://en.wikipedia.org/wiki/MonoDevelop[^],
http://monodevelop.com/[^].

For Linux, primary IDE is SharpDevelop:
http://en.wikipedia.org/wiki/SharpDevelop[^],
http://www.icsharpcode.net/OpenSource/SD/Default.aspx[^].

However, modern versions of both SharpDevelop and MonoDevelop are multiplatform.

—SA


这篇关于在Linux Web服务器上使用DLL/ActiveX库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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