Author Topic: VB6 ActiveX DLL GUI Forms  (Read 2834 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3510
    • ScriptBasic Open Source Project
VB6 ActiveX DLL GUI Forms
« on: September 29, 2020, 01:34:50 PM »
I just completed a project for a client that used a VB6 ActiveX DLL form and a ScriptBasic thread for the process keeping the UI active and updated with the threads status.

If there is any interest in using portable UI components in your next project leave a post or I will just keep this for myself if no one cares.
« Last Edit: September 30, 2020, 07:10:15 AM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3510
    • ScriptBasic Open Source Project
Re: VB6 ActiveX DLL GUI Forms
« Reply #1 on: October 07, 2020, 04:17:11 PM »
The Rust version for Windows adopted by Microsoft uses an IDE that looks like VB6. The interesting part is the IDE is encapsulated in a COM/OLE DLL.

I'll post more about the IDE if it can be used generically.

Offline John

  • Forum Support / SB Dev
  • Posts: 3510
    • ScriptBasic Open Source Project
Re: VB6 ActiveX DLL GUI Forms
« Reply #2 on: October 07, 2020, 09:11:46 PM »
I though I would provide an update about how my VB6 and ScriptBasic project is going. My Sage 100 to Postgres SQL interface runs around the clock and is as solid as a rock. Memory use is stable using 1.5% of the CPU.

This is my first ScriptBasic 'for real' threaded application using VB6 as a front end.
« Last Edit: October 07, 2020, 09:14:41 PM by John »

Offline John

  • Forum Support / SB Dev
  • Posts: 3510
    • ScriptBasic Open Source Project
Re: VB6 ActiveX DLL GUI Forms
« Reply #3 on: October 11, 2020, 06:05:55 AM »
Why I love ScriptBasic.

Dave Zimmer didn't get to support for passing back floats in the VB6 callback routine.

No problem. I pass the float as a STR() and in the SB callback function I do the following to make it a float again.

Code: ScriptBasic
  1. fnum = fstr + 0
  2.  


Offline John

  • Forum Support / SB Dev
  • Posts: 3510
    • ScriptBasic Open Source Project
Re: VB6 ActiveX DLL GUI Forms
« Reply #4 on: November 12, 2020, 12:14:26 PM »
Here is the final version of my ScriptBasic and VB6 ActiveX DLL form project. A multi-threaded application with a VB6 frontend.
« Last Edit: November 12, 2020, 12:20:05 PM by John »