[Mono-devel-list] Should DB2CLient use db2cli.dll?
mark.easton at blinksoftware.co.uk
Sat Dec 20 11:10:46 EST 2003
I've been playing with P/Invoke recently and have become stumped by the
DllImports in DB2ClientPrototypes.cs
All the DllImport attributes seem to specify db2cli.dll as the native
[DllImport("db2cli.dll", EntryPoint = "SQLExecute")]
internal static extern short SQLExecute(IntPtr handle);
While I understand that this will work on Win and could be made to work
on other OSes by using a <dllmap/> in the config file, it is my
understanding that the DB2CLI library is called db2cli.so on Linux and
that therefore if the .dll were dropped from all the declarations the
code would automatically work on Linux without the need for dllmapping.
So can anyone corroborate whether there's a shred of truth in my
musings, or is it time for me to go back to the hospital?
More information about the Mono-devel-list