c++ - PBYTE to PVOID error -


i'm programming in detours express 3.0. i've first had problems finding out how use detours, example, didn't know, detourfunction() replaced detourattach(). so, found out, somehow still doesn't works , give me following errors:

intellisense: argument of type "pbyte *" incompatible parameter of type "pvoid *"

intellisense: argument of type "pbyte *" incompatible parameter of type "pvoid *"

//guishapenamehud::onrender originalrender = (onrenderfn)detourattach((pbyte*)(&onrender),                   (pbyte)hooked_onrender);  //input stuff originalgetnextmove = (getnextmovefn)detourattach((pbyte*)(&blgetnextmove),                       (pbyte)hooked_getnextmove); 


Comments