Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


If that AttachConsole(ATTACH_PARENT_PROCESS) is executed by
soffice.bin, it probably is the case that as already soffice.exe is a
"gui" executable, soffice.exe doesn't have a console, and thus for its
child process, soffice.bin, there is no parent process console to
attach to. Try having also soffice.exe (and scalc.exe, swriter.exe
etc) execute the AttachConsole() call as early as possible.

As AttachConsole() is not present in Windows 2000 (assuming we still
want to support that) we should look up AttachConsole() dynamically
from kernel32.dll, and if not found just don't do anything.  Or
possibly, just before actually going to print something to stdout,
allocate a new console with AllocConsole() and then do the freopen().
But in that case we should also do some "press any key to close this
window" and wait for a key press before exiting. Probably this is too
much bother just for Windows 2000.

--tml

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.