In attempting to code around the lack of a INPUT_FILEOPENDIALOG_PREPROCESS callback, I've set up a InputCallback::SetCommandFilterFunction() callback. My desire is that when a certain command is entered, I will trap it and do my own processing. The processing includes the use of a DialogBox. What I'm finding is that when you try and open the DialogBox in the callback, it fails with "Unable to load dialog from 'MGSSHOOK' whose id is 1". What's more interesting is that in the same app code I can open the same DialogBox when inside MdlMain() or a CommandNumber implementation without issue. If I reference the RscFileHandle created when the app's resource file is first opened, and supply it to the mdlDialog_open() inside the callback, the DialogBox appears, but so do messages about "Symbol not published:" !! If I just let the resource handle default to null, it works everywhere EXCEPT the callback.
Not sure if this is an error or WAD, but it's interesting none the less.
Bruce