
CreateThread API function
Hi,
I've problems with using CreateThread function with VB 5.0.
My question is : how can i use it ?
My code is :
Private declare function CreateThread Lib "Kernel32" _
(lpThreadAttributes as SECURITY_ATTRIBUTES, _
Byval dwStackSize as long, _
lpStartAddress as long, _
lpParameter as Any , _
Byval dwCreationFlags as long, _
lpThreadID as long) as long
' Create the thread
lThread = CreateThread(tSecurity, 0, adressof DialoguerTube,
lHandleTubeServeur, 0, lThreadID)
I get an error number 87 (incorrect parameters).
Can you help me. I'm not sure i'have to use Adressof instruction. How can i
translate
the C-type LPTHREAD_START_ROUTINE with VB.
Thanks !
Thierry MOURGUIART