如何在C sharp和C ++之间使用通用数据类 [英] How to use common data class between C sharp and C++

查看:67
本文介绍了如何在C sharp和C ++之间使用通用数据类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在c sharp和c ++之间使用通用模型类。我想创建我的模型类一,并希望在我的客户端和服务器之间重用。我找到了不同的解决方案但是在c sharp中使用非托管dll的正确方法是什么。



我尝试过的方法:



主要是我找到了托管dll的解决方案。我想使用unmanaged dll

I want to use common model class between c sharp and c++. I want to create my model class one and want to reuse between my client and server. I found different solutions but what is the proper and easier way to use unmanaged dll in c sharp.

What I have tried:

Mostly i found the solution for managed dll. i want to use unmanaged dll

推荐答案

不是文档(使用非托管DLL函数 [ ^ ])是否符合您的需求?
Doesn't the documentation (Consuming Unmanaged DLL Functions[^]) fit your needs?


这篇关于如何在C sharp和C ++之间使用通用数据类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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