Solved

Compiling error: User-Define type not Defined

Posted on 2012-03-30
10
1,205 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
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
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.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 73
Updates not working for MS Windows 7 12 181
Child Form in front 4 49
Dinamic report to Crosstab query 9 33
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

860 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