
Multithreading in VB 6 WITHOUT COM
Quote:
> Has anyone tried the CreateProcess in VB 6 for multithreading?
Wouldn't you create a process as opposed to a thread using
CreateProcess?
I haven't tried it myself but my feeling is that if you want to
implement multithreading in VB6 you should let COM handle it for you
(serialised calls and cross-thread marshalling). Using Win32 calls is
asking for trouble and a lot of debug time.
I have done multithreading in VB6 using CreateObject within an ActiveX
exe, using a timer and some callback using interfaces. I have spent a
few weeks understanding why he did not work on my deployment machine but
did on my development one. My advice is to make sure you get the latest
SP installed on NT workstation and NT Server (I had troubles with NT
Server SP3).
Yann.