随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

12 2017 档案
How could I create a custom windows message?
摘要:[问题] Our project is running on Windows CE 6.0 and is written in C++ . We have some problems with the code , and we are unable to debug . We also found out that if in our application we create threads... 阅读全文
posted @ 2017-12-31 19:25 今夜太冷 阅读(125) 评论(0) 推荐(0) 编辑
如何屏蔽ctrl + v 粘贴事件,鼠标右键粘贴事件
摘要:通常在自己的APP里的密码框,验证码框需要屏蔽复制,粘贴,怎么办呢? 有三种方法: 1 hook 此方法是最完全的,但由于hook是全局的,容易影响到其它代码。 2 子类化文本框, 重写OnPaste函数,拦截WM_Paste消息 3 在PreTranslateMessage里判断键盘扫描码和虚拟码 阅读全文
posted @ 2017-12-31 18:29 今夜太冷 阅读(480) 评论(0) 推荐(0) 编辑
Andriod NDK assets的三个相关知识
摘要:如何获取assetManager engine->app->activity->assetManager Asset文件应该放在哪个目录? 如何生成tga文件: 可以用这个网站:https://image.online-convert.com/convert-to-tga 另外应该还有其他很多类似的工具,可以搜一下。 阅读全文
posted @ 2017-12-20 22:58 今夜太冷 阅读(391) 评论(0) 推荐(0) 编辑
Visual stuido 项目路径的奇怪问题
摘要:从别人那里以zip的形式接受了一个solution, 然后在接收目录解压缩,然后剪切到其他的目录。此时报错,说找不到项目文件,看Visual studio 寻找的详细路径,发现它还是到解压缩的那个目录去找文件, 找遍整个目录的文件内容,也没有发现哪里引用了解压缩的那个目录,怎么回事那? 【解决方法】 把现在的文件删掉,把压缩包拷贝到要放置的目录,然后在这个目录下面解压缩,就不会出现这个问题了。 ... 阅读全文
posted @ 2017-12-20 16:40 今夜太冷 阅读(155) 评论(0) 推荐(0) 编辑
ifdef ANDROID总是不好用
摘要:在vs的proprocessor definition中定义了ANDRIOD, 但是执行下面的代码的时候,总是说ANDROID is not defined. #ifdef ANDROID LOGW("engine_init_display: ANDROID is defined."); #else ... 阅读全文
posted @ 2017-12-19 20:05 今夜太冷 阅读(466) 评论(0) 推荐(0) 编辑
how to restrict copy paste in a Textbox, in MFC?
摘要:【问题】 I am developing a small application in MFC... there is a little problem..hope you guys would help me regarding this...Here we go..the problem is...I have 6 little edit control(Text box) in which ... 阅读全文
posted @ 2017-12-17 18:54 今夜太冷 阅读(192) 评论(0) 推荐(0) 编辑
无法从“void (__thiscall CtestDlg::* )(void)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”
摘要:按照孙鑫的教程添加自定义消息时,如果是VC6.0开发环境,也许没有什么 问题,但在VS2008中编译会报错的 无法从"void (__thiscall CtestDlg::* )(void)"转换为"LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)" 这是因为VS2008中消息返回值不允许为void,且消息参数不能为空,消息映射三处分别如下 #defin... 阅读全文
posted @ 2017-12-17 18:38 今夜太冷 阅读(207) 评论(0) 推荐(0) 编辑
CHtmlEditCtrl (3): More HTML Editor Options
摘要:In this version of our HTML Editor, we'll create a floating source view/edit window and we'll implement a system that will give us access to the most 阅读全文
posted @ 2017-12-16 19:17 今夜太冷 阅读(613) 评论(0) 推荐(0) 编辑
CHtmlEditCtrl (2): Add a Source Text Editor to Your HTML Editor
摘要:In a previous article, I described how to create an HTML editor using the MFC CHtmlEditCtrl class in a dialog box. It could be used for creating "rich 阅读全文
posted @ 2017-12-16 19:01 今夜太冷 阅读(626) 评论(0) 推荐(0) 编辑
CHtmlEditCtrl(1) : Use CHtmlEditCtrl to Create a Simple HTML Editor
摘要:I needed a lightweight HTML editor to generate "rich text" emails, so I decided to explore the features and capabilities of the MFC CHtmlEditCtrl cont 阅读全文
posted @ 2017-12-16 16:57 今夜太冷 阅读(518) 评论(0) 推荐(0) 编辑
HttpWebRequest抓取网页数据返回异常:远程服务器返回错误: (503) 服务器不可用
摘要:解决方法: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(webURL); //声明一个HttpWebRequest请求 request.Timeout = 30000; //设置连接超时时间 r... 阅读全文
posted @ 2017-12-14 16:19 今夜太冷 阅读(5844) 评论(1) 推荐(0) 编辑
HttpWebRequest: Remote server returns error 503 Server Unavailable
摘要:I have a client server application written in C# .Net 2.0. I have had the client/server response/request code running for 4 years(!). Recently, on a specific machine, the client can not connect to s... 阅读全文
posted @ 2017-12-14 16:02 今夜太冷 阅读(792) 评论(0) 推荐(0) 编辑
所有的图片后缀名
摘要:所有的图片后缀名 来自:https://en.wikipedia.org/wiki/Image_file_formats#Compound_formats_(see_also_Metafile) 阅读全文
posted @ 2017-12-11 16:10 今夜太冷 阅读(1966) 评论(0) 推荐(0) 编辑
system函数的应用一例
摘要:system函数的应用一例 阅读全文
posted @ 2017-12-10 19:26 今夜太冷 阅读(152) 评论(0) 推荐(0) 编辑
esUtil.h中的m变量报错
摘要:引用了OpenGL ES自带的esUtil.h, 编译的时候报错: typedef struct { GLfloat m[4][4]; } ESMatrix; expected member name or ";" after declaration specifiers 怎么回事那? 【分析】 ... 阅读全文
posted @ 2017-12-08 23:09 今夜太冷 阅读(556) 评论(0) 推荐(0) 编辑
OpenGL ES 3.0 and libGLESv2
摘要:note that libGLESv2 is the recommended Khronos naming convention for the OpenGL ES 3.0 library. This is the same name as the OpenGL ES 2.0 library. The names match because OpenGL ES 3.0 is backward co... 阅读全文
posted @ 2017-12-05 11:05 今夜太冷 阅读(1094) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示