MpqLib Question.
Posted: May 5th, 2010, 9:42 pm
I am using MPQLib for a VB.NET application. Its made in C++, but works for any .NET app. ImportFile won't work. Heres some of the code I am using.
Declaring vararchive
Then I can use this to extract a file.
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.
So I think that it should be able to be used like this.
but when it gets to this point I get error
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.
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.