Respond to this messageReturn to Index
Original Message
  • a few more possible experiments
    • (Login MCalkins)
      Moderator
      Posted Jul 15, 2012 12:48 AM

      First of all, please download sha1sum.exe:
      ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe

      and then, from the command line in your QB64 folder, run:

      sha1sum sdl_image.dll

      it should say:

      cf6d995c8caa0e6b8545c4df4b0cd4b0ff2409fe  sdl_image.dll

      If not, then your sdl_image.dll is corrupt.

      Otherwise, proceed to the next experiment...

      --------------------------------

      #include <windows.h>
      #include <stdio.h>

      HMODULE hm;
      CHAR fn[MAX_PATH + 1] = {};

      int main(void) {
       hm = LoadLibraryW(L"sdl_mixer.dll");
       if (! hm) {
        printf("LoadLibraryW() failed. Error: 0x%x\n", GetLastError());
        return 0;
       }
       if (! GetModuleFileNameA(hm, fn, MAX_PATH)) {
        printf("GetModuleFileNameA() failed. Error: 0x%x\n", GetLastError());
       }
       printf(fn);
       printf("\n");
       return 0;
      }

      --------------------------------

      save that (between the hypen lines) as "delme.cpp" in your qb64 folder, and then from the command prompt, from your QB64 folder, run:

      internal\c\bin\g++ -s delme.cpp -o delme.exe

      which will create "delme.exe". Then, still from the command line, run:

      delme.exe

      from your qb64 folder. It will try to load "sdl_mixer.dll". If it fails, it will give you an error code. If it succeeds, it should give you the full path of the file that it loaded.

      If it can't find "sdl_mixer.dll", it will fail with error 0x7e, which is "ERROR_MOD_NOT_FOUND".

      Regards,
      Michael
    Your Name
    Your Email
    (Optional)
    Message Title
    Message Text
    Options Also send responses to my email address