0
我正尝试使用Windows窗体应用程序picturebox方法加载。我的代码,这样做是:无法将参数1从basic_string转换为字符串^
string image = "image.jpg";
pictureBox2->Size = System::Drawing::Size(36, 40);
pictureBox2->Load(image);
Controls->Add(pictureBox2);
不过,我收到以下错误:
'void System::Windows::Forms::PictureBox::Load(System::String ^)' : cannot convert parameter 1 from 'std::basic_string<_Elem,_Traits,_Ax>' to 'System::String ^'
任何想法,我可以将字符串转换为字符串^?
图像的名字是中。有没有改变矢量到矢量? –
2014-11-03 12:11:54
的一个实例。我正在使用dirent.h来加载目录中的文件并将它们存储在向量