]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/dlproc.c
6 * Load driver and resolve driver's function entry point
8 * The iODBC driver manager.
10 * Copyright (C) 1995 by Ke Jin <kejin@empress.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
43 _iodbcdm_getproc (HDBC hdbc
, int idx
)
45 DBC_t FAR
*pdbc
= (DBC_t FAR
*) hdbc
;
50 if (idx
<= 0 || idx
> SQL_EXT_API_LAST
)
51 /* first entry naver used */
53 return SQL_NULL_HPROC
;
56 penv
= (ENV_t FAR
*) (pdbc
->henv
);
60 return SQL_NULL_HPROC
;
63 phproc
= penv
->dllproc_tab
+ idx
;
65 if (*phproc
== SQL_NULL_HPROC
)
71 en_idx
= odbcapi_symtab
[i
].en_idx
;
73 if (en_idx
== en_NullProc
)
80 *phproc
= _iodbcdm_dllproc (penv
->hdll
,
81 odbcapi_symtab
[i
].symbol
);
93 _iodbcdm_dllopen (char FAR
* path
)
95 return (HDLL
) DLL_OPEN (path
);
100 _iodbcdm_dllproc (HDLL hdll
, char FAR
* sym
)
102 return (HPROC
) DLL_PROC (hdll
, sym
);
107 _iodbcdm_dllclose (HDLL hdll
)