2010-07-02 87 views
0

我收到[類TestClass的類實例聲明中的錯誤:[BC30002]類型'TestClass'不是defiend。我得到這個在VS2005 IDE 表達= Code.M_TestClass.ReturnTheStr() 參考MYTEST DLL,CLASS的TestClass INSTANCE M_TestclassSSRS訪問類實例問題

DLL的代碼

namespace MyTest 
{ 
    public class TestClass 
    { 
     public TestClass() : base() 
     { 
      // Constructo 
     } 
     public static string ReturnStr() 
     { 
      return "Help is here"; 
     } 
     public string ReturnTheStr() 
     { 
      return "Instance Help is here"; 
     } 
    } 
} 

任何想法將是巨大的

回答

0

當提供CLPS名稱需要用prifix命名空間 Mytest.Testclass