pokemonhacker12345
August 6th, 2009, 09:43 PM
Well, I don't know if anyone else figured this out or not.
So I will give it a shot!
Credit to Darthatron for VB 6 Codes.
(http://pokecommunity.com/showthread.php?t=132233)
Now let's begin!
First of all you need the vb 2008 Compatible Modules.
Get them Here : (http://www.mediafire.com/?tzkvduiomfn)
Now to begin!
At the top of your code put this.
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasicI don't know what it does but it works XD
Right under that you should have something like this.
Friend Class Form1
Inherits System.Windows.Forms.Form
Dim LoadedROM As StringThat will assign LoadedROM As a string...
now... I assume you have all of the buttons and dropdowns added...
For the open button use this:
Dim cdgOpen As clsCommonDialog
cdgOpen = New clsCommonDialog
LoadedROM = cdgOpen.ShowOpen(Me.Handle.ToInt32, "Open Pokemon NDS ROM...", , "NDS ROMs (*.nds)|*.nds")
cmbpoke1.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855304, 2)))
cmbpoke2.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855308, 2)))
cmbpoke3.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855312, 2)))
Text1.Text = ReadHEX(LoadedROM, 12, 4)
Text2.Text = ReadHEX(LoadedROM, 0, 9)
Form3.Text1.Text = ReadHEX(LoadedROM, 352, 32500)Save button:
WriteHEX(LoadedROM, 2855304, ReverseHEX(VB.Right("0000" & Hex(cmbpoke1.SelectedIndex), 4)))
WriteHEX(LoadedROM, 2855308, ReverseHEX(VB.Right("0000" & Hex(cmbpoke2.SelectedIndex), 4)))
WriteHEX(LoadedROM, 2855312, ReverseHEX(VB.Right("0000" & Hex(cmbpoke3.SelectedIndex), 4)))And there you have it! The code will compile and function in visual basic 2008!!!
Good Luck!
So I will give it a shot!
Credit to Darthatron for VB 6 Codes.
(http://pokecommunity.com/showthread.php?t=132233)
Now let's begin!
First of all you need the vb 2008 Compatible Modules.
Get them Here : (http://www.mediafire.com/?tzkvduiomfn)
Now to begin!
At the top of your code put this.
Option Strict Off
Option Explicit On
Imports VB = Microsoft.VisualBasicI don't know what it does but it works XD
Right under that you should have something like this.
Friend Class Form1
Inherits System.Windows.Forms.Form
Dim LoadedROM As StringThat will assign LoadedROM As a string...
now... I assume you have all of the buttons and dropdowns added...
For the open button use this:
Dim cdgOpen As clsCommonDialog
cdgOpen = New clsCommonDialog
LoadedROM = cdgOpen.ShowOpen(Me.Handle.ToInt32, "Open Pokemon NDS ROM...", , "NDS ROMs (*.nds)|*.nds")
cmbpoke1.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855304, 2)))
cmbpoke2.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855308, 2)))
cmbpoke3.SelectedIndex = CShort("&H" & ReverseHEX(ReadHEX(LoadedROM, 2855312, 2)))
Text1.Text = ReadHEX(LoadedROM, 12, 4)
Text2.Text = ReadHEX(LoadedROM, 0, 9)
Form3.Text1.Text = ReadHEX(LoadedROM, 352, 32500)Save button:
WriteHEX(LoadedROM, 2855304, ReverseHEX(VB.Right("0000" & Hex(cmbpoke1.SelectedIndex), 4)))
WriteHEX(LoadedROM, 2855308, ReverseHEX(VB.Right("0000" & Hex(cmbpoke2.SelectedIndex), 4)))
WriteHEX(LoadedROM, 2855312, ReverseHEX(VB.Right("0000" & Hex(cmbpoke3.SelectedIndex), 4)))And there you have it! The code will compile and function in visual basic 2008!!!
Good Luck!