在MFC和.Net表单之间共享图像文件 [英] Sharing images files between MFC and .Net forms

查看:79
本文介绍了在MFC和.Net表单之间共享图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MFC dll,它的资源文件中定义了一些图像.在新开发中,我们在项目中添加了一些.net表单.我希望从MFC项目中使用某些图像,而不是将其复制到表单中.有什么想法吗?

I have a MFC dll that has some images defined in its resources files. On new development, we have added some .net forms to our project. I would like some of the images to be used from the MFC project rather than duplicate the same for my forms. Any ideas?

推荐答案

我建​​议将图像放在C ++/CLI dll中,并从那里访问两个项目的图像.
I''d suggest putting the images in a C++/CLI dll and accessing them from there for both projects.


这篇关于在MFC和.Net表单之间共享图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆