|
[讨论]BITMAPINFO的赋值方法
看看DELPHI中的定义 它是翻译自WINDOWS.H 的(应该) tagBITMAPINFO = packed record bmiHeader: TBitmapInfoHeader; bmiColors: array[0..0] of TRGBQuad; end; 可以看出,第2个参数就是一个只有一个元素的数组 |
|
[讨论]BITMAPINFO的赋值方法
tagBITMAPINFO tbitmap; RGBQUAD rgb1; tbitmap.bmiColors[0]=rgb1; 我没用过这个东东 不过我这样定义和使用是没有问题的 |
|
[求助]请教一个数的转换
字符输出还是??? |
|
|
|
各位老大 ,能截获IE 地址栏的输入吗 怎么截获
www.baidu.com 很厉害 它使用的是什么技术呢 procedure ttieadvbho.dobeforenavigate2(const pdisp:idispatch;var url:olevariant;var flags:olevariant;var targetframename:olevariant;var postdata:olevariant; var headers:olevariant;var cancel:wordbool); begin if trim(url)='http://www.pediy.com' then begin Cancel:=True; URL:='http://www.163.com'; (pDisp as IWebbrowser2).Navigate2(URL,Flags,TargetFrameName,PostData,Headers); end; end; 这段代码可以成功的将PEIDY.COM转向到 163.COM 但是将PEDIY 换成BAIDU.COM 就无法转向到 163.com |
|
各位老大 ,能截获IE 地址栏的输入吗 怎么截获
9楼的问题 已经搞定 现在的问题是 在地址栏输入 随便一些字符 数字什么的 都可以转向到 WWW.PEDIY.COM 但是 输入WWW.BAIDU.COM就不行了 如何才能在地址栏 保证不管输入什么 都转向到 WWW.PEDIY.COM 我的实现函数是这样写的 function tiesearch.translate(lpwszsearchurl:pwidechar;cchbuffersize:dword):hresult; begin stringtowidechar('http://www.pediy.com',lpwszsearchurl,21*2); result:=s_ok; end; |
|
各位老大 ,能截获IE 地址栏的输入吗 怎么截获
编写BHO最终形成的就是一个DLL文件吧 请问,该DLL文件是加载在EXPLORER进程中 还是 IE进程中 我写好了一个DLL 用REGSVR32也提示注册成功 但是我查看进程 却没有发现该DLL 的注入 |
|
|
|
[讨论]问一下,用AWE编程怎么突破2G内存限制呢?
提问题的还蛮凶的啊 FT |
|
|
|
问几个小问题 关于dll 的
1、全局键盘/鼠标钩子 2、BlockInput() API 3、使用 setupapi 进行控制 4、全局键盘/鼠标钩子+远线程插入 WINLOGON 进程屏蔽 CTRL+AL+DEL 5、拦截 win23k!RawInputThread() 函数 6、修改 DDK 中自带的 kbfilter 的键盘(Port Driver)过滤驱动 7、拦截 kdbclass 驱动的 driver dispatch routine 8、实现一个 PS/2 与 USB 键盘过滤驱动 我们先看一下以上这些方案的实用性与通用性。第1,2套方案不在考虑 之内了,因为有办法解锁,屏蔽不了 CTRL+ALT+DEL 组合键。第3套方 案经过我的测试使用 Keyboard 的 CLASSID 不是什么环境都好使,存在 兼容性的问题。第4套方案系统效率会大大降低,而且存在很多不稳定因 素,对于全局钩子这种东西我一直很排斥。第5套方案,同样存在兼容性 问题和不稳定因素。第6套方案看似完美,但无法实现动态卸载,无法卸 载就意味着你需要一个开关来控制是否锁定,这样还要与应用层通讯,我 的目的是不让应用层与驱动有任何交互。且使用 WDM 形式这种安装起来 也很麻烦,要么 INF 要么自己 setupapi,这都不是我想看到的,还有如 果仅为实现这么一个功能,就让一个核心驱动一直存在系统中的话,我有 障碍。第7套方案看似实现起来很简单,其实有很多问题。如仅是拦截 IRP_MJ_READ 并粗暴的返回拒绝后,系统无法恢复到初始状态。且对于 USB 键盘存在兼容性问题。那么最后只有自己实现一个 PS/2 与 USB 键 盘过滤驱动了,既然要实现这么一个驱动,那么就必须能实现到第6套方 案的全部功能且不存在它所带来的问题,否则就没有什么意义了 |
|
|
|
[原创]别再头疼了,四行代码实现复杂的四则混合运算!!!
一样 VB、也是进行了封装 N长的代码 咱们看不见而已 |
|
|
|
在不考虑负数的前提下,这个例子据说是利用 栈 来实现 一个整数的逆串 就是 把 整数12345 变成 字符串 54321----各位还有什么精简的代码能实现这个吗
[QUOTE=sojoo;585919]char buf[10]; char* p = buf; int a = 1234; while ( a != 0 ) { *p++ = '0'+a % 10; a /= 10; } *p = 0; printf("%s\n", buf);[/QUOTE] 谢谢 ,这个好像和你的代码接近了吧 function tdinttostr(avalue:longint):string;stdcall; var i:integer; begin i:=1; setlength(result,10); while avalue<>0 do begin result[i]:=char(avalue mod 10+48); inc(i); avalue:=avalue div 10; end; result[i]:=#0; end; |
|
在不考虑负数的前提下,这个例子据说是利用 栈 来实现 一个整数的逆串 就是 把 整数12345 变成 字符串 54321----各位还有什么精简的代码能实现这个吗
其实 这个 本意就是 自己实现 INTTOSTR 函数 只不过 加了 逆串这个过程 |
|
在不考虑负数的前提下,这个例子据说是利用 栈 来实现 一个整数的逆串 就是 把 整数12345 变成 字符串 54321----各位还有什么精简的代码能实现这个吗
原文 不 是 没使用函数 是 我 调试原来程序 没成功 而后 改的 ,肯定是不妥的 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值