MSDN > Home page del forum > Visual Studio Source Control and SourceSafe > Unable to create SourceSafe Object
Formula una domandaFormula una domanda
 

Con rispostaUnable to create SourceSafe Object

  • sabato 5 agosto 2006 4.34AndyPham Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    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

Risposte

  • lunedì 7 agosto 2006 1.27Alin ConstantinMSFT, ModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta

    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

Tutte le risposte