vc2008中mfc菜单、控件等汉字显示为问号或乱码的解决方法
摘要:在vc2008中建立基于mfc的project。在向导的Application type页面中如果在resource language选项中选择"英语(美国)"(图一),那么在project中的设置菜单或者控件(如button)上的汉字会最终显示为"?"。有几个汉字就有几个问号!解决的方法也比较简单。看图就可以了!据说孙鑫的视频上也有。 图一 图二 图三 ...
阅读全文
posted @
2018-02-28 20:24
今夜太冷
阅读(633)
推荐(0) 编辑
CMenu and Dialog-based applications
摘要:【问】 Is it possible to put a menu in a dialog based application? How? 【答】 Yes, it is possible to add menu to the dialog based applications. You can create the menu as a resource and attach the same to ...
阅读全文
posted @
2018-02-28 20:19
今夜太冷
阅读(192)
推荐(0) 编辑
如何拷贝一个wchar_t类型的字符串
摘要:Do this, wchar_t clone[260]; wcscpy(clone,szPath); Or, if you want to allocate memory yourself, wchar_t *clone = new wchar_t[wcslen(szPath)+1]; wcscpy
阅读全文
posted @
2018-02-28 19:58
今夜太冷
阅读(5230)
推荐(1) 编辑
如何将.NET 4.0写的Windows service和Web API部署到docker上面
摘要:Web API. 看这篇文章: https://docs.microsoft.com/en-us/aspnet/mvc/overview/deployment/docker-aspnetmvc Windows service. 看这篇文章https://stackoverflow.com/quest
阅读全文
posted @
2018-02-27 15:11
今夜太冷
阅读(1340)
推荐(0) 编辑
用Telnet测试服务器的端口是否开通
摘要:可以用telnet测试远程服务器的端口是否开通,格式如下: telnet 例如: Telnet tserv 3389 来自:https://support.microsoft.com/en-us/help/187628/using-telnet-to-test-port-3389-functionality 拷贝内容如下: Using Telnet to Test Port 3389...
阅读全文
posted @
2018-02-12 16:07
今夜太冷
阅读(3922)
推荐(0) 编辑
MongoDB: 如何删除一个collection中的一个字段?
摘要:Try this: If your collection was 'example' db.example.update({}, {$unset: {words:1}}, false, true); Refer this: http://www.mongodb.org/display/DOCS/Updating#Updating-%24unset UPDATE: The above ...
阅读全文
posted @
2018-02-06 10:47
今夜太冷
阅读(1121)
推荐(0) 编辑
MFC中的KillTimer
摘要:在Dialog中添加一个Timer。 用如下的代码停用一个Timer总是不好用: void CDialog2::OnTimer (UINT TimerVal) { ////////////////////////////////////////////// // // Stop the timer // ...
阅读全文
posted @
2018-02-04 12:05
今夜太冷
阅读(1758)
推荐(0) 编辑
Using Timers in MFC Applications
摘要:Timer Events in MFC Applications Event timers are always handy to have around and useful in nearly every project. When a timer is readily available, s
阅读全文
posted @
2018-02-04 11:55
今夜太冷
阅读(246)
推荐(0) 编辑
Log4net的不能产生Log文件的问题
摘要:【问题】 用如下的步骤应用了Log4Net: 建立了一个公用的项目, 在里面引入了Log4net的Nuget package. 在公用的项目中建立了一个类,加上了Log4net的attribute. [assembly: log4net.Config.XmlConfigurator(Watch = true)] namespace MyNamespace.Common { pub...
阅读全文
posted @
2018-02-02 09:51
今夜太冷
阅读(491)
推荐(0) 编辑