会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JasNature
大道自然
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2011年4月18日
使用DllImport 与 c++链接库 交互
摘要: 最近公司做的项目需要c++开发人员编写的算法与.NET交互,这个c# 与 c++编写的链接库打交道那叫一个累!最恶心的是 **int[] 指针的指针..后来发现其实操作最麻烦的也就是类型的对应,这个 **int[] 最后竟然使用 IntPtr[] 接收成功了。有意思。单个IntPtr接收不了。。(主...
阅读全文
posted @ 2011-04-18 20:48 JasNature
阅读(3765)
评论(1)
推荐(5)
2011年4月12日
.Net程序操作CMD命令
摘要: 使用代码操作CMD命令行程序public void ExecuteCmd(string cmd){ Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.Cre
阅读全文
posted @ 2011-04-12 21:11 JasNature
阅读(1304)
评论(5)
推荐(3)
.Net 程序加入到开机启动项(备忘)
摘要: 如何把.Net 程序加入到开机启动项中private void RegCompStartRun(bool cmd) { //获取程序执行路径.. string starupPath = Application.ExecutablePath; //表示Window注册表中项级节点,读取 Windows 注册表基项HKEY_LOCAL_MACHINE RegistryKey loca = Registry.LocalMachine; RegistryKey run = loca.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersio
阅读全文
posted @ 2011-04-12 21:02 JasNature
阅读(2215)
评论(1)
推荐(1)
2011年4月8日
ASP.Net 窗体身份验证详解 (转)
摘要: 介绍在ASP.Net 2.0如何做窗体身份验证,并且讲解了IIS和ASP.Net2.0窗体身份验证机制是如何结合在一起的。综述当某一个用户使用用户名成功登陆网站时,FormsAuthentication(窗体身份验证机制,下面统一使用英文术语) 将会创建一个authentication ticket (身份验证票),通过这个ticket就可以在网站上全程跟踪这个用户了。Form authentication ticket通常被包含在一个Cookie里面,但是Asp.net2.0也支持不使用Cookie的FormsAuthentication,这时候ticket就需要通过Query string
阅读全文
posted @ 2011-04-08 14:10 JasNature
阅读(2259)
评论(0)
推荐(1)
2011年3月31日
WebService 服务不符合 WS-I Basic Profile v1.1 解决办法
摘要: 最近在做项目遇到的!解决方案一:[WebService(Namespace = "")]//这个改为[WebServiceBinding(ConformsTo = WsiProfiles.None)]public class UserWebService : System.Web.Services....
阅读全文
posted @ 2011-03-31 15:11 JasNature
阅读(5662)
评论(0)
推荐(1)
上一页
1
2
3
4
公告
我要赞个
我要评论
我要收藏