GetSetting 是去注册表取值 如果注册表里没有的话 当然为空了

解决方案 »

  1.   

    注册表里有值...........我用exe文件server是有值的.....会不会还要引用什么东西呢?
      

  2.   

    请高手帮忙,在dll是不是不能用"server = GetSetting("hehe", "options", "地址")"这个方法读注册表?
      

  3.   

    Public Sub OnStartPage(PassedScriptingContext As ScriptingContext)
        Set MyScriptingContext = PassedScriptingContext
        Set MyResponse = PassedScriptingContext.Response
        '#############################################################
        '从注册表中读取信息
        server = GetSetting("hehe", "options", "服务器地址")
        '#############################################################
        If server = "" Then
           MyResponse.Write ("天啊,为什么老是为空了......kick!")
           Exit Sub
        End If
    End Sub这是读的....asp返回 天啊,为什么老是为空了......kick!
      

  4.   

    在动态链接库不能用getsetting 打开注册表呢?