David,

It is possible to do a Project Link from within UltraEdit. Here is a short 
description on how to:
1. Create a MBLink.bat file. You could create this file in the main folder of 
your MapBasic source code. It should contains these lines:
@Echo off
"C:\MapBasic\MapBasic 7.8\Mapbasic.Exe" -NOSPLASH -L ""%1.mbp""
if exist ""%1.err"" type ""%1.err""

Where C:\MapBasic\MapBasic 7.8\ is the path to your MapBasic compiler/editor. If

2. In UltraEdit goto Advanced > Tool configuration and create a new Tool with 
these settings:
Command Line: "C:\Data\MB_CODE\MBLink.bat" "%rp%rn"
Working direktory: "C:\Data\MB_CODE\"
Menu Item Name: Link MapBasic Project
Save all files first: Checked
Command Output: Output to List box
Capture Output: Checked

where C:\Data\MB_CODE\ is the path to your bat file.
Also remember the "" around the file/path

3. Now when you need to use the MapBasic Link, all that is required is that you 
create a UltraEdit project with the same name (but different extension) as your 
MapBasic project file, and that you have them in the same folder. I would also 
recommend that you in general use the UltraEdit projects for your MapBasic 
application developments as this will keep track of the files etc.

When you have created the UltraEdit project, you can go to Advanced > Link 
MapBasic Project. UltraEdit will then call the bat file and send along the file 
name of the project, without the extension. The bat file will call the MapBasic 
compiler with the name of the UltraEdit project + ".mbp"

If there was an error doing the link, this error should be shown in your Output 
window in UltraEdit

Isn't this just great ?

Peter Horsb�ll M�ller
GIS Developer
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis


-----Original Message-----
From: David Reid [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 11, 2005 3:28 AM
To: 'MapInfo-L'
Subject: SUM: MI-L MBO written instead of MBX


Thanks to Mladen and Doug for the boost in the right direction on project 
linking/compiling.  This was my first taste of this part of using Mapbasic.

The scripts, both mine and the ones installed with Mapbasic were all ok, I just 
hadn't learned about project linking and this must be done from the two 
compiled code files.

It would also appear part of my problem was that I use UltraEdit to create/edit 
my scripts and also compile from within UltraEdit. And my setup for using UE 
does not accommodate project linking.

Thanks again, you took a big chance, as they say...
"Give a man a fish, you feed him.
Teach him to fish... Then ya have to teach him to clean it, and then how to 
cook it."

David


-----Original Message-----
From: David Reid [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 10, 2005 1:00 PM
To: MapInfo-L
Subject: MI-L MBO written instead of MBX


Greetings List,

I am attempting to customize the cordinate converter app which was supplied as 
a code sample when Mapbasic is installed but I kept getting errors.

So, I deleted the stuff and started over with the original unedited source
files:
LONGLATS.MB
DMSCNVRT.MBP
DMSCNVRT.MB

When I compile, the only thing created is the DMSCVRT.MBO file.

I read a similar post some months ago that "Sub Main" must be declared and it 
is in the DMSCVRT.MB file.

What am I doing wrong?

Thanks,
David Reid

-- 
Outgoing mail is certified Virus Free
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 05/10/2005
 


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


-- 

Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 05/10/2005
 

-- 
Outgoing mail is certified Virus Free
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 05/10/2005
 


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


Reply via email to