c++ - MoveMemory Byte array -


i'm using code:

#include <stdio.h> #include <windows.h>  #define address 0x00401054  int main(){     byte values[4] = { 0x00, 0x00, 0x00, 0xb8 };     movememory((*(pvoid*)address), values[0], 4); }  

but return error

intellisense: argument of type "byte" incompatible parameter of type "const void *

what do?

use &values[0] take address of first element of array.

or, use values (instead of &values[0]), because name of array refers address of first element.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -