homepage needs an update

Started by HPW, January 23, 2004, 03:35:01 AM

Previous topic - Next topic

HPW

Quote
Note, that the Win32 version of newLISP uses standard call (_stdcall) conventions to call DLL library routines. This is necessary to call DLLs belonging to the Win32 operating system like odbc32.dll. Most third party DLL's are compiled for 'C' declaration (_cdecl) conventions and may need wrapper DLL's. newLISP compiled for LINUX and other UNIX uses the _cdecl calling conventions and will not have this problem.



A future version of newLISP will allow both calling conventions on Win32.


With 7.500 the future has happened and the homepage needs an update.



:-)
Hans-Peter

Lutz

#1
In practice you have to do sometimes some experimenting to find out, what is working and what not. I.E. SQLite wants "cdecl" but everything shipped with WinXP seems to be stdcal. Some functions on Windows and CYGWIN libraries work with both! calling conventions.



But there are also libraries which have problems. 'zlib.dll' from zlib.org works fine on the newLISP commandline with "cdecl", but certain functions mess up the stack when you call them from inside other newLISP functions.



MySQL, ODBC, SQLite and LWneuralnet (a newLISP inteface is in the works) seem to be rock solid and never have given me any problems.



Lutz