Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > .NET Framework > Forum > ช่วยดูโค้ด VB.NET ให้หน่อยสิครับ งง มากเลย VB.NET 2010



 

ช่วยดูโค้ด VB.NET ให้หน่อยสิครับ งง มากเลย VB.NET 2010

 



Topic : 062728



โพสกระทู้ ( 291 )
บทความ ( 0 )



สถานะออฟไลน์




มัน เกิดข้อผิดพลาดตรง เลข 0 ทั้ง 2บรรทัดเลย ช่วยที VB2010
ReadProcessMemory(hProcess(0).Handle, address, currentscore, 4, 0)
WriteProcessMemory(hProcess(0).Handle, address, value, 4, 0)


Code (VB.NET)
Public Class Form1
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim name As String = "zuma"
        Dim hProcess As Process() = Process.GetProcessesByName(name)
        Dim address As Integer = &H35480C0
        Dim currentscore As Integer
        ReadProcessMemory(hProcess(0).Handle, address, currentscore, 4, 0)
        Label1.Text = currentscore
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim name As String = "zuma"
        Dim hProcess As Process() = Process.GetProcessesByName(name)
        Dim address As Integer = &H35480C0
        Dim value As Integer = 10009999
        WriteProcessMemory(hProcess(0).Handle, address, value, 4, 0)
    End Sub
End Class





Tag : .NET, Win (Windows App), VB.NET









ประวัติการแก้ไข
2011-07-04 22:34:37
2011-07-04 22:35:09
2011-07-05 12:58:52
Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2011-07-04 22:33:27 By : naya2007 View : 2022 Reply : 3
 

 

No. 1



โพสกระทู้ ( 437 )
บทความ ( 0 )



สถานะออฟไลน์


Null แทน 0 จะช่วยอะไรได้ไหมครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2011-07-05 10:44:20 By : kaimuk
 


 

No. 2

Guest


ลองเปลี่ยนจาก
Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer

Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer)
เป็น

Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal Handle As Integer, ByVal Address As Integer, ByRef Value As Long, ByVal nSize As Integer, ByRef BytesWritten As Integer) As Integer

Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal Handle As Integer, ByVal Address As Integer, ByRef Value As Long, ByVal nSize As Integer, ByRef BytesWritten As Integer) As Integer
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2011-10-28 19:39:09 By : B
 

 

No. 3

Guest


Code (C#)
10.customer_edit_profile2 =

Code = <?

include"config_connect.php";

if ($_POST["c_password"] == "") {

?>

<?

}

$id = $_POST["id"];

$c_password = $_POST["c_password"];

$c_name = $_POST["c_name"];

$c_surname = $_POST["c_surname"];

$c_tel = $_POST["c_tel"];

$c_sex = $_POST["c_sex"];

$c_address = $_POST["c_address"];

$c_email = $_POST["c_email"];

$c_fax = $_POST["c_fax"];

$c_company = $_POST["c_company"];

$c_job = $_POST["c_job"];

$sql = "UPDATE customer SET c_name = '$c_name',

c_surname = '$c_surname',

c_sex = '$c_sex',

c_address = '$c_address',

c_job = '$c_job',

c_company = '$c_company',

c_tel = '$c_tel',

c_email = '$c_email',

c_password = '$c_password' WHERE customer.c_id = $id";

$db_query = mysql_query($sql, $connect);

if ($db_query) {

echo "แก้ไขข้อมูลส่วนตัวเรียบร้อย";

} else {

echo "ไม่สามารถแก้ไขข้อมูลส่วนตัวได้";

}

?> 

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-15 16:30:52 By : hon
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดูโค้ด VB.NET ให้หน่อยสิครับ งง มากเลย VB.NET 2010
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 01
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่