This project is read-only.

Vs2010 use #import DLL cause getOriginalHeight() duplicate define

Jul 16, 2012 at 5:41 AM

in Vs2010, use #import "MapWinGIS.DLL"

when complie, will cause getOriginalHeight() duplicate define in MapwinGis.tlh;

also getOriginalwidth(), and other two function,how can I do ?

Jul 17, 2012 at 8:49 AM

I'm not sure what you are doing.

MapWindow doesn't have a MapWinGIS.dll. Do you mean the interop dll or the ocx?
The VS2010 solution and project files might not be completely up-to-date.

Can you open the VS2008 solution? VS2010 will prompt you to convert and you should get a correctly working solution.


Jul 21, 2012 at 2:02 PM



I wrote the "MapWinGis.Dll"by mistake.The right one should be "MapWinGis.ocx".

It is surprising that  I have wrote "#import "C:/..../MapWinGis.ocx"im my project and when I compiled it ,the error occurs.but I Wrote "#import "C:/..../MapWinGis.ocx raw_interfaces_only",There was no errors.