• Welcome to PlanetSquires Forums.
 

MLG in FreeBasic

Started by James Klutho, January 14, 2017, 05:47:46 PM

Previous topic - Next topic

James Klutho

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

Paul Squires

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. :)
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Richard Marchessault

#2
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.
Thanks,
Dick

James Klutho

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.