Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从我在 C++/CLI 代码中获得的参数中获取 PtrInt
输入是 CWnd*,我需要返回 PtrInt 作为输出。
谢谢你的帮助。
你是说 IntPtr 吗?您可以使用 IntPtr(void*) 构造函数从本机指针创建 if:
IntPtr ptr((void*)pWnd);