Solved

Access Database from MFC

Posted on 2002-06-05
4
204 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 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