SliderMan
April 29th, 2007, 02:21 PM
Hi there!
im tring to make a trainer (for cheating a game)
so i have to find the window of the game to get an handle for writing the process memory:
#include <windows.h>
void main () {
FindWindow("Minesweeper", NULL);
}
thats how i did it and its giving me the following err:
"error C2664: 'FindWindowW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
why is that?
thanks in advance for helping.
moshe.
im tring to make a trainer (for cheating a game)
so i have to find the window of the game to get an handle for writing the process memory:
#include <windows.h>
void main () {
FindWindow("Minesweeper", NULL);
}
thats how i did it and its giving me the following err:
"error C2664: 'FindWindowW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
why is that?
thanks in advance for helping.
moshe.