Visual automation

If you are having a problem using Fortress, post a message here.

Moderator: SourceGear

Post Reply
Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Visual automation

Post by Xavier » Wed Jul 07, 2010 10:06 am

Hello

control->IsItemUnderSCC (CComBSTR (_T ("$")), &bSC)
control->IsItemUnderSCC (CComBSTR (_T ("d:\\sce\\test.cpp")), &bSC)
....
always return false

based on this post:
http://social.msdn.microsoft.com/Forums ... f71ca15eb5

I suppose this is a fortress issue: I have never checked with Visual Source Safe because we use Fortress with great pleasure.

Could you please check that on your side, it would greatly help us.

Best regards

Xavier
Best regards

Xavier

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Visual automation

Post by lbauer » Wed Jul 07, 2010 12:00 pm

What are you trying to do? Is this part of a script?

What version of Fortress are you using? What version of Visual Studio? Are you using the Enhanced or Classic Client for integration?
Linda Bauer
SourceGear
Technical Support Manager

Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Re: Visual automation

Post by Xavier » Wed Jul 07, 2010 12:20 pm

I sue Visual Studio 2005 automation in an add in.
This is the latest version of fortress.
I use the enhanced client
Best regards

Xavier

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Visual automation

Post by lbauer » Wed Jul 07, 2010 2:09 pm

We're still not clear on what you're trying to do with your plug-in. Are you trying to determine if your project is under source control with these commands? You're saying that this reports the project or file is not under source control, even if it is?

This is not something we're very familiar with., sorry.

The Microsoft link that you referred to discusses the MSSCCI client. Perhaps this does not work with the enhanced client type integration, VSIP.
Linda Bauer
SourceGear
Technical Support Manager

Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Re: Visual automation

Post by Xavier » Wed Jul 07, 2010 3:17 pm

Okay. I've written Visual Studio plug-in that is notified everytime a build is done and if it is successful modifies the resource file version.
This file is rarely checked-out, so I need to check it out if it's not the case.

I did it with VSS automation, but VS2005 has a great interface that it seems to use to control Fortress and that it available for plug-ins.

Yes I try to determine if a file is under source code control (the .rc) and if not checked out, to checkit out, before changing the version.

Hope this is more clear.

It should hopefully work with every source code control system as this is supposed to be the goal of this interface that was not available in Visual 6.0

Xavier
Best regards

Xavier

Post Reply