Link to home
Start Free TrialLog in
Avatar of Mehram
MehramFlag for Pakistan

asked on

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
Avatar of ingriT
ingriT
Flag of Netherlands image

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.
Avatar of Mehram

ASKER

Yes I tried that but it was showing attached error.
Capture.JPG
Could you post a capture of the references you already have?
Avatar of Giuseppe Pizzuto
welcome in Windows 7 ...
Avatar of Mehram

ASKER

Please find attached requested file.
Capture.JPG
Capture1.JPG
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.
Avatar of Mehram

ASKER

How could i do that, please do me favor.
I'm not running a VB6 IDE here, so I can't do that sorry.

Try google a little further maybe.
Avatar of Mehram

ASKER

Just for your information I am facing same error on windows server 2003 32 bit
ASKER CERTIFIED SOLUTION
Avatar of eemit
eemit
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial