
CreateThread and VB6, Anyone got it working
I donwloaded the zip file you posted, but.... it worked when I ran it. I'm using VB6.0SP2.
I installed VB6 on my work PC with SP2, and calling CreateThread makes the EXE crash. Sorry, but I couldn't confirm Adi's code. The project I used can be downloaded in a zip file at:
http://www.execpc.com/~jrbock/ft.zip
Regards,
Jason
Just because you weren't real clear...did you run the code in VB6's IDE or as a standalone, natively compiled EXE? As MS has stated, compiling the code as P-code may circumvent CreateThread problems. Also, I've found that VB6 IDE doesn't bark as loud as VB5's IDE with CreateThread.
If SP2 does make all the problems go away, I'd advise against it anyway. I love CreateThread and I wish VB would support multithreading (without using COM) but until they explicitly do, I've chucked any development using CreateThread in VB. Personally, I'm using PowerBASIC to handle my threading - it's so freaking easy in that tool, it makes me wonder at times why VB doesn't add it.
Regards,
Jason
I did. Try downloading the Visual Studio Service Pack 2. I had the same problem with multithreadin in VB6 (it worked in VB5 but it was no longer working). I installed VSSP2 on my computer and started by mistake the application with multithreading code. And IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!
Greatings.
Has anyone managed to get this to work yet ?