Solved

Compiling error: User-Define type not Defined

Posted on 2012-03-30
10
1,236 Views
Last Modified: 2012-04-02
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
0
Comment
Question by:Mehram
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 6

Expert Comment

by:ingriT
ID: 37786518
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
 

Author Comment

by:Mehram
ID: 37786531
Yes I tried that but it was showing attached error.
Capture.JPG
0
 
LVL 6

Expert Comment

by:ingriT
ID: 37786544
Could you post a capture of the references you already have?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:gpizzuto
ID: 37786548
welcome in Windows 7 ...
0
 

Author Comment

by:Mehram
ID: 37786562
Please find attached requested file.
Capture.JPG
Capture1.JPG
0
 
LVL 6

Expert Comment

by:ingriT
ID: 37786591
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
 

Author Comment

by:Mehram
ID: 37786601
How could i do that, please do me favor.
0
 
LVL 6

Expert Comment

by:ingriT
ID: 37786605
I'm not running a VB6 IDE here, so I can't do that sorry.

Try google a little further maybe.
0
 

Author Comment

by:Mehram
ID: 37786612
Just for your information I am facing same error on windows server 2003 32 bit
0
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 37787239
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question