Results 1 to 32 of 32

Thread: c/c++ code for vb6 multithreading

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,797

    Re: c/c++ code for vb6 multithreading

    Niya, VB6 supports multithreading and had supported it since 1998 year. There are two types of project - ActiveX EXE and ActiveX DLL (OCX) where your code can live in the different ST-apartments. This is the quite famous information but most of the VB6-programmers i guess never read the official help. Most of the multithreading task can be solved within VB6 but peoples want to break rules and use unsafe things in VB6 shooting themself in the foot. I still don't understand why TS wants to use it and i won't help until i get answer because i think such tasks are related to malware coding. There is no issues if you breaks the rules when you know how things works and you can bypass some things to make the code more performanced or bypass some good restrictions. But when i see the code like above - i think this is no reason to help because there is no understanding at all and it will only get worse.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Dec 2021
    Posts
    144

    Re: c/c++ code for vb6 multithreading

    Quote Originally Posted by The trick View Post
    Niya, VB6 supports multithreading and had supported it since 1998 year. There are two types of project - ActiveX EXE and ActiveX DLL (OCX) where your code can live in the different ST-apartments. This is the quite famous information but most of the VB6-programmers i guess never read the official help. Most of the multithreading task can be solved within VB6 but peoples want to break rules and use unsafe things in VB6 shooting themself in the foot. I still don't understand why TS wants to use it and i won't help until i get answer because i think such tasks are related to malware coding. There is no issues if you breaks the rules when you know how things works and you can bypass some things to make the code more performanced or bypass some good restrictions. But when i see the code like above - i think this is no reason to help because there is no understanding at all and it will only get worse.
    Hello the Trick,

    I donot know what to answer.
    How can you judge me as trying to write malware or worse code.I tried to write in c/c++ the same code which you did in vb6 and
    and you helped me by showing the link based on my conversation with FireHacker.Initially I did'nt even asked you for the help.
    You only responded to me after which I tried and requested for help only for improvement and not anything else.
    I donot bother about others who commented me since I only interacted with FireHacker ,yourself and JSVenu who really helped
    me technically since my first post.
    If you see the above code I am using GetModuleHandle(0) which takes instance handle of a vb6 std exe when this
    dll is loaded into vb6 std exe which shows that I am considering using vb6 object instead of using msvbvm60.dll directly as you
    suggested me in first post for initializing project.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width