You last visited: Today at 15:51
Advertisement
Gamehacking Dll C++
Discussion on Gamehacking Dll C++ within the C/C++ forum part of the Coders Den category.
08/24/2011, 16:10
#1
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Gamehacking Dll C++
Hey epvpers.I have a problem.Well i know a bit C++ so i deside to make a dll for a game...well i would like to know to can i write a string hack from CE to the dll because i got some bugs...i mean i change adress from string to 4bytes or float and in inject i have bugs.
Eh a example
*(float*) Hard = 1.106904516E24; <- float value but bug...normal adress is a string.I tried some *(char[31]*) but error :/
I have you can help me.
Mfg
xCeManx
08/24/2011, 16:39
#2
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
char* pSZ = uraddress;
pSZ[i] = x;
or strcpy / memcpy
08/24/2011, 16:52
#3
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by
buFFy!
char* pSZ = uraddress;
pSZ[i] = x;
or strcpy / memcpy
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
08/25/2011, 16:16
#4
elite*gold: 0
Join Date: Jun 2011
Posts: 183
Received Thanks: 262
:)
Quote:
Originally Posted by
xCeManx
#define Hard 0xadress ;o
also i got some erros....
but thank for your answer
Try That .....
char* pSZ = unddress;
pSZ[i] = x;
or strycopy / memcopy
08/25/2011, 17:11
#5
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by
maysson
Try That .....
char* pSZ = unddress;
pSZ[i] = x;
or strycopy / memcopy
Report
....
Anyway can someone help me? D:
08/25/2011, 17:12
#6
elite*gold: 0
Join Date: Jun 2011
Posts: 183
Received Thanks: 262
reported for ?
08/25/2011, 18:41
#7
elite*gold: 11
Join Date: Jul 2011
Posts: 1,332
Received Thanks: 434
Quote:
Originally Posted by
buFFy!
char* pSZ = uraddress;
pSZ[i] = x;
or strcpy / memcpy
Quote:
Originally Posted by
maysson
Try That .....
char* pSZ = unddress;
pSZ[i] = x;
or strycopy / memcopy
U got reported because its the shame thing.
08/25/2011, 19:38
#8
elite*gold: 0
Join Date: Jun 2011
Posts: 350
Received Thanks: 295
Quote:
Originally Posted by
PŠPplą’ər
U got reported because its the shame thing.
shame?
do u mean same? xD
08/25/2011, 19:57
#9
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Please be in topic D:
08/25/2011, 20:03
#10
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
08/25/2011, 20:49
#11
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by
Metin2Spieler97
Be more specific about what your code should do and what it actually does, otherwise we can't help you.
It's a dll which inject with PerX and it's changed values from adress.Like CE.
But i don't know how to write the string adress....it's gamehacking
08/25/2011, 22:01
#12
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
In that case buFFy has already given you an answer.
For 8-bit-characters:
Code:
#define STR_ADDR 0x12569ADE
#define STR_VALUE "test"
strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR 0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN 5 /* STR_VALUE has 4 characters + 1 terminating-character */
memcpy((void *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
08/25/2011, 22:03
#13
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by
Metin2Spieler97
In that case buFFy has already given you an answer.
For 8-bit-characters:
Code:
#define STR_ADDR 0x12569ADE
#define STR_VALUE "test"
strcpy((char *)STR_ADDR, STR_VALUE);
For Unicode-characters:
Code:
#define STR_ADDR 0x12569ADE
#define STR_VALUE L"test"
#define STR_LEN 5
memcpy((char *)STR_ADDR, STR_VALUE, sizeof (wchar_t) * STR_LEN);
Eh STR_LEN is the char?
Also i need make +1?
Thank you and sorry for that :/
08/25/2011, 22:08
#14
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Quote:
Originally Posted by
Metin2Spieler97
Code:
#define STR_LEN 5 /* STR_VALUE has 4 characters + 1 terminating-character */
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".
08/25/2011, 22:18
#15
elite*gold: 4
Join Date: Aug 2011
Posts: 2,169
Received Thanks: 7,917
Quote:
Originally Posted by
Metin2Spieler97
I've edited that part for clarification.
STR_VALUE consists of "t" + "e" + "s" + "t" + "\0".
So i write value in ""??
All times are GMT +2. The time now is 15:53 .