I have a problem for mpqctl for VB where ReDim will cause VB to crash when trying to read a file.
This one works
CODE
Dim buffer(40000000) As Byte
mpq = SFileReadFile(scenario, buffer(0), filesize, bytes_read, 0)
Text1.Text = mpq
This does not work
CODE
Dim buffer() As Byte
ReDim buffer(40000000)
mpq = SFileReadFile(scenario, buffer(0), filesize, bytes_read, 0)
Text1.Text = mpq
I used this for reference:
http://shadowflare.gameproc.com/inside_mop..._file_in_an_mpq