Posts: 12
Threads: 4
Joined: Feb 2005
Hi There,
Just to inform you that I have posted/attached my COMAL freebasic demo code with source here, in the Miscellaneous section:
http://fbtk.qbtk.com/phpBB2/index.php
Regards
John
Posts: 838
Threads: 17
Joined: Jan 2002
url=http://www.copy-pasta.com]CopyPasta[/url] -
FilePasta
Posts: 922
Threads: 15
Joined: Jun 2003
Cool, btw, seems like LCC added the full path to the DLL's name, so Windows won't find the dll's needed, even if they are at the same path as the demos, i had to create a .def, strip the path from it and recreate the import libs and recompile the examples -- i tested the Excel one, as i don't have anything else installed, it worked fine, btw ;).
I was going to include the disphelp's headers to the next release, lets see how the headers get translated by the SWIG wrapper i'm coding (i won't do the translation by hand :P).
Posts: 12
Threads: 4
Joined: Feb 2005
Hi v3cz0r
Excuse the delay in responding.
How did you make the .def file for comal? as I have tried the various pexports/dlltool methods as shown in this forum without success. Could you post a batch file and/or full instructions as to what you did to acheive success.
Regards
John
Posts: 922
Threads: 15
Joined: Jun 2003
Hi, it's not too simple, i wonder if LCC has no option to not include the full path when creating the DLL's, that would be easier to do, anyways.
For each DLL, you have to:
- create a def file with the exports, i used pexports (
http://www.emmestech.com/software/cygwin...ports.html) for that: pexports -o somedll.dll >somedll.def
- edit the .def removing the path from the 1st line LIBRARY
- create the import library using dlltool (at freebasic/bin/win32): dlltool -d somedll.def -D somedll.dll -l libsomedll.dll.a