MadExcept Viewer Not Displaying Files.
MadExcept Viewer Not Displaying Files.
All of a sudden the MadExcept Viewer has stopped accepting exception reports. When I try to drag and drop an exception report onto the viewer, it won't accept it.
= Steve
= Steve
Re: MadExcept Viewer Not Displaying Files.
That seems strange. Not sure what it could be. Have you tried rebooting the OS? Sometimes drag & drop stops working for me, as well (not even with madExcept, but with any app) and a reboot fixes it.
Re: MadExcept Viewer Not Displaying Files.
SteveG,
Are you by chance running MadExcept Viewer with elevated rights (administrative rights)? If so, drag and drop support in the app would require a modified window filter due to UIPI from Vista up. I checked the viewer code and it does not add the necessary window messages to support such a case.
The MadExcept Viewer code can be updated with my code below which works w/ and w/o admin rights. Hopefully that's all your problem is?
--Iconic
Are you by chance running MadExcept Viewer with elevated rights (administrative rights)? If so, drag and drop support in the app would require a modified window filter due to UIPI from Vista up. I checked the viewer code and it does not add the necessary window messages to support such a case.
The MadExcept Viewer code can be updated with my code below which works w/ and w/o admin rights. Hopefully that's all your problem is?
Code: Select all
var
ChangeWindowMessageFilter: function(msg: DWORD; dwFlag: DWORD): BOOL; stdcall;
const
MSGFLT_ADD = 1;
WM_COPYGLOBALDATA = $0049;
FUNC_CWMF = 'ChangeWindowMessageFilter';
// Vista+ UIPI access when running as Admin, otherwise not needed
@ChangeWindowMessageFilter := GetProcAddress(GetModuleHandle(user32), FUNC_CWMF);
if (@ChangeWindowMessageFilter <> nil) then
begin
ChangeWindowMessageFilter(WM_DROPFILES, MSGFLT_ADD);
ChangeWindowMessageFilter(WM_COPYDATA, MSGFLT_ADD);
ChangeWindowMessageFilter(WM_COPYGLOBALDATA, MSGFLT_ADD);
end;
DragAcceptFiles(hWindow, True);
Re: MadExcept Viewer Not Displaying Files.
Hi Madshi,
You were right. A simple reboot fixed the problem.
Thank you.
= Steve
Re: MadExcept Viewer Not Displaying Files.
Hi Iconic,
Thank you for the code. Very nice!
= Steve
Thank you for the code. Very nice!
= Steve
Re: MadExcept Viewer Not Displaying Files.
Great! In looking into drag and drop we now can add support for instances that can be elevated so it will also work properly, otherwise I'd have not looked at the D'nD code to begin with.A simple reboot fixed the problem
--Iconic
Re: MadExcept Viewer Not Displaying Files.
Great stuff, thanks! I'll add it to the madExcept code base.