学C#,碰到这么一个FAQ
How do I load a BMP file that has been added to my solution as an embedded resource?// WindowsApplication6 corresponds to Default Namespace in your project settings.  
// subfolders should be the folder names if any, inside which the bmp is added. If the bmp was added to the top level, you don't have to specify anything here. 
 
     string bmpName = "WindowsApplication6.subfolders.sync.bmp";  
     System.IO.Stream strm = null;  
     try  
     {  
          strm = this.GetType().Assembly.GetManifestResourceStream(bmpName); 
          pictureBox1.Image = new Bitmap(strm);  
          // Do the same for Icons  
          // Icon icon1 = new Icon(strm);  
     }  
     catch(Exception e)  
     {  
          MessageBox.Show(e.Message);  
     }  
     finally  
     {  
          if(strm != null)  
               strm.Close(); 
     }把程序的第一句改为:string bmpName = "E:\\VC\\WindowsApplication1\\11.bmp"; 后bmpName的值竟多了一个@,(之前也用过这种方法没出现什么异常情况)老是提示这句出错pictureBox1.Image = new Bitmap(strm);   strm的值为空,不能引用!
   还有这一小段也有问题,不能通过编译:
catch(Exception e)  
     {  
          MessageBox.Show(e.Message);  
     }  
已经问过N个人也没办法解决,不知道哪位好心的朋友能够帮忙解释一下这段的程序,为什么会出现如此多的问题?