如何将非CLR dll转换为CLR dll并使用Winform C ++? [英] How to convert non CLR dll to CLR dll and using Winform C++ ?

查看:80
本文介绍了如何将非CLR dll转换为CLR dll并使用Winform C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我看到在编译为非CLR时出现问题,我的项目使用了一个符合没有通用语言对运行时支持"的dll,但是我的项目是C ++ winform,我不知道如何导入该dll来调用功能.您能帮我解决问题吗,在这里,我想使用Winform C ++项目中的unmanage dll.

谢谢大家!

Hi Everyone,

I see problem in compiling to non CLR, My project usage a dll to complied with "No common langgue to runtime support" but My project is C++ winform, I don''t know how to import the this dll to call fuctions. Can your help me to solver.Here, I want to usage the unmanage dll inside the Winform C++ project.

Thanks everyone !

推荐答案

此工作转换"困扰了该网站!

不,没有办法.平台根本不同.您只能通过为其他平台重新编写项目来移植项目.另外,您也可以使用混合模式项目(托管+非托管;仅适用于Windows)移植其中的一部分.使用C ++/CLI,您可以或多或少地自由混合两种平台的代码.它需要真正了解平台以及托管和非托管声明之间的协作原理.

—SA
This work "convert" haunts this site!

No, there is no way. The platforms are fundamentally different. You can only port the project by re-writing it for a different platform. Alternatively, you can port only part of it using a mixed-mode project — managed+unmanaged; with C++/CLI, you can more or less freely mix code for both platforms. It takes really deep knowledge of both platforms and principles of collaboration between managed and unmanaged declarations.

—SA


这篇关于如何将非CLR dll转换为CLR dll并使用Winform C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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