If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 and VC++6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 19:37
raj_sudhan raj_sudhan is offline
Registered User
 
Join Date: Sep 2003
Location: Nevada
Posts: 14
Post DB2 and VC++6

Hi,

I am new to embedded programming with DB2 . I am interested in doing so and working with VC++6 compiler.

I would be so thankful if i can be provided with some pointers for sample programs in the area of embedded c++ programming for DB2 and possibly information on how to successfully execute the sample programs.

Thanks,
Raj
Reply With Quote
  #2 (permalink)  
Old 03-29-04, 20:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: DB2 and VC++6

In your installation directory, (Program Files\sqllib in V7 and Program Files\IBM\sqllib in V8), you should find a directroy samples\c ..

If you don't find them, try to install the app dev client ...

Cheers
sathyaram

Quote:
Originally posted by raj_sudhan
Hi,

I am new to embedded programming with DB2 . I am interested in doing so and working with VC++6 compiler.

I would be so thankful if i can be provided with some pointers for sample programs in the area of embedded c++ programming for DB2 and possibly information on how to successfully execute the sample programs.

Thanks,
Raj
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-30-04, 17:24
raj_sudhan raj_sudhan is offline
Registered User
 
Join Date: Sep 2003
Location: Nevada
Posts: 14
Thank you satyaram for the information.
while attempting to work with the sample programs, i have precompiled the sample static.sqx using the command

PREP static.sqx
which created a .cxx file

in the next step i tried to open the file in MS VC++6 compiler to build the executable. The compiler generated several errors while linking as below. I had even registered the vc++6 add-ins .

It would be very helpful if someone could let me the reason for this and how to succefully make it work with vc++6 compiler...
The output from the compiler whie trying to build
---------------------------------------------------
Linking...
static.obj : error LNK2001: unresolved external symbol _TransRollback
static.obj : error LNK2001: unresolved external symbol _SqlInfoPrint
static.obj : error LNK2001: unresolved external symbol _sqlastop@4
static.obj : error LNK2001: unresolved external symbol _sqlacall@20
static.obj : error LNK2001: unresolved external symbol _sqlasetda@24
static.obj : error LNK2001: unresolved external symbol _sqlaaloc@16
static.obj : error LNK2001: unresolved external symbol _sqlastrt@12
Debug/static.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

static.exe - 8 error(s), 0 warning(s)


Thank you,
Raj
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On