FireFly 3.62 and MLG.SLL

Started by Jean-pierre Leroy, September 16, 2013, 01:28:51 PM

Previous topic - Next topic

Paul Squires

BTW Pete, I just checked out your website. Very cool stuff! Did you create the software listed there using FireFly?
Paul Squires
PlanetSquires Software

Pete Totushek

Thanks Paul!  Everything on there is Firefly and Powerbasic execpt the latest version of LAN Speed Test (Lite).  Unfortunately (or fortunately) there has been a good demand for LAN Speed Test in a Mac version.  I checked out many options, and finally decided on PureBasic to cross compile.  LAN Speed Test (Lite) has been successfully ported to PureBasic and compiled in PC (32 bit & 64 bit) & Mac executables.  I just need to do some fine tuning to finish the Linux version (and figure out how I will be supporting it).  I found that the latest releases of PureBasic are actually quite powerful and impressive once I dug into it.  There is one thing missing however.  There are no visual designers that are even close to the power and ease of Firefly available for PureBasic.  Everything just flows so nicely using Firefly.  You have no idea how much I miss it when I am working in PureBasic!  Thanks for the great product Paul!

-Pete 
-Pete
www.totusoft.com -- Home of LAN Speed Test

Carl Oligny

Does the dot beta allow me to use MLG.SLL and the MLG control from the toolbox?

I edited the ctl file in the James Klutho\My Little Grid  folder and set dll_required   = 0.

Removed MLG.DLL  from release folder.

I added these lines to FF_AppStart:

%MLGSLL = 1
#Link "\Projects\Libraries\mlg.sll"
'#INCLUDE "\Projects\Libraries\mlg.inc" - I remmed this line due to a conflict with the mlg.inc in the James Klutho\My Little Grid folder

Created a form, added MLG using the toolbox and complied.

I get a message 'Could not load 3rd party custom control: MLG.DLL. Program runs ok but no MLG.

Paul Squires

You need to add these two lines rather than edit the "dll_required" line:

sll_filename    = MLG.SLL
sll_required    = 1

No need to add the "#LINK" to FF_AppStart, FireFly will do that for you.
Paul Squires
PlanetSquires Software

J P Eskdale

I've been trying to get MLG with an SLL working

It works fine as a DLL.

I added

sll_filename    = MLG.SLL
sll_required    = 1


to the MLG.ctl file straight after the dll_filename  = MLG.DLL
and I also tried replacing these lines but Pauls post says add the lines

I added the %MLGSLL = 1 to the AppStart

Using the MLG_Demo
The exe generated is 62K when configured for dll
When I generate it as an sll it compiles OK and the MLG Test.exe becomes 366K but there is no grid displayed on the form
Any suggestions please - Thanks


Carl Oligny

I changed my MLG.ctl file this way and the grid displays correctly using FF 3.70:

dll_filename    = MLG.dll
dll_required    = 0
sll_filename    = MLG.SLL
sll_required    = 1

I got it working a few weeks ago, but I had the same problem you encountered.

J P Eskdale

Hi Carl,

I tried your suggestion but with that I get the larger file but it still uses the dll

if I add to FF_AppStart


  %MLGSLL = 1



Then I get the larger file but no grid displayed

However if I also add to FF_WinMain


   MLG_Init()


then it seems to work
So I think it needs the 3 sets of changes - hope this helps others
Jon

Carl Oligny

The MLG_INIT() is the other step I used - forgot that I did it, but it is essential.

Paul Squires

The DLL is compressed with a packer (upx maybe) - that's why it is so small. The SLL is, of course, not packed. That's why it increases the size of the exe so much so.
Paul Squires
PlanetSquires Software