主题:CreateThread后 用CopyMemory取函数参数问题
mHandle = CreateThread(ByVal 0&, ByVal 0&, cFunction, ByVal VarPtr(function_Param), CreationFlags, lpThreadID)
Function single_baidu_last_snap(ByVal domain As Long) As Long
'domain 为 1308520
Dim last_snap
Dim domain_zhi As string
CopyMemory ByVal VarPtr(domain_zhi), ByVal domain, 4
Debug.Print domain_zhi
domain_zhi并没有取到domain的值,请大家帮我看看
Function single_baidu_last_snap(ByVal domain As Long) As Long
'domain 为 1308520
Dim last_snap
Dim domain_zhi As string
CopyMemory ByVal VarPtr(domain_zhi), ByVal domain, 4
Debug.Print domain_zhi
domain_zhi并没有取到domain的值,请大家帮我看看