- Код: Выделить всё
Option Explicit
Private Declare Function VirtualProtect Lib "kernel32" (ByVal lpAddress As Long, ByVal dwSize As Long, ByVal flNewProtect As Long, lpflOldProtect As Long) As Long
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal Destination As Long, ByVal Source As Long, ByVal Length As Long)
Private Sub Form_Load()
Dim lng As Long
VirtualProtect StrPtr("Hello world"), 100, 4, lng
CopyMemory StrPtr("Hello world"), StrPtr("It is funny"), LenB("It is funny") + 1
MsgBox "Hello world"
End
End Sub
Создал новую тему, что бы даже те, кто пропускает темы, касательно C++ оценили...