如何将Console application的Program函数变成支持async的?
摘要:如何将Console application的Program函数变成支持async的? class Program { static void Main(string[] args) { Task.Run(() => MainAsync()).Wait()...
阅读全文
posted @
2016-10-28 16:13
今夜太冷
阅读(335)
推荐(0) 编辑
Can’t Activate Reporting Services Service in SharePoint
摘要:访问sharepoint的reporing service 的报表的时候莫名其妙的报错: The requested service, 'http://amatltapp02:32843/1dacf49a2f7a4a6daa8db5768539893f/ReportingWebService.svc' could not be activated. See the server's diagnos...
阅读全文
posted @
2016-10-28 16:05
今夜太冷
阅读(314)
推荐(0) 编辑
How to Programmatically Impersonate Users in SharePoint
摘要:Sometimes when creating SharePoint web or console applications, you may need to execute specific code blocks in another user's context. Impersonating users in SharePoint will require a couple of thi...
阅读全文
posted @
2016-10-26 16:26
今夜太冷
阅读(233)
推荐(0) 编辑
Visual Studio 2013 always switches source control plugin to Git and disconnect TFS
摘要:A few days ago, I've been facing a strange behavior with Visual Studio 2013. No matter what solution I was opening, Visual Studio kept switching the source control plugin to Git. I was sure all my...
阅读全文
posted @
2016-10-26 10:23
今夜太冷
阅读(199)
推荐(0) 编辑
Visual Studio 2013 always switches source control plugin to Git and disconnect TFS
摘要:A few days ago, I've been facing a strange behavior with Visual Studio 2013. No matter what solution I was opening, Visual Studio kept switching the source control plugin to Git. I was sure all my sol...
阅读全文
posted @
2016-10-26 10:20
今夜太冷
阅读(247)
推荐(0) 编辑
MFC对话框中使用CHtmlEditCtrl
摘要:MFC对话框中使用CHtmlEditCtrl 感谢原帖作者: http://blog.csdn.net/tingya/article/details/2028172 我在VS2008校正了一些代码。 最近由于项目需要,需要在对话框中使用CHtmlEditCtrl控件,网上大部分的代码都是直接使用CHtmlEditView的,很少有CHtmlEditCtrl在对话框中使用的示例。网上有一个《动...
阅读全文
posted @
2016-10-21 23:14
今夜太冷
阅读(773)
推荐(0) 编辑
ATL开发 ActiveX控件的 inf文件模板
摘要:ATL开发 ActiveX控件的 inf文件模板
阅读全文
posted @
2016-10-20 10:13
今夜太冷
阅读(356)
推荐(0) 编辑
ActiveX: 如何用.inf和.ocx文件生成cab文件
摘要:ActiveX: 如何用.inf和.ocx文件生成cab文件
阅读全文
posted @
2016-10-19 17:04
今夜太冷
阅读(538)
推荐(0) 编辑
Xslt 1.0中使用Array
摘要:XSLT Variable Arrays I recently answered a question on a popular programmers forum about how to store and access an array of user-defined variables in a stylesheet and then loop though those variables...
阅读全文
posted @
2016-10-11 14:41
今夜太冷
阅读(764)
推荐(0) 编辑
如何分隔两个base64字符串?
摘要:如何分隔两个base64字符串? 用逗号或者任意的不在base64字符串内的字符都可以。 All you have to do is to use a separator which is not a valid Basc64 character.Commais not a base64 character so you can use. Base64 characters are[...
阅读全文
posted @
2016-10-09 13:44
今夜太冷
阅读(840)
推荐(0) 编辑
An attempt was made to load a program with an incorrect format
摘要:用.net调用一个C++ 32位的DLL, 编译的时候选择x86, 在部署到一个64位的机器上的时候报错:"An attempt was made to load a program with an incorrect format" 解决方法: 在出错的机器上,用VS命令行工具定位到.net exe所在的目录,然后运行 corflags /32Bit+ 参考文章如下: Tip ...
阅读全文
posted @
2016-10-08 11:28
今夜太冷
阅读(1467)
推荐(0) 编辑