MapWindow 4 - ActiveX Control Programming : MapWindow Discussion Forum
Hi all, We have a new computer in the office that is Windows 7. When I've gone to install my application it won't run. So i've installed visual studio on here to see what the problem is. I've worked through most of the errors I was getting and my app now builds. However, when I try t
Getting app to build on Windows 7
Posted by: leddy ()
Date: January 18, 2011 04:33AM

Hi all,

We have a new computer in the office that is Windows 7. When I've gone to install my application it won't run. So i've installed visual studio on here to see what the problem is. I've worked through most of the errors I was getting and my app now builds. However, when I try to run the app, I get this error:

Could not load file or assembly 'WeifenLuo.WinFormsUI.Docking, Version=2.3.1.29124, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Can you shed any light on what I need to do to get this working on Windows 7

Cheers
leddy

Options: ReplyQuote
Re: Getting app to build on Windows 7
Posted by: pmeems ()
Date: January 18, 2011 06:23AM

It seems you don't have all the supporting libraries.
You can get them here: [svn.mapwindow.org]

The x64 binaries of MapWindow have been compiled with VS2010 on Win7 and those seem to work fine.

Can you tell us what errors you've found and how you've fixed them?

Thanks,

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

Options: ReplyQuote
Re: Getting app to build on Windows 7
Posted by: leddy ()
Date: January 18, 2011 07:40AM

Hi Paul & thanks for getting back to me so quickly.

Do I need these binaries when I am just using the ocx or are they for when I'm rebuilding it myself? If it is the former, can you give me some pointers as to where I should put those files?

Re the errors I was getting. Similar to the one above but it was for the MapWinGeoProc/MapWindow.Interfaces - I was able to fix those in the frmMain.resx file by changing the base to base86 (not sure if that was right but it did take the error away!) I can't seem to find a way to do a similar thing for the WeifenLou dll

Thanks

leddy

Options: ReplyQuote
Re: Getting app to build on Windows 7
Posted by: pmeems ()
Date: January 24, 2011 03:48AM

The supporting library files are only needed when you compile the ocx yourself.
It is best to put the source code of the ocx in c:\dev\MapWinGIS4Dev and the supporting files in C:\Dev\SupportLibraries. You need the bin, lib and include folders of the supporting files.
Then you should be able to compile the ocx.

If you're just using the ocx in your custom application you need these dlls:
* gdal17.dll
* geos_c.dll
* IndexSearching.dll
* libecwj2.dll
* log4net.dll
* lti_dsdk_dll.dll
* proj.dll
* xerces-c_3.dll

If you're using MapWindow.exe you need all binaries from svn.mapwindow.org/svnroot/MapWindow4Dev/Bin/

But I still don't understand why you would compile all the binaries yourself.
I'm doing that every week as well and commit the binaries to the bin folder.

--
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

Options: ReplyQuote
Re: Getting app to build on Windows 7
Posted by: nmb100 ()
Date: March 16, 2011 07:44AM

Hi Leddy

I came across a problem when i was doing an app last year, and it had to go onto a Windows 7 machine. My problem was more around the database links and sqls, however it may be related. If you are programming in Visual Studio, have you set your programming environment to the X86 platform? This can be located (i am using Visual studio express) Build >>> Configuration manager >>> Release should be X86 (you can create it if it is not there) and not Any CPU.

Hope this helps.

Nigel

Options: ReplyQuote


Sorry, only registered users may post in this forum.





Banner Exchange




GISCP.com




Send us your banner logo (160x120) for the space above, and add this MapWindow banner ad to your site:

Just paste this text in your page: