By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

ODBC access driver

P: n/a
I am working with the Microsoft 6 Visual Studio C++ standartd edition

I have an ODBC access driver, and I got it to work in a tester program, but
I get C++ mangled names when I try to use an MFC application.

Can I get microsoft support for this.
I put these statements in a header but it still didn't work..

I would like to ask for a support but I forgot how.

extern "C" {
SQLRETURN SQL_API SQLFreeEnv(HENV);
SQLRETURN SQL_API SQLFreeConnect(HDBC);
SQLRETURN SQL_API SQLDisconnect(HDBC);
SQLRETURN SQL_API SQLFreeStmt(SQLHSTMT,SQLUSMALLINT);
SQLRETURN SQL_API SQLBindCol(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPO INTER,
SQLINTEGER,SQLINTEGER*);
SQLRETURN SQL_API SQLFetch(SQLHSTMT);
SQLRETURN SQL_API SQLAllocStmt(SQLHDBC,SQLHSTMT*);
SQLRETURN SQL_API SQLDriverConnect(SQLHDBC,SQLHWND,SQLTCHAR*,SQLSMAL LINT,
SQLTCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLUSMALLINT);
SQLRETURN SQL_API SQLAllocConnect(SQLHENV, SQLHDBC*);
SQLRETURN SQL_API SQLAllocEnv(SQLHENV*);
SQLRETURN SQL_API SQLExecDirect(SQLHSTMT,SQLTCHAR*,SQLINTEGER);
e.g.
error LNK2001: unresolved external symbol _SQLFreeEnv@4
error LNK2001: unresolved external symbol _SQLFreeConnect@4
error LNK2001: unresolved external symbol _SQLDisconnect@4
error LNK2001: unresolved external symbol _SQLFreeStmt@8
error LNK2001: unresolved external symbol _SQLBindCol@24
error LNK2001: unresolved external symbol _SQLFetch@4
error LNK2001: unresolved external symbol _SQLAllocStmt@8
error LNK2001: unresolved external symbol _SQLDriverConnect@32
error LNK2001: unresolved external symbol _SQLAllocConnect@8
error LNK2001: unresolved external symbol _SQLAllocEnv@4
error LNK2001: unresolved external symbol _SQLExecDirect@12

(I know some of these functions are depreciated but they worked in one but
program)

_________________________________________ Mitchell McNurlin ICQ#:235649936
Current ICQ status: SMS: (Send an SMS message to my ICQ): +2783142235649936
More ways to contact me: http://wwp.icq.com/235649936
_________________________________________
Jan 19 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more Microsoft Access / VBA Questions on Bytes