|
阅读:1223回复:0
请教AE打开SHP文件问题(VC++)
<P>代码如下:</P>
<P> CString strAllPath = dlg.GetNextPathName(Pos);<BR> IWorkspaceFactoryPtr fac(__uuidof(ShapefileWorkspaceFactory));<BR> IWorkspacePtr space=NULL;<BR> BSTR str = strAllPath.AllocSysString();<BR> HRESULT hr ;<BR> hr = fac->OpenFromFile(strAllPath.AllocSysString(),NULL,;space);</P> <P>为什么space返回还是空呢?多谢指教</P> |
|