Topic: Need help compiling a minor change

ultimately i'm trying to just add the function, that while in window mode, if you press alt key i can pick up the key press and use it. currently if i press alt it will pause the program as if its trying to access the windows menus... which doesn't help at all.

Looking through the irrlicht forums i found http://irrlicht.sourceforge.net/phpBB2/ … 783#122783 which just involves modifying the CIrrDeviceWin32.cpp file and recompiling. i've tried that and complied it in Visual Studio 2008 as the dll, it had no errors after disabling dx8 option. then I copied this to overwrite the original dll but now it just crashes when trying to run my Blitzmax program. Looking into it does the BMX wrapper have a modified dll already? because i tried just putting the 1.7.1 dll from the SDK and that has the same effect on my BMX program? any help with how to compile properly or if gman could make the changes just for a dll for me whichever is easiest.

If i could compile this myself somehow that would be great for in the future when start I looking into intergrating some code snippets and addons from the irrlicht forums myself.

Any help will be great,
Thanks,

Re: Need help compiling a minor change

greetings smile  the BMAX mod requires a MingW compiled DLL.  please post the modified code and i can recompile for you.

Re: Need help compiling a minor change

Ah cool, that would be cool if you can compile it, in the CIrrDeviceWin32.cpp it says to add the following line to the case WM_SYSCOMMAND: I can email the cpp file if you prefer but it was easy for me to find. What is the MingW dll is it possible for me to look and compile after looking into it or is it a purchased component?

I hope this will do what i want for now anyway, thanks
...
case WM_SYSCOMMAND:
    // prevent screensaver or monitor powersave mode from starting
    if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
        (wParam & 0xFFF0) == SC_MONITORPOWER)
       
    {
    return 0;
    }
    else if ((wParam & 0xFFF0) == SC_KEYMENU) // added
    {
    return 0;
    }
   
    break;

...

Re: Need help compiling a minor change

greetings smile  my apologies for the delay i have a really busy week this week.  i recompiled with your change and you may download the new DLL here.

MingW is a different C++ compiler.  i use Codeblocks and MingW to compile the DLL.  Irrlicht comes with a codeblocks project that you can use to compile.

hope this works for you smile

Re: Need help compiling a minor change

Thanks mate and it even works like i was hoping smile next time I'll have a look at codeblocks and mingw see if i can work that out. You help is awesome though as is the BMax wrapper for irrlicht!