我编写了一个c#的动态连接库VerVerifyDLL.dll
namespace VerVerifyDLL
{
public class Class1
{
public string mymethod(string setfile,string filename)这是开头的几句代码
现在我要调用这个dll
我写了一个程序testdll调用该dll,代码如下:
using VerVerifyDLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace testdll
{
class Program
{
static void Main(string[] args)
{
Class1 test = new Class1();
string testresult = test.mymethod("D:\\Visual Studio 2008\\Projects\\userpas.txt", "D:\\Visual Studio 2008\\Projects\\ExampleContent.mpg");
Console.WriteLine(testresult);
}
}
编译的时候说 VerVerifyDLL名空间的名字不能被发现,如何改正呢?
}
namespace VerVerifyDLL
{
public class Class1
{
public string mymethod(string setfile,string filename)这是开头的几句代码
现在我要调用这个dll
我写了一个程序testdll调用该dll,代码如下:
using VerVerifyDLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace testdll
{
class Program
{
static void Main(string[] args)
{
Class1 test = new Class1();
string testresult = test.mymethod("D:\\Visual Studio 2008\\Projects\\userpas.txt", "D:\\Visual Studio 2008\\Projects\\ExampleContent.mpg");
Console.WriteLine(testresult);
}
}
编译的时候说 VerVerifyDLL名空间的名字不能被发现,如何改正呢?
}
如果使用.cs文件,请将其加入项目:“添加项 ”->添加现有项