blogjava's web log

blogjava's web log
...

     摘要: 在这里要夸一夸google 记事本 让我能快速的把一些链接保存起来,然后从记事本 直接导入google Doc ,并且google Doc
提供MetaWeblog 可以直接发表到自己的博客上..google太有才了,迷的我们这些同志神魂颠倒,想离开她都难..........

//此篇文章是用Google Doc 发布的.  阅读全文
posted @ 2007-03-30 08:29 record java and net 阅读(276) | 评论 (0)编辑 收藏

想要IE或word点击超链接打开本地的EXE应用程序,这个怎么办?

比如点击这样的链接

<a href="vip:123-MonacoGP-19279-Senna">打开我的协议</a>

将打开我的EXE应用程序?

首先你要修改注册表,要让IE看的懂像href="vip:123-MonacoGP-19279-Senna" 这样的协议.

c#如何写注册表?

//写注册表
RegistryKey key = Registry.ClassesRoot.CreateSubKey("vip");
key.SetValue("", "URL:vip Protocol");
key.SetValue("URL Protocol",""); 

RegistryKey Subkey= key.CreateSubKey("DefaultICon");
Subkey.SetValue("", "exe文件路径"); 

Subkey = key.CreateSubKey("shell").CreateSubKey("open").CreateSubKey("Command"); 

Subkey.SetValue("","exe文件路径"); 

这段代码是在 注册表 HKEY_CLASSES_ROOT 下新建vip 的键

结构是这样的

HKEY_CLASSES_ROOT
vip
  (Default) = "URL:vip Protocol"
  URL Protocol= ""
  DefaultIcon
   (Default) = "c:\somepath\APPTest.exe"
  shell
   open
    command
     (Default) = "c:\somepath\APPTest.exe" "%1"

创建完以后当你点击这样(vip:123-MonacoGP-19279-Senna)的链接,就可以打开外部的自己定义的应用程序了.

当然winform 应用程序还可以接收你传过来的值

比如 EXE应用程序启动的时候接收链接传过来的 123-MonacoGP-19279-Senna字符串,你可以在winform 启动的时候捕获这个值

[STAThread]
static void Main(string[] args)
{ 

if (args.Length > 0)
{

//arg[0]就是刚刚链接传过来的

// 赋值=arg[0];
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}

如何给IE工具栏添加图标和按钮,菜单,打开自己的应用程序?
可以看看这篇
http://www.codeproject.com/useritems/CorKatIEExtension.asp

关于快速的操作注册表
你可以参考
http://www.codeproject.com/cs/system/quickregistry1.asp

本文来源http://www.codeproject.com/aspnet/APPHyperlinks.asp

//

上面所有链接文章的源代码下载地址

http://www.blogjava.net/Files/wujun/APPTest.rar

//END

posted @ 2007-03-30 08:28 record java and net 阅读(4892) | 评论 (4)编辑 收藏

         现在可以自动生成了。选择图片存放的目录,点击生成就可以。不过是c#.net写的。运行还必须.NET Framework.

详细可以看

http://pranas.net/webgallerycreator/

演示效果可看

http://pranas.net/webgallerycreator/Sample%20Gallery/default.htm

什么是Lightbox?

http://www.huddletogether.com/projects/lightbox2/

http://www.blogjava.net/beansoft/archive/2007/01/15/94027.aspx

http://wiki.springside.org.cn/display/springside/Lightbox?showComments=true&decorator=printable

posted @ 2007-02-05 09:54 record java and net 阅读(1428) | 评论 (2)编辑 收藏
     摘要: First Java Server Faces Tutorial (JSF) - Eclipse
The example application will provide the following functionality.

*Display a book overview (list of books)
*Add, edit and delete a book  阅读全文
posted @ 2007-01-23 18:48 record java and net 阅读(1270) | 评论 (0)编辑 收藏
     摘要: 分析土豆网视频 等~  阅读全文
posted @ 2007-01-11 09:48 record java and net 阅读(2668) | 评论 (2)编辑 收藏
仅列出标题
共31页: First 上一页 4 5 6 7 8 9 10 11 12 下一页 Last 

导航

常用链接

留言簿(44)

新闻档案

2.动态语言

3.工具箱

9.文档教程

友情链接

搜索

最新评论