【发布时间】:2012-01-24 01:28:58
【问题描述】:
假设我有这个使用 HexRays 生成的代码.. 但似乎 __thiscall 不能在 VC++ 6.0 中使用。
nonstandard extension used : '__thiscall' keyword reserved for future use
如何在 VC++ 6.0 中解决这个问题?
long v4 = 0x004AC370;
#define _DWORD long
(*(void (__thiscall **)(int, int))(*(_DWORD *)v4 + 76))(v4, 8);
如何在 MS VC++ 6.0 中调用上述内容。
我知道 __thiscall 用于类成员,但我有指针并希望避免任何类制作。
谢谢。
【问题讨论】:
-
对于缺乏上下文的读者,这里是完整的问题:stackoverflow.com/questions/8980306/…
-
好吧,格雷格我想..如果我不能在最后一个问题中调用整个函数..那么为什么不调用内部函数,因为它们是半 C++ 代码,然后是整个函数.. 看看会发生什么。
标签: c++ visual-c++ assembly calling-convention