求翻译2句话(在线等 行了马上给分) pNewFuncAddress=(DWORD*)&m_NewFunc[1]; //*********pNewFuncAddress=(DWORD)lpNewFunc-(DWORD)m_lpHookFunc-5; //********这2句怎么翻啊??数据类型:DWORD *pFuncAddress;BYTE m_NewFunc[8];FARPROC m_lpHookFunc;FARPROC lpNewFunc 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 type PDWord=^DWORD;var pNewFuncAddress:PWord; m_NewFunc:array[0..7] of Byte; m_lpHookFunc:FARPROC; lpNewFunc:FARPROC;begin pNewFuncAddress:=@m_NewFunc[1]; pNewFuncAddress^:=DWORD(lpNewFunc)-DWORD(m_lpHookFunc)-5; pNewFuncAddress:=@m_NewFunc[1];pNewFuncAddress=(DWORD*)&m_NewFunc[1];这句理解不来 在C 或C++里 这样做不行啊 &m_NewFunc[1] 是一个Byte类型的指针 pNewFuncAddress是一个DWORD类型的指针 难道DELPHI里不同类型的指针还能自己互相转换???不明白不明白 D中是一个地址传递,把m_NewFunc[1]的地址转换成pNewFuncAddress指针.也可以这样: pNewFuncAddress:=PDWORD(@m_NewFunc[1]);上面定义错了:var pNewFuncAddress:PDWord; D中@返回的是一个地址,是一个integer。而指针其实也是一个integer,无论什么类型的指针,只是指向的内容不一样,但是本身都是一个地址,所以可以把两个地址互相赋值。 delphi中如何读取XML的 CDATA 节点数据 请问如何在bpg文件中找到程序入口点? clientdataset过滤问题??? 这么写为什么不行? 如何根据字段的名称查到字段的类型?谢谢! ADOConnection问题 windows 2008 服务与桌面程序交互问题? 一个多月没有来这里,CSDN现在都变成什么样子了,都不认识了。(散分) 帮忙看看这段代码的错误(有关动态生成控件的)。 WIN98程序升至WIN2000后为啥老是弹出CPU窗口呢?急! Paradox7数据库执行SQL语句问题. 关于在ehlib中设置了下拉列表,就是picklist中add了内容
PDWord=^DWORD;var
pNewFuncAddress:PWord;
m_NewFunc:array[0..7] of Byte;
m_lpHookFunc:FARPROC;
lpNewFunc:FARPROC;begin
pNewFuncAddress:=@m_NewFunc[1];
pNewFuncAddress^:=DWORD(lpNewFunc)-DWORD(m_lpHookFunc)-5;
不明白不明白
pNewFuncAddress:=PDWORD(@m_NewFunc[1]);上面定义错了:
var
pNewFuncAddress:PDWord;