Forum > General

Help me with create .dll and .so

<< < (6/6)

JuhaManninen:

--- Quote from: xinyiman on June 29, 2010, 05:15:07 am ---So I am not able to find a method crossplatform (win, linux) to get the odbc dsn and related information.

--- End quote ---

ODBC is basically Windows only, although there are some Linux libs and other hacks made for it.

If you really want to make a crossplatform application, why would you want to use ODBC?

Juha

xinyiman:

--- Quote from: JuhaManninen on June 29, 2010, 06:00:36 am ---
--- Quote from: xinyiman on June 29, 2010, 05:15:07 am ---So I am not able to find a method crossplatform (win, linux) to get the odbc dsn and related information.

--- End quote ---

ODBC is basically Windows only, although there are some Linux libs and other hacks made for it.

If you really want to make a crossplatform application, why would you want to use ODBC?

Juha


--- End quote ---
Exist on linux and unix-odbc work quite well. So I would not say that there are only on windows.

JuhaManninen:

--- Quote from: xinyiman on June 29, 2010, 06:19:04 am ---Exist on linux and unix-odbc work quite well. So I would not say that there are only on windows.

--- End quote ---

At least it doesn't work well with FPC as you have noticed. If you make a crossplatform DB application using FPC / Lazarus there are much better alternatives than ODBC.

Juha

xinyiman:
Really works very well, but I can not retrieve the DSN (on linux) and tables (on windows). I suggest some other option for cross-platform

JuhaManninen:

--- Quote ---Really works very well, but I can not retrieve the DSN (on linux) and tables (on windows).
--- End quote ---

It means it does not work very well. :-)
Cross platform ODBC seems to be supported by Lazarus, I didn't even know:
  http://wiki.lazarus.freepascal.org/ODBCConn

If you still want to use ODBC, you should report / fix bugs for it. A self made DLL coded with C doesn't sound like a good idea.
Anyway, I still recommend to use some other DB connection method for crossplatform.

Firebird and SQLite are crossplatform DBs, commonly used with FPC. There is a Lazarus builtin connection and there is ZEOSlib.

  http://wiki.lazarus.freepascal.org/Databases
  http://wiki.lazarus.freepascal.org/Lazarus_DB_Faq

You could read messages and maybe ask further questions here :
  Forum > Programming > Databases

Juha

Navigation

[0] Message Index

[*] Previous page

Go to full version