07-21-2005 06:09 AM
A Rafiq answered, 09-29-2001:
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
I've added; 07-20-2001:
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!
I'm using LabVIEW 7.0 and Visual SourceSafe 6.0d
Klaus
07-21-2005 07:25 AM
07-21-2005 10:34 AM
The web site http://forums.lavausergroup.org/ can not be found at the moment.
I've considered myself to contact David Boyd direcly, but I don't know how yet.
07-25-2005 07:53 AM
Klaus,
There was no solution I could find to this, and I eventually abandoned the notion of writing my own version control tools for VSS. The version control support in the PDS release of LabVIEW was greatly improved in, I think, 7.0 (or was it 6.1?... how quickly we forget). The current level of integration with Visual SourceSafe, I feel, is adequate - you get access to the more common check-in/check-out and visual differencing tasks on an individual VI, directly from the menubar. This was about what I would have wanted to add if I had been able to complete the ActiveX automation project.
The only things I would wish for now, are probably too VSS-specific to ever be added by NI. These include:
Differencing between arbitrary versions (more than just the current and most recent version)
Support for project labels, and integration with the application builder
If you don't have the PDS, and can afford to get it as an add-on, I would highly recommend it.
Best regards,
Dave
07-25-2005 09:01 AM
Hi Dave,
thank you for your comment!
The VSS features in the PDS may not help to solve my problem, because it's not the goal to improve the interaction of VSS and LabVIEW but more to write an independent VSS frontend with abilities neither the PDS-VSS-interface nor the generic VSS frontend supply (replication of two different VSS databases).
The reason why I use LabVIEW for such a task is because I'm best skilled in programming LabVIEW due to the daily work. If it doesn't work with LabVIEW I've to take the effort and do it in Visual C++.
But if it is so, it would be a real "Armutszeugnis" (evidence of incapacity) for LabVIEW, like we say in german.
I know, another option might be to iterate through this ActiveX collection using external code with a DLL. But I don't know if this is less effort.
Maybe sombody has example code on "how to pass/return an activeX refnum to/from a DLL.
regards
Klaus
08-14-2005 02:16 PM
08-15-2005 06:52 AM - edited 08-15-2005 06:52 AM
Message Edited by unclebump on 08-15-2005 06:53 AM
08-15-2005 11:49 AM
08-29-2005 04:51 AM