Title: Debugging ISAPI DLLs
Question: It's hard to debug a ISAPI DLL. Here is a simple solution to display message boxes.
Answer:
IIS is a service, so normally you can't interact with the desktop. A solution is to use MessageBox API with MP_TOPMOST and MB_SERVICE_NOTIFICATION:
procedure DbgMsg(aStr: string);
begin
MessageBox(0,PChar(aStr), 'ISAPI Debug-Message',
MB_OK + MB_TOPMOST + MB_SERVICE_NOTIFICATION);
end;
Note that the Delphi IDE also offers some DLL-Options in the Project-Options Dialog [Linker] !!