Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access Database from MFC

Posted on 2002-06-05
4
Medium Priority
?
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Accepted Solution

by:
dessi earned 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

618 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