Cannot load *.mbx

238 views
Skip to first unread message

Shahar

unread,
Jun 2, 2011, 9:36:52 AM6/2/11
to MapInfo-L
Hello,

I wrote a code called "ManageTables" and it works on my computer.
When another person from my office, who has an older version of
Mapinfo on his computer (not 10.5) tries to run it, he gets this
message:

"Cannot load ManageTables.MBX. Version 10.50 of Mapinfo can load it."

Why is it?
I wrote the code with MapBasic 9.5, so I don't really understand why
it asks for the latest version of Mapinfo.

If anyone knows why this happens and can give me a solution so that
everybody could use the code, I would appreciate it.

Thank you

Shahar

Bill Thoen

unread,
Jun 2, 2011, 10:24:32 AM6/2/11
to mapi...@googlegroups.com
On 6/2/2011 7:36 AM, Shahar wrote

> "Cannot load ManageTables.MBX. Version 10.50 of Mapinfo can load it."
>
> Why is it?
> I wrote the code with MapBasic 9.5, so I don't really understand why
> it asks for the latest version of Mapinfo.

Are you absolutely sure that you weren't using the 10.5 MapBasic
compiler? If you want to see what version was used to compile the MBX,
just dump the file in a DOS window and you'll see something like this:

!App
!Version 780
!Charset WindowsLatin1

The second line tells you that this file was compiled with MapBasic ver 7.8.

If you no longer have DOS available on your computer or have no clue how
to use it anyway, then open the file with NotePad or some other text
editor that won't try to "correct" your end of record/file characters
(i.e. don't use WordPad or Word). All MapInfo files contain a header of
identifiers prefixed by a '!' character, and .MBX files all start with
!App, followed by !Version. Divide that number by 100 to see which
compiler you used. I bet you'll see !Version 1050.


--
*Bill Thoen*
GISnet - www.gisnet.com
303-786-9961

Spencer Simpson

unread,
Jun 2, 2011, 10:39:28 AM6/2/11
to mapi...@googlegroups.com

I'm sure you already knew it, but just to clarify, it doesn't matter which
compiler you use to compile .MB source to .MBO files. It only matters which
one you use to link the .MBO files into an .MBX. It's the linker that
writes the version information out. The linker can use .MBO files
compiled with an earlier version of MapBasic.

I finally figured out how to use TextPad to compile and link MapBasic and
not also be annoyingly clunky. The trouble is, with multiple versions of
Mapbasic installed, I have to remember to use the correct shortcut to
compile and link with the correct version. Could something like that be
your problem?

________________________________

Spencer

--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en


zer...@gmail.com

unread,
Jun 2, 2011, 10:59:27 AM6/2/11
to MapInfo-L
Okay, this compile and linking things is new info for me. I never know about it before.

I have 2 version mapbasic installed in my machine and using notepad++ as main editor. You are right, the most problem I have is I hit the wrong shortcut to compile and linked the code. (It's only two version, what if I have more :-) )


Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT

Shahar

unread,
Jun 5, 2011, 4:15:41 AM6/5/11
to MapInfo-L
Thank you all. that in fact was the problem. I had 2 versions and
didn't notice which one I used for compiling.
> archives, feature requests, to visit our Wiki, visit the Welcome page athttp://groups.google.com/group/mapinfo-l?hl=en
>
> --
> You received this message because you are subscribed to the
> Google Groups "MapInfo-L" group.To post a message to this group, send
> email to mapi...@googlegroups.com
> To unsubscribe from this group, go to:http://groups.google.com/group/mapinfo-l/subscribe?hl=en
> For more options, information and links to MapInfo resources (searching
> archives, feature requests, to visit our Wiki, visit the Welcome page athttp://groups.google.com/group/mapinfo-l?hl=en-הסתר טקסט מצוטט-
>
> -הראה טקסט מצוטט-
Reply all
Reply to author
Forward
0 new messages