Thema: Delphi Create an ODBC Driver

Einzelnen Beitrag anzeigen

Reinhard Kern

Registriert seit: 22. Okt 2006
772 Beiträge
 
#19

Re: Create an ODBC Driver

  Alt 17. Feb 2007, 17:13
Zitat von mohfa:
...
Should i convert all My DBMS Pas Files into C++ or what ?
...
Hello, maybe i do not understand your problem at all. From the time on when there appeared programmable objects like the first microprocessors i used mixed language programming, C and Assembler, Delphi + Assembler + C, or whatever ist necessary. We all use today Delphi + C/C++, since Win32 API is written in C/C++ and it is definded in C/C++. It is really impossible to write a single language software, so mixed language cannot be a problem at all!

Of course you need not to port your software to C/C++ - you just use it from your driver written in C/C++. To give a simple example: there is surely a function to read a record from the database, and surely the ODBC driver needs this function at a certain point. The functionality of "ReadRecord" remains defined by Pascal if you have decided so in the past. Your newly created driver just calls this function - it does not really matter if from a Delphi or a C environment; between DLLs the language is not important and for direct calls you need some knowhow about calling conventions.

But, as i said, maybe i dont understand anything.

SY Reinhard
  Mit Zitat antworten Zitat