Azure/C++/C#/Java/Asp.net/JavaScript/Html - MFC/COM/ActiveX/eclipse/Web

dlbrant

working soft

博客园 首页 新随笔 管理

随笔分类 -  Miscellaneous

摘要:CString CXXUtil::FormatMessageFor(HRESULT hr){ CString strMsg; LPVOID pvMsgBuf = NULL; LPCTSTR pszMsg = NULL; if(FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, (DWORD)hr, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (... 阅读全文
posted @ 2013-07-09 14:46 dlbrant 阅读(759) 评论(0) 推荐(0)

摘要:which type of VS files should be committed into a version control system?aps, no: last resource editor statecpp, yes: source codeexe, no: build resultfilters, yes: project fileh, yes: source codeico, yes: resourceidb, no: build stateipch, no: build helperlastbuildstate, no: build helperlib, no: buil 阅读全文
posted @ 2013-07-09 11:08 dlbrant 阅读(193) 评论(0) 推荐(0)

摘要:<= IE6:IE6 下如果iframe很多,子框架的BeforeNavigate2,DownloadBegin,DownloadComplete,DocumentComplete可能交替出现打开新网页刷新现有页面主窗口 BeforeNavigate2 (top most)主窗口 DownloadBegin (top most)主窗口 DownloadComplete(top most)主窗口DownloadBegin (top most)主窗口DownloadComplete(top most)主窗口 DownloadBegin (top most)主窗口 NavigateComple 阅读全文
posted @ 2013-06-28 13:37 dlbrant 阅读(713) 评论(0) 推荐(0)

摘要:结构化异常不能用于需要调用对象析构函数的函数中__try{}__except(){}__try{}__finally{} 阅读全文
posted @ 2013-06-25 11:29 dlbrant 阅读(234) 评论(0) 推荐(0)

摘要:枚举所有iframe的IWebBrowser2// Get the IDispatch of the document.//LPDISPATCH lpDisp = NULL;lpDisp = m_webBrowser.GetDocument();if (lpDisp){ IOleContainer* pContainer; // Get the container. // HRESULT hr = lpDisp->QueryInterface(IID_IOleContainer, (void**)&pC... 阅读全文
posted @ 2013-06-24 19:35 dlbrant 阅读(2916) 评论(0) 推荐(0)

摘要:js中调用console写日志console.log("some log");console.warn("some warning");console.error("some error");IE:只有在打开IE开发者工具后才能使用console,默认访问IE的console对象会出错。FF和Chrome没有问题。 阅读全文
posted @ 2013-06-20 18:27 dlbrant 阅读(5899) 评论(1) 推荐(0)

摘要:原文:http://www.cnblogs.com/Jesenwuzj/archive/2010/03/18/1688776.htmlVi中文手册1、vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),各模式的功能区分如下:1) 命令行模式command mode) 控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入Insert mode下,或者到 last line mode。2) 插入模式(Insert mode) 只有在 Insert mode下,才可以做文字... 阅读全文
posted @ 2013-06-19 11:49 dlbrant 阅读(237) 评论(0) 推荐(0)

摘要:Error:HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.Solution:Click Start -> Run cmd and type:cd "\Windows\Microsoft.NET\Framework\v3.0\ 阅读全文
posted @ 2012-08-15 11:18 dlbrant 阅读(201) 评论(0) 推荐(0)

摘要:什么是Build Action? Build Action is how the file relates to the build and deployment processes.在Visual Studio 2010的Windows Phone工程中, 有多个build action。它们之间有什么区别呢? * None: 此文件不参与编译也不被输出。比如:工程中的文档文件, readme.txt。* Compile: 参与编译并输出。主要是代码文件。* Content: 不参与编译,但会被输出。* Embedded Resource: 此文件被嵌入到主工程生成的DLL或exe中。主要是 阅读全文
posted @ 2012-04-12 12:04 dlbrant 阅读(514) 评论(0) 推荐(0)

摘要:部署程序和数据库的时候,在真实服务器上往往可用的工具很少,有时候需要测试一个数据库连接是否有问题,可以通过以下步骤手工测试: 1. 新建一个文本,重命名为TestConnection.udl; 2. 双击打开TestConnection.udl;3. 设置好所用的data provider和connection参数,click Test connection按钮;4. 测试完成,当然在这里还可以查看并编辑当前connection的所有参数 阅读全文
posted @ 2012-04-11 15:07 dlbrant 阅读(1143) 评论(0) 推荐(0)

摘要:第二届游戏开发者大会(GDC)2009年10月11日-10月13日于上海会议中心举行。立足中国,面向游戏行业专业人士的权威会议 。http://china.gdconf.com/ 暴雪也将参加此次大会,不知道暴雪的暗黑3什么时候出来,不要再跳票了。http://www.d3cn.com/ 阅读全文
posted @ 2009-02-19 12:47 dlbrant 阅读(232) 评论(0) 推荐(0)

摘要:利用Windows API实现精确计时 阅读全文
posted @ 2009-02-17 16:21 dlbrant 阅读(2222) 评论(2) 推荐(0)

Software