Algoritmanya adalah: – Memilih file yang akan dicek – Membuka file tersebut dalam mode binary – Memproses byte demi byte untuk menghasilkan Checksum – Buka file database – Ambil isi file baris demi baris – Samakan Checksum hasil perhitungan dengan checksum dari file Format file database dapat kita tentukan sendiri, misal: – FluBurung.A=ABCDEFGH – Diary.A=12345678 Dimana FluBurung.A adalah nama virus dan ABCDEFGH dalah Crc32nya. Second Kode diatas dapat kita buat menjadi sebuah rutin pengecekan file suspect virus dengan antara membandingkan hasil CRC32nya dan database CRC kita sendiri. (Objek CommonDialog dapat ditambahkan dengan memilih Project - COmponent atau Ctrl-T dan memilih Microsoft Common Dialog Control 6.0). First Sekarang kita akan belajar membuat sebuah rutin sederhana untuk: – Memilih file yang akan dicek – Membuka file tersebut dalam mode binary – Memproses byte demi byte untuk menghasilkan Checksum Blog dengan ID 134100 Tidak ada Buka MS-Visual Basic 6.0 anda, lalu buatlah sebuah class module dan Form dengan menambahkan sebuah objek Textbox, CommonDialog dan Command Button. Save - Accept The Add 1] Gather Memvar Memo is the reciprocal operation of Scatter Memvar Memo.Gather takes all 9 of the local memory variables and reloads them into the current record.Ngerti tombol2nya VB tutorialnya begini sob,: 1. It will be less confusing for the user if we can use the same Cancel button for both the Add and Edit functionality we shall do so. Since no record has been added, the read/write pointer has not moved. Cancel The Addġ] Should the user select the Cancel button during the add procedure, we simply re-scatter the current record and return to the normal mode of the form. If the user cancels this new insertion, there is no need to add a record that we would have to delete.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |