Summer sucks for your reasons but this particular summer is awesome for me. Starting from a week on Monday I have an 11 week break. 5 weeks into that break I go to Turkey for 2 weeks. The rest of the time I do whatever I want
Hmm, that address is correct, it works when I use that address in Artmoney. I don't quite get what you mean but that particular address is for a 4-byte float, which, AFAIK, is what I'm writing to it
I'm confused again. I'm getting this error message:
I've searched on google but all I couldn't find any useful answers, only people telling the OPs to use a different method. AFAIK there isn't a different method.
My module
Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Integer, ByVal lpBuffer As Double, ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
Sub WriteDouble(ByVal proc As Long, ByVal address As Integer, ByVal value As Double, ByVal length As Integer) If (WriteProcessMemory(proc, address, value, length, 0)) Then MsgBox("Worked!") Else MsgBox("FAILED!") End If End Sub
Sub from my form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (SetProcess("LFS_W")) Then WriteDouble(mGameProcess.Handle, &H57D380, 0.35, 4) Else MsgBox("Failed!") End If End Sub
Any ideas?
EDIT: I'm using .net (AFAIK. I'm using VB 2005 for my compiler)