🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13814

How to hide console app (2)

#13814
From: Helmut Giese
Date: Tue, 16 Sep 2003 19:21
33 lines
2348 bytes
Hello out there,
thanks to all of you who tried to help me with my previous question.
Why would I want to have a console app and then hide it? Well, let me
explain.
- I have written a DLL to provide some funtionality. It sits
completely in the backfround, not using any GUI nor stdin, stdout or
stderr.
- When this DLL's functions are called from a console app, everything
is fine.
- When called from a GUI app, everything is fine.
- BUT one customer reports that when called from an OLE-server he
receives an error message like 'cannot find stderr'.

1) Yes, this message comes from my DLL - I found the text in one of
the libs my DLL uses.
2) Why? No idea, like stated above, normally it just works - on my
machine it even works when called from the customer's OLE-server :(

Looking at the OLE-server's sources I see that it is created as a
normal GUI app with an immediate call to Application.Hide to make it
invisible. One idea is now to mimic this behaviour:
- Create the server as a console app -> this would give me stderr, so
we would avoid said error message (and might even learn something from
whatever message is wanting to be sent) but
- hide the console (possibly in a second step) to have the same
behaviour as we have now.

Whether this will be the solution, I don't know yet - having a
customer report a problem I cannot reproduce (even on the same OS) is
not the easiest of situations.
I'd be greatful for any comments, ideas or suggestions.
Best regards
Helmut Giese
Technical Details
Message-ID: <3f67629e.4384674@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b03daf96279795a8,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-16 12:32:05 PST
From: hgiese@ratiosoft.com (Helmut Giese)
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to hide console app (2)
Date: Tue, 16 Sep 2003 19:21:16 GMT
Message-ID: <3f67629e.4384674@forums.borland.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 141.51.159.202
X-Trace: newsgroups.borland.com 1063740122 141.51.159.202 (16 Sep 2003 12:22:02 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail