Welcome, Guest. Please Login
Back to main page
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
Pages: 1
Send Topic Print
MPQ Active X Control (Read 1087 times)

I love YaBB 1G -

Posts: 1

MPQ Active X Control
Aug 16th, 2005, 4:16am

I am trying to use the Active X MPQ control that I downloaded from this website.  This seems to be the easiest interop solution for a .NET app I am writing.  I have installed and registered the ocx file, and referenced it correctly into my .NET project, and can create an instance of the control.  Unfortunately, any method on the instance that I call, always returns E_UNEXPECTED (HR=0x8000FFFF).

To try it outside the .NET environment, I installed the control into Borland C++ Builder and created an instance there correctly, but all methods also return the same result.

The documentation does not say anything about any further setup requirements (it says all libraries are statically linked, but to be sure I copied the lmpqapi.dll, staredit.dll and storm.dll files into the same directory as the ocx to no avail), nor any initialisation requirements.  I have called MpqInitialize() straight after instantiation, but this returns E_UNEXPECTED.

Do you have any ideas that might help me to use this control, or should I p/invoke the lmpqapi.dll file instead?

Nulkris - WoW Proudmoore
Back to top
  IP Logged
Pages: 1
Send Topic Print