473,763 Members | 8,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(H DBC);
SQLRETURN SQL_API SQLFreeStmt(SQL HSTMT,SQLUSMALL INT);
SQLRETURN SQL_API SQLBindCol(SQLH STMT,SQLUSMALLI NT,SQLSMALLINT, SQLPOINTER,
SQLINTEGER,SQLI NTEGER*);
SQLRETURN SQL_API SQLFetch(SQLHST MT);
SQLRETURN SQL_API SQLAllocStmt(SQ LHDBC,SQLHSTMT* );
SQLRETURN SQL_API SQLDriverConnec t(SQLHDBC,SQLHW ND,SQLTCHAR*,SQ LSMALLINT,
SQLTCHAR*,SQLSM ALLINT,SQLSMALL INT*,SQLUSMALLI NT);
SQLRETURN SQL_API SQLAllocConnect (SQLHENV, SQLHDBC*);
SQLRETURN SQL_API SQLAllocEnv(SQL HENV*);
SQLRETURN SQL_API SQLExecDirect(S QLHSTMT,SQLTCHA R*,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 _SQLDriverConne ct@32
error LNK2001: unresolved external symbol _SQLAllocConnec t@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): +27831422356499 36
More ways to contact me: http://wwp.icq.com/235649936
_______________ _______________ ___________
Jan 19 '06 #1
0 2126

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1842
by: Joe | last post by:
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, ' String data, right truncated on column number 3 (Expr1002)', 3326)
1
2143
by: rguti | last post by:
Anybody know when the new version of the ODBC Driver is gonna be out? I'm using 3.51.11-1, but I'm having problems transferring information from SQL Server. Thanks.
11
17570
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time to load making any kind linkage with my Access data virtually useless. I have the MySQL driver setup in as a USER DSN. The MySQL data is sitting out on a server and the Access database is running locally. The network connection is very...
4
5650
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
1
8738
by: MLH | last post by:
I'm running XP. Is it required that a given ODBC driver be selected or set somehow as a default driver? Look at this... Here's the error: Error: ODBC call failed... Datasource not found and no default ODBC driver specified. I think I can work my way around the Datasource, but the default driver thing (#0) - dunno?
1
3388
by: Salad | last post by:
Hi: I am developing an application using FoxPro 2.x tables. My client has AccessXP. AccessXP uses Visual Foxpro ODBC to connect to tables. It does not accept the ISAM Foxpro driver used in A97. I have a problem that when I link to the tables on the client machine AccessXP does not recognize boolean values in the FoxPro tables. I assume this is due to the ODBC driver. I'd like to test this out on my development machine. I...
0
755
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x8fc Thread 0x934 DBC 0x437b94 Jet'. ERROR Driver's SQLSetConnectAttr failed ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN...
0
12067
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
8
9637
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query work from
4
1814
by: Jeff | last post by:
I need to export MySQL data to Access. As always, there seems to be more than one way to do this. I notice that PHP has: DB.php If I was doing this in perl, there would be an ODBC driver (DBD::ODBC). Is there such a thing in PHP? Can this play well with DBO? I see some commercial driver products, but my needs are modest as I'm
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.