Vs2010 use #import DLL cause getOriginalHeight() duplicate define

Jul 16, 2012 at 4: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 ?

Coordinator
Jul 17, 2012 at 7: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.

--
Paul

Jul 21, 2012 at 1:02 PM

 

Thanks!

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.

--

ForwardBruth