Solved

Access Database from MFC

Posted on 2002-06-05
4
173 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
Comment Utility
Check in the project setting if odbc dll's are linked

odbc32.lib odbccp32.lib
0
 

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

13 Experts available now in Live!

Get 1:1 Help Now