Bill Thoen was the one who showed me how to use Ultra Edit as a compiler. I
use it exclusively now. Here are the instructions per Bill's original e-mail
to me.




Sure. That's how I use it with MapBasic to MBX. Under the Advanced  menu,
choose Tool Configuration. First, create a little compile script in DOS
batch
language, and call it MI_Compile.bat, and save it some place handy. I put it
in my c:\Program Files\MapInfo directory. It contains the following 3 lines:

@Echo off
start/wait MAPBASIC.EXE -NOSPLASH -D %1.mb
if exist %1.err type %1.err

In the Command Line edit control put "C:\Program
Files\MapInfo\MI_Compile.bat"
"%p%n" (include the quotes)  In the Menu Item control put whatever you want
for this tool's menu label. I use MapBasic Compile. Check "Save all files
first", select "Output to listbox", and check "capture output", and then
save
this with the Insert or Replace button.

WARNING! If you are using Norton antivirus, disable it before you compile
this
way. If you don't, your machine will probably need a reboot. I've been told
that the fix for this is to use the "Alternate capture method" but I haven't
explored that; I just switch off NAV. McAffee has no such problem.

Anyway, if all is set up, bring your mb file in focus in UE and choose the
new
tool on the Advanced menu, and it should compile. Make a similar batch file
(e.g. MI_Link.bat) for linking and set it up in a similar way. Mine looks
like:

@Echo off
start/wait MAPBASIC.EXE -NOSPLASH -L %1.mbp
if exist %1.err type %1.err

There's more than one way to do this, but look in the UE help and the
MapBasic
manual for compiling outside the MB editor, and experiment. I actually now
use
GNU make under UE to compile and link large MapBasic projects in one step
(plus it only recompiles things that have changed, so it's fast) but that's
a
whole other topic. Good luck!


--
- Bill Thoen


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3413

Reply via email to