判断 ActiveX.EXE 是否已经在执行中

前端之家收集整理的这篇文章主要介绍了判断 ActiveX.EXE 是否已经在执行中前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

首先需要支持GetObject(),

这在 http://topic.csdn.net/u/20080827/13/01b722a7-de68-46b8-a0c6-8d551a194e8f.html 中已经解决了。

其次,你的问题看下面就明白了
VB code
  1. dim
  2. f
  3. as
  4. object
  5. ,bIsFirstCreate
  6. as
  7. boolean
  8. on
  9. error
  10. resume
  11. next
  12. set
  13. f
  14. =
  15. getobject
  16. (...)
  17. on
  18. error
  19. goto
  20. 0
  21. if
  22. f
  23. is
  24. nothing
  25. then
  26. set
  27. f
  28. =
  29. createobject
  30. (...) bIsFirstCreate
  31. =
  32. True
  33. end
  34. if

猜你在找的VB相关文章