c++ - GetProp()/SetProp() 在 Windows x64 下使用 Atom

标签 c++ windows

我将 GetProp()/SetProp() 与 Atom 结合使用。在 x64 下,SetProp() 的“lpString”是 64 位长。

MS 文档说:“原子必须放在 lpString 的低位字中;高位字必须为零。” 请参阅:https://technet.microsoft.com/de-de/ms633568

通常我用来设置 lpString 参数,在 x32 下似乎没问题。但是 x64 下“单词”的定义是什么?

GetProp(hwnd, (LPCTSTR) MAKELONG(atom, 0)) 在x64下创建警告,没错。但是这里还应该使用什么类型转换呢?

最佳答案

警告是什么?可能需要将其转换为 (LPTSTR)。

关于c++ - GetProp()/SetProp() 在 Windows x64 下使用 Atom,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37476130/

相关文章:

PHP preg_split Apache 和 Powershell 等价物

python - 为什么 boost::python 迭代器会跳过第一个元素?

c++ - 在 C++ 中填充 protobuf 字段

c++ - 为 ffmpeg 编码设置 RGB 帧的单个像素

windows - DCMTK movescu 错误 : response suceed but no file received

windows - 通过 Jenkins 通过 Powershell 插件安装 appx

windows - net time命令中的/y是什么意思?

windows - Powershell:查找已安装的防病毒软件,过滤掉 Windows Defender

c++ - 类型转换以减少代码

c++ - TBB 任务在不再递归时被阻塞