想往资源里写字符怎么写呀

解决方案 »

  1.   

    // Create a file stream to encapsulate items.resources.
           FileStream fs = new FileStream("items.resources", 
              FileMode.OpenOrCreate,FileAccess.Write);       // Open a resource writer to write from the stream.
           IResourceWriter writer = new ResourceWriter(fs);
        
           // Add resources to the resource writer.
           writer.AddResource("String 1", "First String");
           writer.AddResource("String 2", "Second String");
           writer.AddResource("String 3", "Third String");       // Generate the resources, and close the writer.
           writer.Generate();
           writer.Close();
      

  2.   

    在IDE中就可以加
    加几个资源文件如:
    string.zh-CHS.resx
    string.en-US.resx然后直接打开,里面有界面加的。
    编译时也会自动编译进去(IN VS2005)
      

  3.   

    http://singlepine.cnblogs.com/articles/300409.html