[请益] 程式网页中marshal的意思

楼主: kino818 (好多梦 层层叠叠又斑驳)   2022-07-30 23:16:18
各位大大好,工作非开发,想多自学点程式
几年前看过marshal,至今仍不懂
请各位大大帮忙解释,谢谢
https://stackoverflow.com/questions/41638504/sleep-lib-kernel32-gives-64-bit-sys
tems-error
截取一段如下,包含marshal
The dwMilliseconds parameter is a DWORD, so it will technically be 32bit on a 32
bit machine and 64bit on a 64bit machine. Because of this, it requires PtrSafe n
otation (although technically dwMilliseconds will marshal correctly because it's
ByVal... and who wants to wait that long anyway) Change the declaration to this
:
作者: agogoman (cocorosie)   2022-08-03 16:46:00

Links booklink

Contact Us: admin [ a t ] ucptt.com