Click to See Complete Forum and Search --> : DLL and Linux
wernerh
May 9th, 2002, 07:26 AM
I have written a DLL in VB6.
Can this DLL run on a Linux/Unix platform?
If not, how do I convert this component to something that can run on Linux/Unix?
Does it need to be rewritten in another language?
jim mcnamara
May 9th, 2002, 12:44 PM
dll's do NOT work in unix.
The closest thing to a dll in unix is an object library file that is linked dynamically (default behavior).
Gnu gcc will compile vanilla Microsoft VC++ code. gcc is available from www.gnu.org.
You will have strip off some of the _stdcall stuff from functions and other goodies. In other words, port the code to linux.
Compile it to either a .o file or into an object library file. Be sure to generate PIC - position independent code.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.