Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 19th, 2006, 11:15 PM
Guest
 
Posts: n/a
Default ODBC access driver

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
_________________________________________


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles