Thanks for the sample. It works fine indeed.

I did some more experiments and found interesting thing. I've found all stuff that should be printed on console in debugger log ("Debugger (debug)" window). Seems that stdout handle of the host app is redirected. But breakpoints in DLL are working properly.
Does anybody know how to change this behavior? I need console to be shown as usual.
I've attached sample projects (one for console app and one for DLL for more clean experiment

).
[attachment deleted by admin]