I am trying to call DialogBox() from within a DLL, every time I do, it gives me a GPF in KRNL386. If I do the EXACT same DialogBox() call in an EXE, it works fine. I am using Borland C++ 4.52 and the documentation hints that I should NOT use the MakeProcInstance() call if it is being used in a DLL. I have tried removing the MakeProcInstance() calls but it still GPF's. Another kicker is this MUST be written using 16-bit API calls :(
Any idea's on how to correctly call the DialogBox() function from within a DLL? (the DLL has no window of it's own).