🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Open one application from a service

#17110
From: Vic
Date: Wed, 09 Apr 2003 15:10
12 lines
1288 bytes
I've got a service, and I want to open one app.
this is the code :

ShellExecute(GetDesktopWindow(), "open", "calc.exe",NULL, NULL,SW_SHOW);

the problem is that when the ShellExecute is executed, a process called
"calc.exe" is added to process list, but the app is not visible.
How can I solve it ?

--
Victor
ESPA Inform�tica.
Technical Details
Message-ID: <3e9437a8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,2c7710b325cdf21a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-09 08:22:54 PST
Reply-To: "Vic" <Victor@espainformatica.com>
From: "Vic" <victor@espainformatica.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Open one application from a service
Date: Wed, 9 Apr 2003 17:10:06 +0200
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.24.136.172
Message-ID: <3e9437a8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049900968 80.24.136.172 (9 Apr 2003 08:09:28 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail