compile
error: cannot cast from DWORD * to UINT (__stdcall *)(void)
C&P the typecast
compile
success
/victory.
^5[^9AU^5]^9Wesley: hookVFunc(0x40CE14, 40, (DWORD*)&yuorEndScene);
Tweak: Yeah
^5[^9AU^5]^9Wesley: or *(DWORD*)0x40CE14, not sure
^5[^9AU^5]^9Wesley: it really cant be that hard lol
Tweak: I believe it worked.
Tweak: I injected, and nothing happened (no crash)
Tweak: so
^5[^9AU^5]^9Wesley: k
^5[^9AU^5]^9Wesley: did u return orig function?
Tweak: er
^5[^9AU^5]^9Wesley: shove a messagebox in there
Tweak: In hookVFunc?
Tweak: hmmm
Tweak: nothing
^5[^9AU^5]^9Wesley: no
^5[^9AU^5]^9Wesley: in your hooked func >.>
Tweak: owait
Tweak: failme
Tweak: I'm using it as a dll
Tweak: and it has int main
^5[^9AU^5]^9Wesley: *facepalm*
^5[^9AU^5]^9Wesley: might wanna go read up on C++ basics
Tweak: the code was copy pasted....
Tweak: To see if it would work