CBuilder建立虚拟目录的问题(Sorry,俺只有25分了)
请教各位大虾,在CBuilder下面,怎么建立虚拟目录?我看过vb的代码,很简单,但是,使用cbuilder之后,总是提示编译错误。下面是我给borland技术中心发的mail,还没有回复,请各位帮我看一下!谢谢!!!
Dear sir:
I'm a chinese programmer.I want to write a IIS program.So,I import type library Active DS IIS Extension Dll(Version 1.0) from menu "project".But compliling a blank project before I write any code,errors occured.The message like below:
utilcls.h:Ambiguity between "DWORD" and "Activeds_tlb::DWORD"
IISExt_tlb.h:Error while instantiating template 'TAutoDriver<lisext_tlb::IISApplicationPool>'
The enviorment in my computer is:
Windows XP,IE6,CBuilder3,IIS5.1
PIII 650/320M/20G
The typelib is imported from c:\\windows\\system32\\iisext.dll"
And,can you help me:how to create a virtual directory in CBuilder?The same code in VisualBasic is very easy,just like this:
Private Sub createWebService(pathName As String, virPathName As String)
Dim WebServiceObj, ServerObj, oRoot
On Error Resume Next
Set WebServiceObj = GetObject("IIS://localhost/W3SVC/1/root")
Set oRoot = WebServiceObj.Create("IIsWebVirtualDir", virPathName)
If Err.Number <> 0 Then
Set oRoot = GetObject("IIS://localhost/W3SVC/1/root/" + virPathName)
oRoot.path = pathName
oRoot.setInfo
Exit Sub
End If
oRoot.setInfo
oRoot.path = pathName
oRoot.AppCreate INPROC
oRoot.setInfo
End Sub