Setup for development PC

Jun 25, 2013 at 2:51 PM
Edited Jun 25, 2013 at 2:57 PM

I'm new to MapWindow but not new to develop Window applications. My plan is to create a MapWindow application to visualize in-house GIS data.
I downloaded the source code with Tortoise SVN, (, loaded the 32bit ocx into vs2010 prof on win7 64bit PC. was able to make a VB program to load and visualize some shape file. I then load few DLLs and load MapWindow_VS2010 project. Realizing frmMain not loading correctly. I ditched the win7 64bit PC and moved the setup to WinXP 32bit. frmMain loaded properly and was able to rebuild MapWindow without error and warning. However, I got few exceptions when I tried to run it. I commented out the offending code and was able to run MapWindow without error.

My question to seasoned MapWindow developer, what is your development bench set up, ie
os version
dotNET version
what are the DLL needed.
Jun 29, 2013 at 9:03 PM
I started over with a clean bench win7 64bit , vs2010prof, Net4.0 client and one source and two binaries codes from

unzip dotspatial1.4_minimal to c:\dev
unzip dotspatial1.4 extended to c:\dev
unzip dotspatial-72399 to c:\dev

then remove "read only" attribute for c:\dev and subdirectories and files.
load DotSpatial-vs2010 into vs2010
rebuild solution <-----this is a critical step, it put the support files into predefined directory C:\debug\bin

at this stage, the bench is ready to develop demoMap type application.

For Mapwin6:

the get source file for mapwin6
load the project into vs2010
fix up the reference issues for

At this stage, it will build the app without error and warning, but the app will crash with known "skipping ....." error. I believe it is DLL/Framework version error. will work on it after I refuel my body.

PS. the admin suggested removing %APPDATA% to avoid the crash. I delete the mapwindow directory in %APPDATA% but app still crash.
Jun 29, 2013 at 10:10 PM
Edited Jun 29, 2013 at 10:11 PM
After a quick lunch and a clean pull of MapWin4.8 from (with Tortoise SVN checkout to a clean c:\dev.)

run cmd as administrator
cd c:\dev\bin
regsvr32 MapWinGIS.ocx

load the Mapwindow-vs2010 into vs2010,

rebuild. the run the mapwindow.exe in C:\dev\Bin, No crash....Wow

Now a working bench for MapWindow4 type app.... 5 days to setup a development bench.......longest in my career.
Jun 30, 2013 at 8:10 PM
Edited Jul 4, 2013 at 5:20 AM
After browsing the web and read up the tutorial, I think this may help newbie like me (new to MapWindow, old hand at window application development). The trick is to get a development bench with proper DLLs and populate the toolbox correctly. This setup is good for Map6 type development.