Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Type (UDT) question

Solved!
Go to solution

HI,

 

The Attached file is NI sample for calling a vi from VB6.

 

The following is declare in the Declaration section:

 

                 ' Global declarations
                  Dim lvapp As LabVIEW.Application
                  Dim vi As LabVIEW.VirtualInstrument

 

When I paste these declaration in another project (the one I"m working on) I get an error 'User-defined type not defined'.

 

Can somebody point out to me were in the sample, these type definitions are declared?

 

Thanks

Rafi

 

p.s.  The attached file is actually  xxx.rar  and not  xxx.zip.  I changed the name because .rar was not accepted.  Please rename it to .rar

 

0 Kudos
Message 1 of 3
(7,206 Views)

I do not have an un-rar on my computer currently, but if this is an NI example, can you provide the path? What do you get when you search the entire project for "LabVIEW.Application".

 

Did you include the propper references in your new project?

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 3
(7,191 Views)
Solution
Accepted by topic author Rafi2003

Thanks,

 

I forgot to mark the References to my project

 

Project-->References--> LabView. xxx  Type Library

 

 

Thanks

0 Kudos
Message 3 of 3
(7,172 Views)