Originally Posted by
Lovroman
If you're using the exact same function, you should use Pointers instead of pointer. (Pointers("steam_api.dll+00...)
Code:
Dim pointers(&H1C4, &H8, &H0, &H10, &H42) As Byte
WriteString(Pointers("steam_api.dll+0001824C", pointers), TextBox1.Text)
This should work.
Mmmmh no >.<
For text I think I have to use this :
Code:
Public Sub WriteString(ByVal Address As Integer, ByVal Text As String, Optional ByVal Length As Integer = -1)
If Length = -1 Then
Length = Text.Length
End If
Dim Buffer As Byte() = New System.Text.ASCIIEncoding().GetBytes(Text)
Dim Zero As IntPtr = IntPtr.Zero
WriteProcessMemory(OpenGame(), New IntPtr(Address), Buffer, CUInt(Length), Zero)
End Sub
But If I write :
Code:
WriteString(Pointers("steam_api.dll+0001824C", pointers), TextBox1.Text)
or
Code:
WriteProcessMemory(pointers("steam_api.dll+0001824C", pointers), TextBox1.Text)
I have errors,
WriteString or WriteProcessMemory are not declared.
For this, Option Strict On prohibits implicit conversions from String to Integer
Code:
("steam_api.dll+0001824C"
And for this, Unable to convert a value of type Table 5 dimensions Byte to Integer :