用vb6实现多线程 [英] implement multi threading with vb6

查看:552
本文介绍了用vb6实现多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我负责通过连接到PC的多个串行端口实施自动化过程的任务. 如何使用vb6实施多线程以通过附加的串行端口独立执行一些自动化任务?

I Have this task of implementing automation process through multiple serial ports attached to the pc. How can i implement multi threading with vb6 to independently do some automation tasks through the attached serial ports?

提前谢谢.

推荐答案

否,vb6不支持多线程.它通过破解winapi在vb5中工作,但在vb6中被完全破坏了.错误处理已失败,一个线程中出现错误使所有错误均崩溃.移至vb.net以将其取回.

No, vb6 doesn't support multi-threading. It sorta worked in vb5 by hacking the winapi but got completely broken in vb6. The error handling is busted, getting an error in one thread crashes all of them. Move up to vb.net to get it back.

这篇关于用vb6实现多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆