質問する質問する
 

回答済みUnable to create SourceSafe Object

  • 2006年8月5日 4:34AndyPham ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     

    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

回答

  • 2006年8月7日 1:27Alin ConstantinMSFT, モデレータユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     回答済み

    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

すべての返信