Article View: borland.public.cppbuilder.nativeapi
Article #11774Re: CPL and the Control Panel Problem
From: Remy Lebeau (TeamB)
Date: Sun, 25 Jan 2004 22:18
Date: Sun, 25 Jan 2004 22:18
22 lines
1541 bytes
1541 bytes
"Babak" <babak_info@hotpop.com> wrote in message
news:4013cfa8@newsgroups.borland.com...
> MyStr=InputBox("Lancher:","Open with :","");
You are not testing MyStr for an empty string before using it.
> ShellExecute(NULL,
> "open",
> MyStr.c_str(),
> "",
> "",
> SW_SHOWDEFAULT);
>
> it couldn't do the desk.cpl for run
You should be using "cplopen" instead of "open" as the lpVerb parameter to
ShellExecute(). CPL files do not have an "open" verb registered.
Gambit
Technical Details
Message-ID:
<40143f13$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4013cfa8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cc40ce098777b210,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-25 14:19:33 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4013cfa8@newsgroups.borland.com> Subject: Re: CPL and the Control Panel Problem Date: Sun, 25 Jan 2004 14:18:19 -0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40143f13$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075068691 67.22.138.253 (25 Jan 2004 14:11:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail