Jump to content


Photo

ช่วยแปลทีคับ VB6


  • Please log in to reply
2 replies to this topic

#1 KenJiZ

KenJiZ

    ซาลาเปาไข่แดง

  • Members
  • 6 posts

Posted 11 May 2008 - 11:00:14 PM

(Hex(readmem(&HA27348, 4) + "&H1b4"))

อยากรู้ตรง &HA27348 กับ &H1B4 อ่ะคับผมลองใช้ เครื่องคิดเลขบวกแบบ hex แล้วแต่ไม่ตรงตามที่มันคำนวนอ่ะคับ

#2 X CroSs

X CroSs

    Truebot Co-Developer

  • Root Administrator
  • 102427 posts
  • Gender:Male

Posted 12 May 2008 - 04:26:07 AM

readmem return ออกมาเป็นอะไรครับ ? แล้วทำไม "&H1b4" ถึงต้องบังคับให้เป็น string ?
ลองเอา double quote ทั้ง 2 ข้างออกดูครับ หรือไม่ก็ลองใช้แบบนี้ไปเลยก็ได้ครับ

(Hex(readmem(&HA27348, 4) + 436))

แต่ทั้งนี้ทั้งนั้น readmem ต้อง return ออกมาเป็นตัวเลขนะครับ เป็น integer, longint หรือ double ก็ได้

ปล.เขียนโปรแกรมอะไรอยู่คับ น่าสนใจจัง เหมือนจะเป็น trainer :D

ts.gif

manutd18wm.png


#3 KenJiZ

KenJiZ

    ซาลาเปาไข่แดง

  • Members
  • 6 posts

Posted 12 May 2008 - 04:27:01 PM

ใช่คับหัดเขียนอิอิ
อยากทราบอีกอย่างคับ

QUOTE
Open "C:\Documents and Settings\comdd\My Documents\My Received Files\fp\data.txt" For Input As nFileNum
lLineCount = 1

Do While Not EOF(nFileNum)
Line Input #nFileNum, sNextLine

sNextLine = sNextLine & vbCrLf
sText = sText & sNextLine

Loop
Text1.Text = sText

Close nFileNum


แบบว่าจะดึงข้อมูลจาก text file มาคำนวนอ่ะคับอยากให้แบบเลือก path ของ text file เองได้จะทำไงเหรอ ผมทำไม่เป็นอ่ะ
ช่วยชี้แนะหน่อยนะคับ




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users