传一个System::Image^类型的对象进去。如果你只有MFC的CImage的话,需要把图片保存到磁盘或者内存,之后创建一个System::Image^类型的对象读数据。
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
托管类型转不了。用C++/CLI的话,是System::Image^类型 Guid::NewGuid()->ToString();
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
传一个System::Image^类型的对象进去。如果你只有MFC的CImage的话,需要把图片保存到磁盘或者内存,之后创建一个System::Image^类型的对象读数据。
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
这个类不是MFC的,是.Net的 你既然引用了C#的类库,怎么会没引用.Net的类库?
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP