需要用于Visual C ++的DLL MFC应用程序向导项目(EXE) [英] Need of DLL for Visual C++ MFC AppWizard Project (EXE)
问题描述
亲爱的所有人,
我有一个Visual C ++ MFC应用程序向导项目(Exe),它提供了EXE文件的输出。但是我希望在我的C#.Net项目中使用这个项目来访问项目中的所有方法/类。
I have a Visual C++ MFC AppWizard Project(Exe) which is giving an output of EXE file. But whereas i would like to use this project as a dll in my C#.Net project to access all the methods/classes in the project.
我该怎么做?请让我知道
How can i do it?? Please let me know
Madhukar
推荐答案
嗨Madhu_Honey,
Hi Madhu_Honey,
感谢您在此处发帖。
>>我有一个Visual C ++ MFC应用程序向导项目(Exe),它提供输出的EXE文件。但是我希望在我的C#.Net项目中使用这个项目来访问项目中的所有方法/类。
对于这种情况,你可以将您的项目属性 - >一般 - >配置类型设置为动态库(.dll)。
For this case, you could set your project property->General->Configuration Type into Dynamic Library (.dll).
然后使用像PInvoke一样在你的c#代码中调用本机dll。这是一份供您参考的文件。
Then use like PInvoke to call native dll in your c# code. Here is a document for you as a reference.
https:/ /msdn.microsoft.com/en-us/library/55d3thsc.aspx
希望这可以为您提供帮助。
Hope this could be help of you.
最诚挚的问候,你好b $ b Sera Yu
Best Regards,
Sera Yu
这篇关于需要用于Visual C ++的DLL MFC应用程序向导项目(EXE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!