C#做一个简单DLL,让其他程序,如ASP调用,为什么注册不了?
下面代码已经通过 csc/target:library readtxt.cs 编译成DLL 了,但是为什么
通过regsvr32 注册不了 ,老说 dll loaded.
using System;
using System.IO;
class readtxt
{
public StreamReader srd;
public string str;
public string read_txt()
{
srd=File.OpenText("D:\\lng\\dotnet\\test\\test.txt");
while (srd.Peek()!=-1)
{
str=srd.ReadLine();
//Console.WriteLine(str);
}
srd.Close();
//Console.ReadLine();
return str;
}
}
问题点数:10、回复次数:4Top




