tesscallback.h(1011): error C2872: “remove_reference”: 不明确的符号
admin | 取词 | 2014-01-20
真正原因查明:\tesseract-ocr\include\tesseract\tesscallback.h(1011): error C2872: “remove_reference”: 不明确的符号。 引发的真正元凶是
#include “baseapi.h” 与
using namespace std;
在源码文件中出现顺序的问题,先 #include “baseapi.h” 后
using namespace std; 则OK, 如此可以避免名字的冲突!!!
[阅读全文]
QTextEdit 取词
admin | 取词 | 2014-01-15
C++
bool MyTextEdit::event(QEvent* event)
{
if (event->type() == QEvent::ToolTip)
{
QHelpEvent* helpEvent = static_cast<QHelpEvent*>(event);
QTextCursor cursor = cursorForPosition(helpEvent->pos());
cursor.select(QTextCursor::WordUnderCursor);
if (!cur... [阅读全文]
GetLastError返回代码的含义
admin | 开发问题 | 2014-01-14
int i = GetLastError();
build by dlltest 2.0
〖0〗-操作成功完成。
〖1〗-功能错误。
〖2〗-系统找不到指定的文件。
〖3〗-系统找不到指定的路径。
〖4〗-系统无法打开文件。
〖5〗-拒绝访问。
〖6〗-句柄无效。
〖7〗-存储控制块被损坏。
〖8〗-存储空间不足,无法处理此命令。
〖9〗-存储控制块地址无效。
〖10〗-环境错误。
〖11〗-试图加载... [阅读全文]
字样索引(Glyph Index)与字符之间的转换
admin | 取词 | 2014-01-14
本文是我研究针对复杂文本屏幕取词和动态翻译关键技术而写的日记(C语言)
马依尔江
首先我们必须要知道索引值(Glyph Index Value)和字符(Char)的关系。通常一个TTF字体中有很多字符,每个字符对应一个形状,有些字符的字符UNICODE码不一样,可是形状是一样的,也就是说不同的字符的形状有可能是同一个样的。所为字样索引就是字体中的那些形状的排序号。... [阅读全文]
破解window8系统激活
admin | 破解工具 | 2014-01-12
昨天俺的window8突然在右下角出现几行半透明的字,睁大眼睛才看清,说是我window8系统激活码过期,需要重新激活,估计很多朋友也会有和我一样的问题,一般window8安装好后填写的激活码只能使用180天,网站也有很多方法去破解这个,但是很繁琐,有的甚至还要打电话激活,这种方式不是咱们想要的,咱们要的就是一键破解,傻瓜式操作,说一下方法。
首先需... [阅读全文]
LoadLibrary Fails with error 193 on 64 bit Windows 7
admin | 开发问题 | 2014-01-10
Any CPU will give you a 64 bit process on win64, you cannot load a 32bits dll into a 64 bits process. If you have no 64 bits versions of your dlls you can change your soltion platform from ‘any cpu’ to ‘x86′ to force a 32 bits process which has no issues loading 32 bits dlls.
[阅读全文]
Browser control Mozilla Activex control
admin | win32 | 2014-01-10
C++
Visual C++
ActiveX controls are slightly more tricky to use from C++, however here are 3 ways you can use the control.
Subclassing CHtmlView
MFC provides a CHtmlView class which may be used to instantiate the Internet Explorer control. Since the Mozilla control is API compatible, the steps a... [阅读全文]
使用 libZPlay 播放音乐文件
admin | 开源项目 | 2014-01-09
http://www.oschina.net/code/tag/libzplay
http://libzplay.sourceforge.net/
https://github.com/kaisawind/Subversion
[阅读全文]
svn checkout error
admin | 开发问题 | 2014-01-08
Shell
set SvnPath=C:\Progra~1\TortoiseSVN\bin\svn.exe
pushd %cd%
%SvnPath% cleanup
%SvnPath% up
checkout.bat
1234567
set SvnPath=C:\Progra~1\TortoiseSVN\bin\svn.exepushd %cd%%SvnPath% cleanup %SvnPath% up checkout.bat
保存为 checkou... [阅读全文]