• Welcome to PlanetSquires Forums.
 

WinFBE and Activex

Started by SeaVipe, February 09, 2023, 05:43:38 PM

Previous topic - Next topic

SeaVipe

Hi Paul,
Is there a way to incorporate a visual Activex control onto a WinFBE form?
As an alternative, I've been reviewing posts on the FB forum but unable to find anything that my skill level could make work without considerable guidance.
I appreciate Activex may not be the way to go but I already have a licenced product and the DLL version is not an option.
Clive Richey

Paul Squires

Hi Clive,

Visual ActiveX controls have always been a burden to use in PB and FB. Jose has created a class "CAxHost" that can host as a container for some visual ActiveX controls. You can see some of his posts here about it: https://www.planetsquires.com/protect/forum/index.php?topic=4073.210

Maybe you can point me to the ActiveX in question and I can get an evaluation download of it to see if there is any possibility of getting it working in WinFBE. It may be hit or miss so don't get your hopes up.  :-)

 
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

Thanks, Paul,
I've sent off an email to the current rights holder to determine if there are any issues with posting/sending a link to the legacy install. Unfortunately, it's 16bit but I have the components already installed. VSFlexGrid.
Clive Richey

José Roca

> Unfortunately, it's 16bit

You mean 32bit, right?

VSFlexGrid is an update of MSFlexGrid. I posted an example for MSFlexGrid:
https://www.planetsquires.com/protect/forum/index.php?topic=4073.msg31230#msg31230

José Roca

The above example was mainly to test the class CDispInvoke. For an effective use, you may need to write interface declarations for direct calls and a class for events.

Ten years ago, I posted an example for Power Basic:

https://forum.powerbasic.com/forum/jose-s-corner/source-code-ab/59613-microsoft-flex-grid

Frankly. All this requires a very good knowledge of COM programming, or use a compiler such the old VB6 that makes it easy to work with OCXs.


SeaVipe

Quote from: José Roca on February 11, 2023, 08:51:44 PM> Unfortunately, it's 16bit

You mean 32bit, right?
Thanks, José, Windows says the installer can't be run on my 64bit machine, as well the first 2 bytes of the ocx equate to "MZ" which appears to indicate a 16bit Activex.
Although VSFlexGrid is feature-rich, it may not be worth the effort and I may just pursue your MSFlexGrid PB example!
Clive Richey

Paul Squires

I seem to remember that VBX were the 16-bit controls in old Visual Basic whereas OCX were the 32-bit controls.
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

SeaVipe

I think I'll put the VSFlexGrid Activex back in my software museum where it belongs!
Clive Richey