Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.

Sergey Alexandrovich Kryukov 31-Oct-12 14:07pm    
What is "Linux webserver"?! I know Apache and others, not this beast. Enlighten us if you can. :-)
Peterman3 31-Oct-12 14:15pm    
Sorry it is a linux debian server running lighttpd+PHP
Sergey Alexandrovich Kryukov 31-Oct-12 14:08pm    
Windows DLL? ActiveX? Even if you knew some sophisticated way of doing it (simulation, virtualization), better forget it. To me, ActiveX is the abuse even for Windows?
What, you don't have source code for this DLL to re-compile it on Linux? If not, why using it at all?
Peterman3 31-Oct-12 14:15pm    
NO it is a special DLL file that does handwriting recognition and the company that makes it do not have anything but win32 build. there are only 2 companies in the world and I'm stuck with either one.both have only win32 dll.
Sergey Alexandrovich Kryukov 31-Oct-12 14:48pm    
I really sorry for you, but Linux and Windows are very different OS with incompatible native executable modules.
If there any chance that you can use Windows .NET DLL? If this is a .NET assembly, you can always use it in Linux.

1 solution

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:[^],[^];
see also:

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

For Windows, it could be Visual Studio or open-source MonoDevelop:[^],[^].

For Linux, primary IDE is SharpDevelop:[^],[^].

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

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900