MapWindow 4 - Plugins : MapWindow Discussion Forum
Hi all. I would trying to use MapwindowGIS to manage my maps and i would try to manage some personally funcion (activity) from the extern application. I tried to following (but at list doesn't work): developer a new plugin and create a com server in it In
iteraction between mapwindow and extern application
Posted by:
cgallucci ()
Date: December 09, 2009 06:49AM
Hi all.
I would trying to use MapwindowGIS to manage my maps and i would try to manage some personally funcion (activity) from the extern application.
I tried to following (but at list doesn't work):
developer a new plugin and create a com server in it
In this way i cannot share mapwindow pointer between plugin and com class server
is anyone knowing a different approach to solve my needed?
Any hint?
thanks a lot.
I would trying to use MapwindowGIS to manage my maps and i would try to manage some personally funcion (activity) from the extern application.
I tried to following (but at list doesn't work):
developer a new plugin and create a com server in it
In this way i cannot share mapwindow pointer between plugin and com class server
is anyone knowing a different approach to solve my needed?
Any hint?
thanks a lot.
Re: iteraction between mapwindow and extern application
Posted by:
pmeems ()
Date: December 10, 2009 01:53AM
I haven't seen a MW plug-in before with a COM server in it.
But if you can create a form with your COM object and you can get that to work it also should work in a plug-in.
What error are you getting?
In what language are you developing?
For C# and VS2008 a template plug-in is available: TemplatePluginVS2008/
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
But if you can create a form with your COM object and you can get that to work it also should work in a plug-in.
What error are you getting?
In what language are you developing?
For C# and VS2008 a template plug-in is available: TemplatePluginVS2008/
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Re: iteraction between mapwindow and extern application
Posted by:
cgallucci ()
Date: December 11, 2009 04:39AM
Thanks Paul.
Maybe i explain better.
1) I create a plugin. Loaded correctly
2) Added a Com Class. Loaded Correctly
3) i would in my com class/method to use the mapwindow pointer to access project loading, shapefile creation and other stuff
In the 3th point the message i have is that the pointer (to mapwindow) is null
I think that the reson is that com server and plugin instance have differet scope also if i use a module class to share my pointer.
I develop using VB2008 and my app i developer in C++ builder.
Regard's
Carmelo
Maybe i explain better.
1) I create a plugin. Loaded correctly
2) Added a Com Class. Loaded Correctly
3) i would in my com class/method to use the mapwindow pointer to access project loading, shapefile creation and other stuff
In the 3th point the message i have is that the pointer (to mapwindow) is null
I think that the reson is that com server and plugin instance have differet scope also if i use a module class to share my pointer.
I develop using VB2008 and my app i developer in C++ builder.
Regard's
Carmelo
Re: iteraction between mapwindow and extern application
Posted by:
pmeems ()
Date: December 15, 2009 12:30AM
If you look at the sample plug-in you can see the MapWindow pointer is passed through other classes/form when creating them.
Can't you pass the pointer to your com class on creation in stead of using a global var?
BTW it is an interesting combination VB.NET and C++ ;)
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Can't you pass the pointer to your com class on creation in stead of using a global var?
BTW it is an interesting combination VB.NET and C++ ;)
--
Paul
--
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
tinyurl.com/mwMonthly 32-Bit
tinyurl.com/mwMonthlyx64 64-Bit
Follow me on Twitter MapWindow_nl to read when a new installer is published.
---
Paul Meems
The Netherlands
[www.bontepaarden.nl]
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
*******
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
*******
View my profile on LinkedIn
Sorry, only registered users may post in this forum.


