Run map basic executable

128 views
Skip to first unread message

shiv

unread,
Nov 20, 2013, 12:54:05 AM11/20/13
to mapi...@googlegroups.com
Hi,
I am a new bee to mapinfo and C++.
I want to run my map basic executable(.MBX) from my visual C++(MFC).
Any pointers towards this??
TIA.

Regards
ShIv

Thomas Bacon

unread,
Nov 20, 2013, 3:22:38 AM11/20/13
to mapi...@googlegroups.com

Hi Shiv,

 

How about using ShellExecute?

 

http://msdn.microsoft.com/en-us/library/windows/desktop/bb776886%28v=vs.85%29.aspx

 

Regards,

 

Tom Bacon

GIS Engineer, Mouchel

T 01444 472380 │ E thomas...@mouchel.com W www.mouchel.com

Our values: innovation │ excellence │ integrity │ responsibility

--
--
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
 
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Mouchel logo

Mouchel Limited (Mouchel) is registered in England and Wales with registered number 01686040 at Export House, Cawsey Way, Woking, Surrey, UK, GU21 6QX.  The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of Mouchel. No contracts may be concluded on behalf of Mouchel by means of email communications. Mouchel reserves the right to monitor and intercept emails sent and received on our network. 

shiv

unread,
Nov 20, 2013, 4:25:30 AM11/20/13
to mapi...@googlegroups.com
Hi Tom,
Thanks for the info.
In my understanding Shell will launch another application. But I want to embed MapInfo as an OLE object in my app(MFC)
I am using "mapinfo.Do("Run Application \"C:\project\map.MBX\"")" to run application but its giving empty window.
Is there any other way?
TIA.

Glen O

unread,
Nov 20, 2013, 12:22:30 PM11/20/13
to mapi...@googlegroups.com

I just tested this in VB.net and it works

Dim temp As String

temp =

 

 

"run application" & Chr(34) & "C:\OCG Data\MapInfo Mapbasic\Sector Maker\test.mbx" & Chr(34)

mapinfo.Do(temp)

 

Siibananda patro

unread,
Nov 20, 2013, 11:47:50 PM11/20/13
to mapi...@googlegroups.com
Hi Glen,
Do I need to set some visibility parameter for MapInfo to make the window visible unlike the normal code where I am simply able to show a map in MapInfo by calling the method from VC++?

P.S: In the above two cases the difference is, One I am just showing the Map and in second trying to run a map basic executable from VC++

Regards
ShIv


--
--
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
 
---
You received this message because you are subscribed to a topic in the Google Groups "MapInfo-L" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapinfo-l/zi-ZKTqZk3s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapinfo-l+...@googlegroups.com.

shiv

unread,
Nov 21, 2013, 6:07:44 AM11/21/13
to mapi...@googlegroups.com
Hi Glen,
Thanks I am able to run MBX from MFC.
Reply all
Reply to author
Forward
0 new messages