上一页 1 ··· 3 4 5 6 7
摘要: 1. Write native(unmanaged) code with C/C++, and make sure compile it as a DLL, the sample is as below#include using namespace std;extern "C"{ _decls... 阅读全文
posted @ 2015-11-23 23:30 Researcher 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.FileStream.Writestring filePath = Directory.GetCurrentDirectory() + "\\" + Process.GetCurrentProcess().ProcessName + ".txt"; if (File.Exi... 阅读全文
posted @ 2015-11-23 19:25 Researcher 阅读(85431) 评论(0) 推荐(0) 编辑
摘要: 第一种,手工移动。该方法根据鼠标位置实现窗体的移动。网上有很多相关的例子,这里不再多讲。第二种,调用系统API原理:是当鼠标左键按下时,让系统认为是在标题栏按下的。这里我们用到了winapi里的WM_LBUTTONDOWN(客户区鼠标左键按下,值:0x0201)和WM_NCLBUTTONDOWN(非... 阅读全文
posted @ 2015-11-23 18:28 Researcher 阅读(2714) 评论(1) 推荐(0) 编辑
摘要: 用sizeof求类的大小,http://blog.csdn.net/szchtx/article/details/10254007(sizeof浅析(三)——求类的大小),这篇博文给出了非常详尽的举例介绍。但是细心的话,你会发现一个小瑕疵,那就是对如下例子求sizeof(B),在VS下是16不是12... 阅读全文
posted @ 2015-06-03 00:01 Researcher 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. Create a "NeverOff" power plan:Control Panle->System and Security->Power Options->Create a power plan->Select "High performance" and then rename th... 阅读全文
posted @ 2014-09-22 14:14 Researcher 阅读(378) 评论(0) 推荐(0) 编辑
摘要: If our web site hosted on web server canot be accessed by other computer by public network, one of the possiblity is the firewall setting is not confi... 阅读全文
posted @ 2014-06-09 08:49 Researcher 阅读(290) 评论(0) 推荐(0) 编辑
摘要: As a so exciting dream, I would like set up my owned web site which can be accessed anywhere nomatter from laptop/mobile phone or tablet. Current now ... 阅读全文
posted @ 2014-06-08 22:19 Researcher 阅读(270) 评论(0) 推荐(0) 编辑
摘要: You know as a beginner to learn WCF, the first thing is to make a simplest WCF service work like a classic "Hello World" console application. Now I wi... 阅读全文
posted @ 2014-06-08 20:58 Researcher 阅读(578) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7