• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Access Database from MFC

    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
jvnoth
Asked:
jvnoth
  • 2
1 Solution
 
dessiCommented:
Check in the project setting if odbc dll's are linked

odbc32.lib odbccp32.lib
0
 
dessiCommented:
If you can create a DLL with the same code, just compare the link settings of your the 2 projects
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now