title: C++ dot net error C 3265:cannot declare a managed ' ' in an unmanaged 'wmain::$unnnamedClass $0x43505982$383$
body: <pre><code>int _tmain(int argc, _TCHAR* argv[])
  {
  
      typedef struct
  {
      String ^name_1;
      String ^Max_1;
      String ^Min_1;
  }power_line_name;
  
      power_line_name * power_list[5];
      StreamReader ^ sr=File::OpenText("testcpp\\test\\powerline.txt");
      array&lt;System::String ^&gt; ^power_line;
      array&lt;System::String ^&gt; ^d_line;
      String ^ eachString;
      String ^ eachString_2;
      String ^ eachString_3;
      int i=0;
      try
      {
          String^ s="";
          while (s=sr-&gt;ReadLine())
          {
              //Console::WriteLine(s);
              power_line=s-&gt;Split(':');
              Console::WriteLine(s);
              for each ( eachString in power_line)
              {
  
                  Console::WriteLine(eachString);
              }
              d_line=power_line[1]-&gt;Split('|');
              power_list[i]-&gt;name_1=d_line[0]-&gt;ToCharArray();
              power_list[i]-&gt;Max_1=d_line[1];
              power_list[i]-&gt;Min_1=d_line[2];
              i++;
  
  
  
          }
          Console::WriteLine(s);
      }
      finally
      {
          if(sr)
              delete (IDisposable^)(sr);
      }
  }
  </code></pre>
  
  <p>error C 3265:cannot declare a managed 'name_1 ' in an unmanaged 'wmain::$unnnamedClass $0x43505982$383$</p>
  
  <p>error C 3265:cannot declare a managed 'Max_1 ' in an unmanaged 'wmain::$unnnamedClass $0x43505982$383$</p>
  
  <p>error C 3265:cannot declare a managed 'Min_1 ' in an unmanaged 'wmain::$unnnamedClass $0x43505982$383$
  what can i do??</p>