当前位置: 代码迷 >> Windows Mobile >> GPS定位map: 无法加载 DLL“coredll.dll”: 找不到指定的模块
  详细解决方案

GPS定位map: 无法加载 DLL“coredll.dll”: 找不到指定的模块

热度:8784   发布时间:2013-02-26 00:00:00.0
GPS定位地图: 无法加载 DLL“coredll.dll”: 找不到指定的模块。
我使用的是VS2008+Windows Mobile 6 Professional
在这里下的代码:http://down.csdn.net/down/1509627/pzhy666

有关此程序

有四个Form:第一个输入城市名,第二个地图定位(包括放大缩小和东西南北移动以及“我的位置”几个button),第三个我
  没运行出来,报错了。。。
有四个函数:GPS.cs,GpsDeviceState.cs,GPSPositionState.cs,LocationChangedEvent.cs

问题:

Form1和Form2都能用(不知道这样表达准不准确?),
但在Form2中点“我的位置”这个按钮,就错了

可能在问题表述上不是很清楚,问题点没有明确起来,能否指点一下,谢谢~~~


报错:(是要下载coredll.dll吗?)

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.DllNotFoundException: 无法加载 DLL“coredll.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。
  在 GPS定位.GPS.CreateEvent(IntPtr lpEventAttributes, Int32 bManualReset, Int32 bInitialState, StringBuilder lpName)
  在 GPS定位.GPS.Open() 位置 E:\projects\GPS_locating_Map\GPS定位-地图\GPS.cs:行号 106
  在 GPS定位_地图.Form3.startGPS() 位置 E:\projects\GPS_locating_Map\GPS定位-地图\Form3.cs:行号 81
  在 GPS定位_地图.Form3.Form3_Load(Object sender, EventArgs e) 位置 E:\projects\GPS_locating_Map\GPS定位-地图\Form3.cs:行号 140
  在 System.Windows.Forms.Form.OnLoad(EventArgs e)
  在 System.Windows.Forms.Form.OnCreateControl()
  在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
  在 System.Windows.Forms.Control.CreateControl()
  在 System.Windows.Forms.Control.WmShowWindow(Message& m)
  在 System.Windows.Forms.Control.WndProc(Message& m)
  在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
  在 System.Windows.Forms.Form.WmShowWindow(Message& m)
  在 System.Windows.Forms.Form.WndProc(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3603 (GDR.050727-3600)
  基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GPS定位-地图
  程序集版本: 1.0.0.0
  Win32 版本: 1.0.0.0
  基本代码: file:///E:/projects/GPS_Ref/GPS_locating_Map/GPS定位-地图/bin/Debug/GPS定位-地图.exe
----------------------------------------
System.Windows.Forms
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3053 (netfxsp.050727-3000)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
  程序集版本: 2.0.0.0
  Win32 版本: 2.0.50727.3082 (QFE.050727-3000)
  基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll