积极答复者
VB2010中什么函数返回字符串地址,类似于strptr()

问题
答案
-
VB6之后的VB.NET是托管语言,不可以直接操作地址(指针),对象的生命周期(创建或销毁)由GC负责。
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
- 已建议为答案 Cherry BuMicrosoft contingent staff, Moderator 2017年4月5日 1:25
- 已标记为答案 kx11sd d. 39 2017年4月5日 13:33
全部回复
-
您好,
很抱歉你不能获取字符串的内存地址,因为它不是静态的,内存管理器时刻都在移动它。
Best Regards,
Cherry Bu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- 已建议为答案 Cherry BuMicrosoft contingent staff, Moderator 2017年4月5日 1:25
-
VB6之后的VB.NET是托管语言,不可以直接操作地址(指针),对象的生命周期(创建或销毁)由GC负责。
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms
- 已建议为答案 Cherry BuMicrosoft contingent staff, Moderator 2017年4月5日 1:25
- 已标记为答案 kx11sd d. 39 2017年4月5日 13:33