Solved

Access Database from MFC

Posted on 2002-06-05
4
188 Views
Last Modified: 2013-11-20
    I am new to Visual C++ and creating an MFC application to speak with database servers using ODBC API calls. When i am building my application, it shows me an ERROR LNK2001: UNRESOLVED EXTERNAL SYMOBL _SQLSetEnvAttr@16.

     I don't know where the problem is? Is there any attribute settings to be done before building the application? Can any one of you plz help me to fix it?

Note: Created the DLL with same code doesn't make any problem.

Thanks in advance.
     
0
Comment
Question by:jvnoth
  • 2
4 Comments
 

Accepted Solution

by:
dessi earned 50 total points
ID: 7070502
Check in the project setting if odbc dll's are linked

odbc32.lib odbccp32.lib
0
 

Expert Comment

by:dessi
ID: 7070510
If you can create a DLL with the same code, just compare the link settings of your the 2 projects
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now