Solved

Compiling error: User-Define type not Defined

Posted on 2012-03-30
10
1,100 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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now