vb6 sp5编写IIS APPLICATION的问题

julyclyde 2003-02-21 06:25:54
好像不能在XP的IIS 5.1上工作哦。为什么?
...全文
96 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
julyclyde 2003-02-25
  • 打赏
  • 举报
回复
vb版的人是不是都去进修了?怎么一个会的都没有?
lskynet 2003-02-22
  • 打赏
  • 举报
回复
A:下面的步驟提供您建立一個簡易的IIS應用程式:
從「檔案」/「建立新專案」,選擇「IIS應用程式」。
為您的專案命名,並儲存。否則您無法匯入HTML 檔案。
從 WebClass 設計視窗中,選擇「新增HTML範本的WebItem」,加入一個HTML檔案。
此HTML Template Webitem 預設名稱為「Template1」。
將 Sub WebClass_Start() 改為

Private Sub WebClass_Start()
Set NextItem = Template1
End Sub
註:NextItem is used to shift processing from one WebItem to another during a single request. Using the NextItem will cause the Private Sub Template1_Respond() to fire.

Private Sub Template1_Respond()
Template1.WriteTemplate
End Sub
註:The Template1.WriteTemplate will send the contents of Template1 to client browser window. Remember that Template1 is the HTML file you imported into the IIS application. If you don't put anything in this event and you run the project, the browser will come up with a blank page.

按 F5 執行此程式
PS.

若您有安裝MSDN的samples,您可參考此範例 Microsoft Visual Studio\MSDN98\98VS\1033\Samples\VB98\WcDemo\WCDEMO.VBP
為了您的專案有較佳的performance ,建議您可設定專案屬性=>核取「執行時無使用者介面」,「保留於記憶體中」及"執行緒模型"選擇「公寓模型執行緒」。
lskynet 2003-02-22
  • 打赏
  • 举报
回复
很好
julyclyde 2003-02-22
  • 打赏
  • 举报
回复
我问兼容性呢

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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