0
|
Delano Zeke Ramdas · 技术社区 · 6 年前 |
1
1
我的建议是,如果要编写托管类,请编写托管类。如果要编写非托管类,请编写非托管类。 C++/CLI允许混合托管代码和非托管代码,但有一些限制。在编写 单个类的定义 ,您通常希望坚持其中之一。
如果您发现自己一直在使用托管/非托管转换,那么可能需要将您的类作为另一个类来编写。或者考虑更改类定义,将类的职责划分为托管类和非托管类。 |
Nicola · C++CLI项目中非托管数据上的C#指针 6 年前 |
Anton Savelyev · 在发布版本中删除类指针会导致内存问题 6 年前 |
shmnff · 显式转换int到SqlInt32 6 年前 |
Alex12 · windows窗体中的C++if语句[关闭] 7 年前 |
Claude Tan · 类型定义和类型引用之间有什么区别? 7 年前 |