Declaring vararchive
Code: Select all
Dim vararchive As New MpqLib.Mpq.CArchive("MY FOLDER\MY ARCHIVE")
Then I can use this to extract a file.
Code: Select all
vararchive.ExportFile(NAME OF FILE IN ARCHIVE", "MY FOLDER\MY DOCUMENT")
This works very well untill I get into the re-importing. I didn't know how to do this, so I opened it in the object browser and found this.
Spoiler:
So I think that it should be able to be used like this.
Code: Select all
vararchive.ImportFile("NAME OF IMPORT INTO ARCHIVE", "NAME OF FILE TO BE IMPORTED")
but when it gets to this point I get error
Code: Select all
Unable to import
Code: Select all
IOException was unhandled.
Please tell me what i'm doing wrong!
EXTRA- the mpq lib website
http://home.magosx.com/index.php?topic=77.0
Thanks to fatherspace helping on chat, I no longer need help.