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?

Improve company productivity with a Business Account.Sign Up

x
 
eemitConnect With a Mentor Commented:
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
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ingriTCommented:
Could you post a capture of the references you already have?
0
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.