Compiling error: User-Define type not Defined

I am using VB6. On Compiling exe file it is showing attached error on line :

 Dim Strm As ADODB.Stream

Please help me. I am unable to compile .exe file
Capture.JPG
MehramAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ingriTCommented:
Have you set a reference in your project to the Microsoft Data Objects?

On the Project menu, click to select References, and then set a reference to the Microsoft ActiveX Data Objects 2.5 Object Library.
0
MehramAuthor Commented:
Yes I tried that but it was showing attached error.
Capture.JPG
0
ingriTCommented:
Could you post a capture of the references you already have?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

gpizzutoCommented:
welcome in Windows 7 ...
0
MehramAuthor Commented:
Please find attached requested file.
Capture.JPG
Capture1.JPG
0
ingriTCommented:
It looks like you're running an x64 development machine. The DLL's are probably x86. Can you set a target CPU somewhere in the properties? Try setting that to x86.
0
MehramAuthor Commented:
How could i do that, please do me favor.
0
ingriTCommented:
I'm not running a VB6 IDE here, so I can't do that sorry.

Try google a little further maybe.
0
MehramAuthor Commented:
Just for your information I am facing same error on windows server 2003 32 bit
0
eemitCommented:
Hi Mehram,
Stream Object was introduced in
Microsoft ActiveX Data Objects  2.5 Library.

You have set a reference in your project to the:
    Microsoft ActiveX Data Objects 2.0 Library.
Select:
    Microsoft ActiveX Data Objects 2.5 Library
from the list.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.