PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: MLG in FreeBasic  (Read 431 times)

James Klutho

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 225
  • Petroleum Software Solutions
MLG in FreeBasic
« on: January 14, 2017, 05:47:46 PM »

As most of you probably know, I sold MLG to Gary Beene and I don't program much (if any) currently.  I was asked by someone if I could show how MLG could be used with Freebasic.  I never pursued hard any other platforms other than PowerBasic but did plan for if there was any interest outside of PowerBasic would arise. I put together a small example using one of Jose's sample templates with his CWindows package and made a small MLG.bi conversion.  This should get people going if they want do more conversion of the header.  In the sample I show a couple of SendMessage calls to MLG.  I also showed MLG_PUT and MLG_GET using zstrings instead on PowerBasic Bstrings. This was undocumented.  The MLG DLL is not included in the zip.  Hope someone finds this useful.

Jose - your CWindows port is incredible.  The quality and the amount of work you do is beyond words.

For years I kept an eye on Freebasic but never programmed much with it.  I was always suspect on how robust it was.  Looks like Paul and Jose have beat on pretty hard and no major complains yet.  FreeBasic's much more picky about enforcing types which makes for better programming but I have been lazy in PowerBasic.

I lurk the PowerBasic forum and seems only the DDTers remain.  The think PowerBasic is more fun for the hobbyists but Freebasic looks like it has more running room for the serious programmer.

Good luck to everyone in the New Year.

Jim
Logged

Paul Squires

  • Administrator
  • Master FireFly Member
  • *****
  • Posts: 8104
  • Windows 10
    • PlanetSquires Software
Re: MLG in FreeBasic
« Reply #1 on: January 14, 2017, 08:30:58 PM »

Excellent Jim, thanks so much for sharing! It is so good to see you posting again. Hope you have an awesome year and I wish you the best as always.

These days I do 99% of my coding in FreeBasic. :)
Logged
Paul Squires
PlanetSquires Software
FireFly Visual Designer, WinFBE Editor

Richard Marchessault

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 184
Re: MLG in FreeBasic
« Reply #2 on: September 06, 2017, 11:02:26 PM »

I opened this with WinFBE 1.5.3 and compiled it with FB 1.05.0 (32 bit). Compiles fine but crashes when it is run. Any recommendations?

Moved MLG.DLL to the folder with MLG FreeBasic demo program. Program now runs fine but crashes on exit.
« Last Edit: September 06, 2017, 11:10:19 PM by Richard Marchessault »
Logged
Thanks,
Dick

James Klutho

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 225
  • Petroleum Software Solutions
Re: MLG in FreeBasic
« Reply #3 on: September 07, 2017, 09:25:54 AM »

I had an older MLG DLL (version 2.066) on the machine I wrote the sample on. What version of the DLL are you using?  If it is a newer version, maybe something in the include file has changed.
Logged