高手请进啊!!c# 的string[]数组类型 asp调用出错

alexwuphp4 2011-07-05 10:17:58
我用c#写一个dll供asp调用

c#代码如下

       
public string[] getValue(string keyWord,string TagName)
{
string[] temp = new string[40];
temp[0] = "aaa";
return temp;
}



asp代码如下
Set test1=Server.CreateObject("test.test1") 

temp2=test1.getValue("鞋子","nick")

response.Write temp2(0)



错误如下

Response 对象 错误 'ASP 0106 : 80020005'

类型不匹配

/Default.asp,行 0

遇到未处理的数据类型。
...全文
67 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
alexwuphp4 2011-07-05
  • 打赏
  • 举报
回复
已经解决

 public object getValue(string keyWord,string TagName)
{
object[] temp = new object[40];
temp[0] = "aaa";
return temp;
}



alexwuphp4 2011-07-05
  • 打赏
  • 举报
回复
谁说不可以!
http://34322303.blog.163.com/blog/static/25779520200842093150590/
挨踢直男 2011-07-05
  • 打赏
  • 举报
回复
晕,c#程序集如何能供asp使用? 他又不是win32 dll

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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