LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OLE Automation of Visual SourceSafe 6 from LV6.0.2, properties/methods missing?

Hello all,

I'm trying to use Visual SourceSafe as an automation server from within LabVIEW 6 (I know, I have the PDS, I'm trying to improve on the existing SCC tools available). For some reason, the IVSSVersions reference comes up in LabVIEW as having NO properties and NO methods. As a collection object, it should have a 'count' property and an 'item' method so I can loop to get individual IVSSVersion references. Other collection objects within VSS automation work OK, as do other automation interfaces I've used within LV in the past. Can anybody who has a copy of VSS (ver 5 or 6) try this and see if it's just me? I suspect it's a MS bug in how VSS OLE reports its objects, properties,
and methods to LV, but I'm unsure.
I've also posted this to a couple of Microsoft newsgroups related to VSS.

Thanks,
Dave
David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(3,107 Views)
Just a tip, when i encounter such a problem i use visual basic as a great tool to verify the object model. In VB add the project reference and using object browser make sure if you can see the collection prop and methods in Visual Basic.

my 2c

A Rafiq
0 Kudos
Message 2 of 4
(3,104 Views)

Hello,

I know this is a realy "old" thread I'm responding on and I hope someone is still listening. I have exactly the same problem David had that time but I know already, that it's neither a LabVIEW nor a VSS bug. The problem is that the VSSVersions object has no 'Count' property and no 'Item' method implemented. A documentation of the VSS OLE Automation says that the only way to use this collection is to call the '_NewEnum' method in C++ or use a 'for-each loop' in Visual Basic!

But how can I do this in LabVIEW!!!!

Please help!

0 Kudos
Message 3 of 4
(3,034 Views)

maybe I should add that I'm using LabVIEW 7 and VSS 6.0d.

Klaus

0 Kudos
Message 4 of 4
(3,028 Views)