ODBC Connect dialog: lacks text if api called from dll
mfritschi
-
10 août 2001 à 18:14
marsteau
Messages postés3Date d'inscriptiondimanche 2 juin 2002StatutMembreDernière intervention 2 juin 2002
-
2 juin 2002 à 12:08
hi,
i am writing an abstract data access framework. it enables us among
other things to access databases without being interested in the
actual underlying driver.
to accomplish this, the actual database access is implemented in a
dll which gets loaded dynamically at runtime. i wrote some odbc
code (getting environment, connecting, doing a query, disconnecting,
releasing what's necessary) which works fine in an executable.
the following problem appears in an dll: the 'select data source'
window appears, but all text fields are empty (even the buttons lack
text), and the connection fails.
anybody any ideas?
best regards,
matthias fritschi
A voir également:
ODBC Connect dialog: lacks text if api called from dll
marsteau
Messages postés3Date d'inscriptiondimanche 2 juin 2002StatutMembreDernière intervention 2 juin 2002 2 juin 2002 à 12:08
hi
the connection string you gave to the SQLDriverConnect ODBC API call might be incorrect. Therefore opens this dialog box, and prompts you to enter connection details. To avoid getting such a window, try the option "SQL_DRIVER_NOPROMPT":
this will not show any window any more, but the connection will still fail if you do not correct the string.
look at your MSDN Online help for more issues related to that problem