Imports rtis = System.Runtime.InteropServices
Function VarPtr(ByVal e As Object) As Integer
Dim GC As rtis.GCHandle
Dim GC2 As Integer
GC = rtis.GCHandle.Alloc(e, rtis.GCHandleType.Pinned)
GC2 = GC.AddrOfPinnedObject.ToInt32
GC.Free()
Return GC2
End Function
How to use VarPtr in VB.NET ?
于 2019-05-27 22:48:23 首次发布
博客主要探讨了在VB.NET里如何使用VarPtr。VarPtr在编程操作中有一定作用,了解其使用方法对VB.NET开发有帮助,涉及到开发语言相关的编程技巧。
1829

被折叠的 条评论
为什么被折叠?



