[請益] 程式網頁中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