当前位置:编程学习 > C#/ASP.NET >>

欢迎兄弟姐妹前来挑战自己

小弟最近写了个桌面日历,以插件方式架构的,只完成了日历控件插件(写得不好见笑了),欢迎各位帮忙写插件,互相共享插件,让这款日历功能更多、更强大,谢谢!
Plugins.dll:存放所有接口,包括IPlugin(父接口)、IContextMenuPlugin 菜单插件、
IConfigPlugin 配置文件插件,对于不显示的功能可以直接实现 IPlugin,有XML文档说明,具体使用参见示例代码

程序下载地址:http://www.szim.net/download/DeskCalendar.rar
插件示例代码:
日历控件:http://www.szim.net/download/DeskCalendar.rar
开机自动运行:http://www.szim.net/download/AutoRunPlugin.rar
--------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 搞错了,日历插件地址是:
http://www.szim.net/download/CalendarPlugin.rar --------------------编程问答-------------------- good~~ --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 不错 ,顶一下 有机会学习学习 一起开发个插件客户端 --------------------编程问答--------------------
运行后右下角看到了,不过点击日历,报错了。异常信息。

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

************** 异常文本 **************
System.IO.FileNotFoundException: 未能加载文件或程序集“ArtTextLabel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
文件名:“ArtTextLabel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”
   在 DeskCalendar.CustomCalender..ctor()
   在 CalendarPlugins.Frm_ShowCalender.InitializeComponent()
   在 CalendarPlugins.Frm_ShowCalender..ctor()
   在 CalendarPlugins.CalendarPluginImp.tsmi_Click(Object sender, EventArgs e)
   在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   在 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   在 System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   在 System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ToolStrip.WndProc(Message& m)
   在 System.Windows.Forms.ToolStripDropDown.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)

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。



************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DeskCalendar
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/wuyazhe/Desktop/DeskCalendar/DeskCalendar.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Plugins
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/wuyazhe/Desktop/DeskCalendar/Plugins.DLL
----------------------------------------
DeskCalendar.IO
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/wuyazhe/Desktop/DeskCalendar/DeskCalendar.IO.DLL
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CalendarPlugins
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/wuyazhe/Desktop/DeskCalendar/Plugins/CalendarPlugins/CalendarPlugins.dll
----------------------------------------
AutoRunPlugin
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/wuyazhe/Desktop/DeskCalendar/Plugins/AutoRunPlugins/AutoRunPlugin.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如: 

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。


--------------------编程问答--------------------
引用 8 楼 wuyazhe 的回复:
运行后右下角看到了,不过点击日历,报错了。异常信息。

Assembly code

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

************** 异常文本 **************
System.IO.FileNotFoundException: 未能加载文件或程序集“ArtTextLabel, Version=1.0.0.0, ……

这个是什么操作系统 我的没报错 --------------------编程问答-------------------- 看看 Plugins\CalendarPlugins 目录下有没有 ArtTextLabel.dll --------------------编程问答-------------------- --------------------编程问答-------------------- 我知道了,把 ArtTextLabel.dll 放在当前程序目录下 --------------------编程问答-------------------- win7
有那个dll --------------------编程问答-------------------- 我再重新上传一下 --------------------编程问答--------------------
引用 10 楼 hyttplay 的回复:
看看 Plugins\CalendarPlugins 目录下有没有 ArtTextLabel.dll


没有 --------------------编程问答-------------------- --------------------编程问答-------------------- 已经重新上传了,再去下载看看,不好意思 --------------------编程问答--------------------
引用 16 楼 wenwei19861106 的回复:
太强了 膜拜楼主

楼主的美工很烂,所以东西比较难看 你也可以根据相关的接口实现 --------------------编程问答--------------------
引用 15 楼 porschev 的回复:
引用 10 楼 hyttplay 的回复:

看看 Plugins\CalendarPlugins 目录下有没有 ArtTextLabel.dll


没有


看错了。。。有这个DLL。。。

运行时会报这个错。。。

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

************** 异常文本 **************
System.IO.FileNotFoundException: 未能加载文件或程序集“ArtTextLabel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
文件名:“ArtTextLabel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”
   在 DeskCalendar.CustomCalender..ctor()
   在 CalendarPlugins.Frm_ShowCalender.InitializeComponent()
   在 CalendarPlugins.Frm_ShowCalender..ctor()
   在 CalendarPlugins.CalendarPluginImp.tsmi_Click(Object sender, EventArgs e)
   在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   在 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ToolStrip.WndProc(Message& m)
   在 System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。



************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
DeskCalendar
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/Vivi/Downloads/DeskCalendar%20(1)/DeskCalendar/DeskCalendar.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: 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.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Plugins
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/Vivi/Downloads/DeskCalendar%20(1)/DeskCalendar/Plugins.DLL
----------------------------------------
DeskCalendar.IO
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/Vivi/Downloads/DeskCalendar%20(1)/DeskCalendar/DeskCalendar.IO.DLL
----------------------------------------
CalendarPlugins
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/Vivi/Downloads/DeskCalendar%20(1)/DeskCalendar/Plugins/CalendarPlugins/CalendarPlugins.dll
----------------------------------------
AutoRunPlugin
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/Users/Vivi/Downloads/DeskCalendar%20(1)/DeskCalendar/Plugins/AutoRunPlugins/AutoRunPlugin.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.4927 (NetFXspW7.050727-4900)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如: 

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。



--------------------编程问答--------------------
做的很漂亮 --------------------编程问答-------------------- 你把 ArtTextLabel.dll 放在应用程序同级目录下
--------------------编程问答-------------------- 如果写有插件,请修改一下 PluginConfig.xml --------------------编程问答-------------------- 这帖子热度不行啊 --------------------编程问答-------------------- 自己顶一下 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 点击有时失效,界面要改进呵呵 --------------------编程问答-------------------- --------------------编程问答-------------------- 这是插件的问题,我写得比较匆忙,所以你们可以发表自己的插件 让大家分享,比如提供什么服务等 --------------------编程问答--------------------
引用 28 楼 rczjp 的回复:
点击有时失效,界面要改进呵呵

只是为 了实现功能 不关注界面 大家可以帮忙完善 呵呵 --------------------编程问答-------------------- 关于这个 插件现在只是简单的实现 后期会继续完善 相关的肯定还有很多问题 呵呵 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 插件 即插即用,你没做到哦(不能程序运行的时候就卸载插件,必须下次登录才行)


还有运行多个会显示多个,试试实现只能运行一个


搞插件 看下 程序域方面的东西。 --------------------编程问答--------------------
引用 35 楼 ly_longyue 的回复:
插件 即插即用,你没做到哦(不能程序运行的时候就卸载插件,必须下次登录才行)


还有运行多个会显示多个,试试实现只能运行一个


搞插件 看下 程序域方面的东西。

谢谢你的回复,我会努力修改的 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 恩,可以把时钟加上 --------------------编程问答--------------------
引用 40 楼 fanbingyuan 的回复:
恩,可以把时钟加上

这个只是简单的一个插件  大家都可以根据相关提供的接口 查看源码 进行开发 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- bangding --------------------编程问答-------------------- 好像界面显示没有控制好,进一步完善,不错 --------------------编程问答-------------------- --------------------编程问答-------------------- (⊙v⊙)嗯~~ --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- oh no 
wo yao zhuan hang le
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,