1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] How to export a file with ShadowFlare MPQ

Discussion in 'Programming' started by Trigger.edge, Jul 11, 2017.

  1. Trigger.edge

    Trigger.edge

    Joined:
    Jun 21, 2012
    Messages:
    419
    Resources:
    0
    Resources:
    0
    Can anyone show me how to use SFmpq.dll functions in c#? I tried with this but I do not know if I'm doing it right:

    Code (Text):

            [DllImport("SFmpq.dll")]
            static extern bool MpqOpenArchiveForUpdate(string lpFileName, uint dwFlags);

            [DllImport("SFmpq.dll")]
            static extern bool SFileOpenFile(string szMpqName, uint phMPQ);

            [DllImport("SFmpq.dll")]
            static extern bool SFileCloseFile(uint hFile);


    Ok forgot the above I found a solutions for this at Работа с MPQ посредством SFmpq.dll [C#] [Архив] - Форумы Blizzard.GG
     
    Last edited: Jul 11, 2017