Method 'IWorkspaceFactory.GetWorkspaceName' does not work as documented.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM033198
已提交
March 11, 2008
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.2
编程语言
C++
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Pass the whole path to the file geodatabase in the parameter 'filenames' and pass anything in the parameter 'parentDirectory', e.g:Sub test() Dim pFileNames As IFileNames Set pFileNames = New FileNames pFileNames.Add "<a href="file:D:/Program" target="_blank">D:\Program</a> Files\ArcGIS\DeveloperKit\SamplesCOM\data\ServerData\Geoprocessing\usa_Data.gdb" Dim pWSF As IWorkspaceFactory Set pWSF = New FileGDBWorkspaceFactory Dim pWSName As IWorkspaceName Set pWSName = pWSF.GetWorkspaceName("anything", pFileNames) MsgBox pWSName.PathNameEnd Sub