troubleshooting Question

Problems on DB connection

Avatar of BispensGipsGebis
BispensGipsGebis asked on
C++
6 Comments1 Solution304 ViewsLast Modified:
Hi there,

This is my first time on expertsexchange, so please bear over with me.

I'm trying to write an application for datamining some data from 3 db's into one central. I've just started with the app, but I've troubles already.

When trying to instantiate the recordset, I get a com_error. The line of code is taken from MSDN, and I just can't figure it out, why it doesn't work.

_RecordsetPtr spRS(__uuidof(Recordset));

So I've narrowed it down to wrong installation of VC++ 6.0 which is the environment I'm using, or that I've missed some #imports perhaps. The funny part is that the debugger finds the right files, or at least I think it does.

Can anyone give me some clue of what I'm doing wrong.

I would really like to get a grip around C++, but I'm constantly having these n00b questions.

Thanks in advance
BispensGipsGebis

ASKER CERTIFIED SOLUTION
jtm111

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros