摘要: 最近公司做的项目需要c++开发人员编写的算法与.NET交互,这个c# 与 c++编写的链接库打交道那叫一个累!最恶心的是 **int[] 指针的指针..后来发现其实操作最麻烦的也就是类型的对应,这个 **int[] 最后竟然使用 IntPtr[] 接收成功了。有意思。单个IntPtr接收不了。。(主... 阅读全文
posted @ 2011-04-18 20:48 JasNature 阅读(3692) 评论(1) 推荐(5) 编辑
摘要: 使用代码操作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 阅读(1285) 评论(5) 推荐(3) 编辑
摘要: 如何把.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 阅读(2191) 评论(1) 推荐(1) 编辑
摘要: 介绍在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 阅读(2224) 评论(0) 推荐(1) 编辑
摘要: 最近在做项目遇到的!解决方案一:[WebService(Namespace = "")]//这个改为[WebServiceBinding(ConformsTo = WsiProfiles.None)]public class UserWebService : System.Web.Services.... 阅读全文
posted @ 2011-03-31 15:11 JasNature 阅读(5581) 评论(0) 推荐(1) 编辑
我要赞个
我要评论
我要收藏