I want to wrap a .dll under windows and have access to it's functions
etc. The problem is that all I have is the .dll and header file ... no
source ... and as all the examples that I have seen for swig seem to
need the original source ... I was wondering if it is still possible
to get access to the functions stored in the dll? Would anyone be able
to point me in the write direction, docs examples etc if this can be
done at all?
thanks in advance
Ben C
You could use calldll to make the function calls.
You can get it at http://www.nightmare.com/~rushing/dynwin/index.html.
Leazen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9wpzmhcKLjUu3XMkRAuz0AJ9TSRc7saEs+AYf2XwZXE4mGESeSQCgsR/R
o3UV9hWZkfjvEcEKMUvyFjM=
=50Zh
-----END PGP SIGNATURE-----
sorry if this is no help at all. I believe there are tools to produce a
.LIB file from a .DLL. I think that is all you should need. Then the
generated SWIG code could be properly linked the the LIB/DLL. Hopefully
that's all it takes, unfortunately you are on your own for figuring out the
DLL to LIB thing.
> Hi there,
>
> I want to wrap a .dll under windows and have access to it's functions
> etc. The problem is that all I have is the .dll and header file ... no
> source ...
i've successfully wrapped DLL files sans .lib files, by using function
pointer table and LoadLibrary() / GetProcAddress().
see the swig stuff for the PyGoldMine library at:
http://sourceforge.net/projects/pygoldmine/
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pygoldmine/PyGoldMine/SWIG/
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pygoldmine/PyGoldMine/SWIG/gm5s32.i?rev=1.1&content-type=text/vnd.viewcvs-markup
Les Schaffer
I decided to give calldll/windll a go for starters
thanks
Ben