CBuilder建立虚拟目录的问题(Sorry,俺只有25分了)

juqiang 2001-10-25 12:06:57
请教各位大虾,在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
...全文
52 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyxing 2002-01-09
  • 打赏
  • 举报
回复
receive mail

13,824

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧