jomel590 0 Newbie Poster

Any Help.? I tried this code:

Public Sub SaveFromResources(ByVal FilePath As String, ByVal File As Object)
Dim FByte() As Byte = File
My.Computer.FileSystem.WriteAllBytes(FilePath, FByte, True)
End Sub

but when i use this code the dll became a total error.

i can inject it in the game.

Can you help me renew this code by:

Sending the file into the temp folder without using the savefromresources.?