01-14-2010 05:00 AM
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
Solved! Go to Solution.
01-15-2010 09:49 AM
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?
01-18-2010 12:57 AM
Thanks,
I forgot to mark the References to my project
Project-->References--> LabView. xxx Type Library
Thanks