http://www.csdn.net/expert/topic/338/338998.xml?temp=.8206903
解决方案 »
- 子窗口如何加载按钮背景图~~~~~~~~~~~~~~~~~~~
- 请问:::如何使两个CListCtrl的选中的记录同时高亮显示...
- 严重鄙视 whoisbad() !!!
- 500分问一个问题,解决了马上给啊!我们上网在代理服务器,设置了用户名和密码!当新打开一个IE窗口时,就输入用户名和密码,这时,在这个IE窗口
- 游戏控制器属性页问题
- 关于一个sql语句的问题,请指导。
- 请问在应用递归算法的时候怎么能判断当前的嵌套的位置
- combo控件数据问题
- 为什么toolbar的tips显示错误?
- 请问各位大虾:MFC到底还有无前途?
- 一回车就关闭。
- srand((unsigned)time(NULL));??????????????????????
Code to install the site:
IADsContainerPtr spAC; <B style="color:black;background-color:#A0FFFF">ADsGetObject</B>(L"IIS://LocalHost/W3SVC", IID_IADsContainer, (void**)&spAC); IDispatch* spDisp; spAC->Create(L"<B style="color:black;background-color:#ffff66">IIsWebServer</B>", _bstr_t(NATFormat("%ld",
NrOfWebServers+1).c_str()), &spDisp); IADsPtr spADs( spDisp ); spADs->Put(L"Class", _variant_t("<B style="color:black;background-color:#ffff66">IIsWebServer</B>") );
spADs->Put(L"ServerSize", _variant_t("1"));
spADs->Put(L"ServerComment", _variant_t( SiteName ));
_bstr_t ServerBindings = _bstr_t(IPAddress) + ":" + _bstr_t(TCPPort) + ":"
+ _bstr_t(HostHeaderName);
spADs->Put(L"ServerBindings", _variant_t(ServerBindings));
spADs->Put(L"ServerState", _variant_t("4"));
spADs->Put(L"AspAllowSessionState", _variant_t(VARIANT_FALSE));
spADs->Put(L"AspBufferingOn", _variant_t(VARIANT_TRUE));
spADs->Put(L"EnableDirBrowsing", _variant_t(VARIANT_FALSE));
spADs->Put(L"AuthAnonymous", _variant_t(VARIANT_TRUE));
spADs->Put(L"AuthNTLM", _variant_t(VARIANT_FALSE));
spADs->Put(L"AccessRead", _variant_t(VARIANT_TRUE));
spADs->Put(L"AccessWrite", _variant_t(VARIANT_FALSE));
spADs->Put(L"AccessScript", _variant_t(VARIANT_TRUE));
spADs->Put(L"AccessNoRemoteScript", _variant_t(VARIANT_FALSE));
spADs->Put(L"AppIsolated", _variant_t(0L));
spADs->Put(L"CacheISAPI", _variant_t(VARIANT_TRUE)); spADs->SetInfo(); InvokeMethod(spDisp, "Start"); spAC = spADs; spAC->Create(L"IIsWebVirtualDir", L"ROOT", &spDisp); spADs = spDisp; spADs->Put(L"Path", _variant_t(HomeDirectoryPath)); InvokeMethod(spDisp, "AppCreate", _variant_t(VARIANT_TRUE, VT_BOOL)); spADs->SetInfo();
多站点只能在NT Server上面创建,NT工作站或者Win2k Profession不支持创建多站点。
\Inetpub\AdminScripts不过是asp的用法。
请你参考吧