|
我明明在MSDN查到在wince中存在Application.StartupPath,MessageBoxIcon.Information,MessageBoxIcon.Error等的用法。但在实际编wince的程序的时候,却出现如下错误:
------ 已启动生成: 项目: 相片管理器CE, 配置: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;WindowsCE /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll" /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Data.dll" /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.dll" /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Drawing.dll" /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Windows.Forms.dll" /reference:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Xml.dll" /debug+ /debug:full /filealign:512 /optimize- /out:"obj\Debug\相片管理器CE.exe" /resource:"obj\Debug\相片管理器CE.frmCreateFolder.resources" /resource:"obj\Debug\相片管理器CE.MainForm.resources" /resource:"obj\Debug\相片管理器CE.Properties.Resources.resources" /target:winexe frmCreateFolder.cs frmCreateFolder.Designer.cs "MainForm.cs" "MainForm.Designer.cs" Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs
D:\my document\相片管理器CE\相片管理器CE\frmCreateFolder.cs(33,98): 错误 CS0117: “System.Windows.Forms.MessageBoxIcon”并不包含“Information”的定义
D:\my document\相片管理器CE\相片管理器CE\frmCreateFolder.cs(41,135): 错误 CS0117: “System.Windows.Forms.MessageBoxIcon”并不包含“Information”的定义
D:\my document\相片管理器CE\相片管理器CE\frmCreateFolder.cs(51,89): 错误 CS0117: “System.Windows.Forms.MessageBoxIcon”并不包含“Error”的定义
编译完成 -- 3 个错误,0 个警告
========== 生成: 0 成功或最新,1 失败,0 被跳过 ==========
|
|