Odeslat dotazOdeslat dotaz
 

OdpovědětUnable to create SourceSafe Object

  • 5. srpna 2006 4:34AndyPham Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     

    I'm currently using VSS2005. I did register ssapi.dll by "regsvr32 ssapi.dll"; however, I got error: "could not create object named "SourceSafe" from vbscript below. Please help.

    Set oVSSDatabase = WScript.CreateObject("SourceSafe")

    oVSSDatabase.Open ("C:\VSSData\srcsafe.ini")

    Set oVSSItem = oVSSDatabase.VSSItem("$/Test/testingfile.cs")

    oVSSItem.Parent.LocalSpec = "C:\Projects"

    oVSSItem.Get

Odpovědi

  • 7. srpna 2006 1:27Alin ConstantinMSFT, ModerátorUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     Odpovědět

    Do you get any other error code that may help pinpoint the problem?

    You may need to look in registry at the following key HKEY_CLASSES_ROOT\SourceSafe. If you're working with VSS 2005, it should look like this:

       [HKEY_CLASSES_ROOT\SourceSafe]
       @="Microsoft Visual SourceSafe Automation"
       [HKEY_CLASSES_ROOT\SourceSafe\CLSID]
       @="{783CD4E4-9D54-11CF-B8EE-00608CC9A71F}"
       [HKEY_CLASSES_ROOT\SourceSafe\CurVer]
       @="SourceSafe.8.0"

    You can also try creating directly the VSS 2005 automation object:

       Set oVSSDatabase = WScript.CreateObject("SourceSafe.8.0")

    Alin

Všechny reakce