Michel,
another suggestion: How about having a "launcher" EXE that simply instantiates your EXE as an OLE server? This way you could benefit of the SYS() function without having to do any further changes to the code ...
Armin
>I have a need to benefit of SYS(2335,0) even when I start a small application manually. It's a small application that is started manually on a server which doesn't run in COM mode. How can I make sure that a modal dialog won't block the application, if that ever occurs?