AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Create an ODBC Driver

Ein Thema von mohfa · begonnen am 11. Feb 2007 · letzter Beitrag vom 19. Feb 2007
Antwort Antwort
Seite 1 von 3  1 23      
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#1

Create an ODBC Driver

  Alt 11. Feb 2007, 18:05
< i'm very sorry to write in english , why in this forum : cause i have been told to post my question here in delphipraxis forum >. sorry again .

Hi every body , i have finished programming my DBMS ( a BDE replacment with my propre Table , Query , Database ) , my DBMS
uses SQL 92 .

so i want to create - write - my DBMS Driver.
i have been told to convert my DBMS pas files into C or C++ then use MVC++ to create this ODBC Driver.

could you please help me to create this ODBC Driver using Delphi .

I really need your help.

michy
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.195 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: Create an ODBC Driver

  Alt 11. Feb 2007, 19:00
Why do you want to create in 2007 a ODBC-Driver?

If I use .NET i want a native ADO.NET Provider, if I use Delphi (Win32) I would like to see native TDataset-Components. No Installation of ODBC-Driver and no setup of ODBC-Entry. And for Win64 - there is no ODBC any more.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#3

Re: Create an ODBC Driver

  Alt 11. Feb 2007, 22:42
yes sir of course , But i was asked by 2 of my customers to give them an odbc driver for my DBMS .

really i need all ur help


regards michy
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#4

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 18:40
please is there any help.
  Mit Zitat antworten Zitat
shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#5

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 19:12
Do you know microsoft's ODBC documentation ?
http://msdn2.microsoft.com/en-us/library/ms709326.aspx
You need several weeks to fully understand how to write a ODBC driver.
You have to implement about 15 to 25 functions in your ODBC DLL.
Andreas
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#6

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 21:06
Zitat von shmia:
Do you know microsoft's ODBC documentation ?
http://msdn2.microsoft.com/en-us/library/ms709326.aspx
You need several weeks to fully understand how to write a ODBC driver.
You have to implement about 15 to 25 functions in your ODBC DLL.
yes sir , that's what i did the problem is with the DLL Exported Functions especiqlly with ConfigDriver and ConfigDSN functions.
so what i did :
i imlemented a unit named ODBCConst : where i declared all the Functions and this is a simple of the Unite :
Delphi-Quellcode:
function SQLAllocConnect(henv :Longint;var phdbc :Longint): Integer;
   stdcall;
function SQLAllocEnv(var phenv :Longint): Integer;
   stdcall;
function SQLAllocStmt(hdbc :Longint;var phstmt :Longint): Integer;
   stdcall;
function SQLBindCol(hstmt :Longint;icol :Word; fCType :Smallint;
   var rgbValue ;cbValueMax :Longint;var pcbValue): Integer;
   stdcall;
function SQLBindParameter(StatementHandle :Longint; ParameterNumber :Word;
   InputOutputType :Smallint; ValueType :Smallint;
   ParameterType :Smallint;
   ColumnSize :Longint; DecimalDigits :Smallint;
      ParameterValuePtr : Pointer;
   BufferLength :Longint;
      StrLen_or_IndPtr : Pointer
      ): Integer;
   stdcall;
function SQLConfigDriver(
  hwndParent: HWND;
  fRequest: WORD;
  lpszDriver: LPCSTR;
  lpszArgs: LPCSTR;
  lpszMsg: LPSTR;
  cbMsgMax: WORD;
  var pcbMsgOut: WORD): BOOL; stdcall;
 function ConfigDSN(
  hwndParent: HWND;
  fRequest: WORD;
  lpszDriver: LPCSTR;
  lpszAttributes: LPCSTR): BOOL; stdcall;
.....
ok as you see i have declared the functions SQLConfigDriver , and ConfigDSN
i export these 2 functions from the DLL File ( the ODBC Driver ), and i use a form to config the DSN the Driver is installed in the ODBC manager but the Result is so is there any thing wrong here
.

if you want i can send you my ODBC Driver and you can see or help . ,any thanks

if possible could you please send me an exe,ple of an ODBC Driver .

Regards MICHY
  Mit Zitat antworten Zitat
Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.492 Beiträge
 
Delphi 7 Enterprise
 
#7

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 21:07
Therer is an PostGres driver availabe under http://www.postgresql.org/ftp/odbc/versions/src/
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.858 Beiträge
 
Delphi 11 Alexandria
 
#8

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 21:10
Same for FireBird: http://sourceforge.net/project/showf...kage_id=119024
Markus Kinzler
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#9

Re: Create an ODBC Driver

  Alt 12. Feb 2007, 21:12
Zitat von Union:
Therer is an PostGres driver availabe under http://www.postgresql.org/ftp/odbc/versions/src/
many thanks Union but this driver is written in C language and that's what i was asked to do : convert your Pas file into C then creating your ODBC Driver will be as easy as you think.
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#10

Re: Create an ODBC Driver

  Alt 13. Feb 2007, 20:02
i'm really still for someone to help me .
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 1 von 3  1 23      


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:57 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz