gpt4 book ai didi

c++ - Long Pointer to Constant Wide String,这里Long的作用是什么?

转载 作者:行者123 更新时间:2023-11-28 01:12:03 26 4
gpt4 key购买 nike

当你有一个 LPCWSTR 时,为什么它是一个长指针?据我所知,它的定义中没有 Long。

谁能解释一下?

最佳答案

'Long' 是 Windows 16 位的遗留物。在过去,在 DOS 和 Windows 3.x 上,大多数应用程序都是 16 位的,并且有 16 位的指针。 32 位指针是“长”指针,必须专门声明,并使用(在某些 DOS 情况下)选择器而不是平面地址空间。

关于c++ - Long Pointer to Constant Wide String,这里Long的作用是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2382122/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com