4 Replies - 3701 Views - Last Post: 16 June 2009 - 04:37 AM Rate Topic: -----

#1 yadavabhishek951  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-June 09

connecting to db2 thru c++

Posted 02 June 2009 - 05:09 AM

hi,

i am trying to connect to db2 through a c++ program.no compile errors but linking errors are being shown
after building the program in vc++.
one error shown is:
Error 2 error LNK2019: unresolved external symbol _SQLSetEnvAttrW@16
the other error is:
Error 3 fatal error LNK1120: 1 unresolved externals

please help out!!
thanks in advance.
Is This A Good Question/Topic? 0
  • +

Replies To: connecting to db2 thru c++

#2 jeff666  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 193
  • Joined: 30-December 08

Re: connecting to db2 thru c++

Posted 02 June 2009 - 09:22 AM

The linker gave you the answer... (MSDN)
Was This Post Helpful? 0
  • +
  • -

#3 yadavabhishek951  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-June 09

Re: connecting to db2 thru c++

Posted 03 June 2009 - 12:30 AM

i don't get u. could u please tell how to resolve this??
Was This Post Helpful? 0
  • +
  • -

#4 yadavabhishek951  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-June 09

Re: connecting to db2 thru c++

Posted 16 June 2009 - 02:37 AM

could anyone help me out on how to extract the objectpath from a blob datatype which is to be accessed
from database through a c++ application?

thanks in advance.
Was This Post Helpful? 0
  • +
  • -

#5 Cha0sBG  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 167
  • Joined: 09-April 09

Re: connecting to db2 thru c++

Posted 16 June 2009 - 04:37 AM

Here u go a tutorial from our experts here in DreamInCode:

OpenDatabaseConnection:
http://www.dreaminco...wtopic21309.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1