sancarn / Extended_MapBasic

This is an Open Source project. We are developing a powerful extension for the MapBasic Window in Pitney Bowes' MapInfo. The extension will give users the ability to compile on demand from the MapBasic Window. Further extensions may include custom MapBasic functions to accomplish common tasks. This project is still very much WIP
MIT License
1 stars 0 forks source link

Compile to .EXE #12

Open sancarn opened 8 years ago

sancarn commented 8 years ago

Recently I changed the front page adding an intended feature, that I had never dreamt of before:

But... How? In this issue I am going to brainstorm my ideas on this.

How it works

The actual idea is pretty simple. Our Transpiled MapBasic source code will be placed in a AHK file - mbSrc.ahk like:

MapBasicSrc = ("
<MapBasic code goes here>
")

We also create a MapBasicExecuter.ahk.

The first line of this code will Include mbSrc.ahk.

The rest of the application will parse be set up to parse the MapBasicSrc variable. It will identify For loops, if statements, dialogs statements and parse all necessary information to MapInfo using OLE Automation.

This will truly be revolutionary to MapBasic developers wanting to create simple but secure MapBasic applications - including the ability to even license MapBasic applications. The possibilities with this technique are potentially endless.