Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #2340 > unrolled thread

ShellExecute broken in Win10

Started byGS <gs@v.invalid>
First post2017-05-08 19:03 -0400
Last post2017-05-10 12:50 -0400
Articles 13 — 3 participants

Back to article view | Back to comp.lang.basic.visual.misc


Contents

  ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-08 19:03 -0400
    Re: ShellExecute broken in Win10 Gary Scott <garylscott@sbcglobal.net> - 2017-05-08 19:16 -0500
      Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-08 22:11 -0400
        Re: ShellExecute broken in Win10 Gary Scott <garylscott@sbcglobal.net> - 2017-05-09 08:12 -0500
          Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-09 11:58 -0400
            Re: ShellExecute broken in Win10 Gary Scott <garylscott@sbcglobal.net> - 2017-05-09 20:26 -0500
              Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-10 01:01 -0400
    Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-08 22:46 -0400
      Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-08 22:52 -0400
        Re: ShellExecute broken in Win10 Arne Saknussemm <esre.10.arnsak@spamgourmet.com> - 2017-05-09 09:58 +0200
          Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-09 14:13 -0400
          Re: ShellExecute broken in Win10 GS <gs@v.invalid> - 2017-05-09 14:41 -0400
    Re: ShellExecute broken in Win10 - Mystery solved! GS <gs@v.invalid> - 2017-05-10 12:50 -0400

#2340 — ShellExecute broken in Win10

FromGS <gs@v.invalid>
Date2017-05-08 19:03 -0400
SubjectShellExecute broken in Win10
Message-ID<oeqta7$aqi$1@dont-email.me>
I've been using ShellExecute to open a user's default mail app with product 
registration info pre filled in to appropriate fields. Some of the body text 
info is case-sensitive; -in Win10 ShellExecute *forces* lowercase.

Does anyone know a good replacement for accomplishing this task?
TIA...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [next] | [standalone]


#2341

FromGary Scott <garylscott@sbcglobal.net>
Date2017-05-08 19:16 -0500
Message-ID<oer1is$m4g$1@dont-email.me>
In reply to#2340
On 5/8/2017 6:03 PM, GS wrote:
> I've been using ShellExecute to open a user's default mail app with
> product registration info pre filled in to appropriate fields. Some of
> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
> lowercase.
>
> Does anyone know a good replacement for accomplishing this task?
> TIA...
>
that would be interesting to know.  I use shellexecute extensively and 
in my several cases it works identically across win7, vista, 8, and 10. 
Am I in unknown jeopardy/

[toc] | [prev] | [next] | [standalone]


#2342

FromGS <gs@v.invalid>
Date2017-05-08 22:11 -0400
Message-ID<oer8an$uko$1@dont-email.me>
In reply to#2341
> On 5/8/2017 6:03 PM, GS wrote:
>> I've been using ShellExecute to open a user's default mail app with
>> product registration info pre filled in to appropriate fields. Some of
>> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
>> lowercase.
>>
>> Does anyone know a good replacement for accomplishing this task?
>> TIA...
>>
> that would be interesting to know.  I use shellexecute extensively and in my 
> several cases it works identically across win7, vista, 8, and 10. Am I in 
> unknown jeopardy/

Interesting that you say it works fine with Win10; -which edition? (I'm testing 
on Home)

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2346

FromGary Scott <garylscott@sbcglobal.net>
Date2017-05-09 08:12 -0500
Message-ID<oesf1p$cbh$1@dont-email.me>
In reply to#2342
On 5/8/2017 9:11 PM, GS wrote:
>> On 5/8/2017 6:03 PM, GS wrote:
>>> I've been using ShellExecute to open a user's default mail app with
>>> product registration info pre filled in to appropriate fields. Some of
>>> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
>>> lowercase.
>>>
>>> Does anyone know a good replacement for accomplishing this task?
>>> TIA...
>>>
>> that would be interesting to know.  I use shellexecute extensively and
>> in my several cases it works identically across win7, vista, 8, and
>> 10. Am I in unknown jeopardy/
>
> Interesting that you say it works fine with Win10; -which edition? (I'm
> testing on Home)
>
10.0.14393

[toc] | [prev] | [next] | [standalone]


#2349

FromGS <gs@v.invalid>
Date2017-05-09 11:58 -0400
Message-ID<oesopc$g8n$1@dont-email.me>
In reply to#2346
> On 5/8/2017 9:11 PM, GS wrote:
>>> On 5/8/2017 6:03 PM, GS wrote:
>>>> I've been using ShellExecute to open a user's default mail app with
>>>> product registration info pre filled in to appropriate fields. Some of
>>>> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
>>>> lowercase.
>>>>
>>>> Does anyone know a good replacement for accomplishing this task?
>>>> TIA...
>>>>
>>> that would be interesting to know.  I use shellexecute extensively and
>>> in my several cases it works identically across win7, vista, 8, and
>>> 10. Am I in unknown jeopardy/
>>
>> Interesting that you say it works fine with Win10; -which edition? (I'm
>> testing on Home)
>>
> 10.0.14393

Ok.., for clarity...

  Home
  Pro
  Ultimate (??)

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2352

FromGary Scott <garylscott@sbcglobal.net>
Date2017-05-09 20:26 -0500
Message-ID<oetq1e$tv7$1@dont-email.me>
In reply to#2349
On 5/9/2017 10:58 AM, GS wrote:
>> On 5/8/2017 9:11 PM, GS wrote:
>>>> On 5/8/2017 6:03 PM, GS wrote:
>>>>> I've been using ShellExecute to open a user's default mail app with
>>>>> product registration info pre filled in to appropriate fields. Some of
>>>>> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
>>>>> lowercase.
>>>>>
>>>>> Does anyone know a good replacement for accomplishing this task?
>>>>> TIA...
>>>>>
>>>> that would be interesting to know.  I use shellexecute extensively and
>>>> in my several cases it works identically across win7, vista, 8, and
>>>> 10. Am I in unknown jeopardy/
>>>
>>> Interesting that you say it works fine with Win10; -which edition? (I'm
>>> testing on Home)
>>>
>> 10.0.14393
>
> Ok.., for clarity...
>
>  Home
>  Pro
>  Ultimate (??)
>
Home

[toc] | [prev] | [next] | [standalone]


#2353

FromGS <gs@v.invalid>
Date2017-05-10 01:01 -0400
Message-ID<oeu6lb$ipc$1@dont-email.me>
In reply to#2352
> On 5/9/2017 10:58 AM, GS wrote:
>>> On 5/8/2017 9:11 PM, GS wrote:
>>>>> On 5/8/2017 6:03 PM, GS wrote:
>>>>>> I've been using ShellExecute to open a user's default mail app with
>>>>>> product registration info pre filled in to appropriate fields. Some of
>>>>>> the body text info is case-sensitive; -in Win10 ShellExecute *forces*
>>>>>> lowercase.
>>>>>>
>>>>>> Does anyone know a good replacement for accomplishing this task?
>>>>>> TIA...
>>>>>>
>>>>> that would be interesting to know.  I use shellexecute extensively and
>>>>> in my several cases it works identically across win7, vista, 8, and
>>>>> 10. Am I in unknown jeopardy/
>>>>
>>>> Interesting that you say it works fine with Win10; -which edition? (I'm
>>>> testing on Home)
>>>>
>>> 10.0.14393
>>
>> Ok.., for clarity...
>>
>>  Home
>>  Pro
>>  Ultimate (??)
>>
> Home

Ok, thanks! I realized I didn't initially differenciate that the problem was 
only VBA related; -your reply prompted me to check as the code is identical for 
both VB6/VBA. Thanks for your part in resolving that...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2343

FromGS <gs@v.invalid>
Date2017-05-08 22:46 -0400
Message-ID<oerad0$4n3$1@dont-email.me>
In reply to#2340
> I've been using ShellExecute to open a user's default mail app with product 
> registration info pre filled in to appropriate fields. Some of the body text 
> info is case-sensitive; -in Win10 ShellExecute *forces* lowercase.
>
> Does anyone know a good replacement for accomplishing this task?
> TIA...

Just playing with attachment stuff and discovered ShellExecute has stopped 
forcing lowercase! Weird...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2344

FromGS <gs@v.invalid>
Date2017-05-08 22:52 -0400
Message-ID<oeranb$5f0$1@dont-email.me>
In reply to#2343
>> I've been using ShellExecute to open a user's default mail app with product 
>> registration info pre filled in to appropriate fields. Some of the body 
>> text info is case-sensitive; -in Win10 ShellExecute *forces* lowercase.
>>
>> Does anyone know a good replacement for accomplishing this task?
>> TIA...
>
> Just playing with attachment stuff and discovered ShellExecute has stopped 
> forcing lowercase! Weird...

Oops.., spoke too soon as it still happens using VBA! Damm...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2345

FromArne Saknussemm <esre.10.arnsak@spamgourmet.com>
Date2017-05-09 09:58 +0200
Message-ID<20170509095822.00001d8c@eternal-september.org>
In reply to#2344
On Mon, 08 May 2017 22:52:30 -0400
"GS" wrote in
comp.lang.basic.visual.misc,microsoft.public.vb.general.discussion
<oeranb$5f0$1@dont-email.me>:

> >> I've been using ShellExecute to open a user's default mail app
> >> with product registration info pre filled in to appropriate
> >> fields. Some of the body text info is case-sensitive; -in Win10
> >> ShellExecute *forces* lowercase.
> >>
> >> Does anyone know a good replacement for accomplishing this task?
> >> TIA...
> >
> > Just playing with attachment stuff and discovered ShellExecute has
> > stopped forcing lowercase! Weird...
 
> Oops.., spoke too soon as it still happens using VBA! Damm...

Considering the above I wonder if

* there's a bug in VBA

or

* there's a bug in your VBA code

:) that said, check these out

http://stackoverflow.com/questions/29847933/vb-6-0-open-default-email-client-and-populate-some-entries

http://stackoverflow.com/questions/25906657/encodeuricomponent-or-escape-in-vb6

also, and since we're at it; here's an alternate idea, instead of
shelling out the string, you may let the system do it for you, the idea
is the following:

Add a form to your app

Add a "web browser" control to the form and a button to close it

Populate the webbrowser HTML with some text and a "mailto" URL and
ensure to properly "HTMLencode" the URL

now, when clicking the URL, the mail client will open and populate with
the given fields (mailto, body...) 

[toc] | [prev] | [next] | [standalone]


#2350

FromGS <gs@v.invalid>
Date2017-05-09 14:13 -0400
Message-ID<oet0m8$d33$1@dont-email.me>
In reply to#2345
> Considering the above I wonder if
>
> * there's a bug in VBA

Well, apparently you are correct in your assumption. According to my VBA 
mentore this is a long time bug in VBA; -at some point ShellExecute got entered 
in lowercase and VBA now thinks it should be that way. Constants take 
precedence so the fix is (apparently) to enter...

  Public Const ShellExecute As Long = 0

..at the top of a module, choose Debug>>Compile (ignore the objection), then 
delete the line. Doesn't seem to work, though, so I'll get back to him and 
shift my focus to your other suggestions meanwhile...

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2351

FromGS <gs@v.invalid>
Date2017-05-09 14:41 -0400
Message-ID<oet2b2$j41$1@dont-email.me>
In reply to#2345
> or
>
> * there's a bug in your VBA code

As stated.., my VB6 version uses the same exact code; -it works as expected. 
I'm now assuming this is a VBA issue and nothing to do with VB6 since it seems 
to be working there just as it does for Gry Scott.

My fault for not checking this out! I normally dev new stuff in VBA 1st to work 
out the logistics, then make a VB6 version using the same code. When I 
discovered the lcase issue I googled it and got lots of reading that confirmed 
it to be a Win10 ShellExecute issue.
>
>  :) that said, check these out
>
> http://stackoverflow.com/questions/29847933/vb-6-0-open-default-email-client-and-populate-some-entries
>
> http://stackoverflow.com/questions/25906657/encodeuricomponent-or-escape-in-vb6
>
Neither of these offer anything helpful. Thanks, though, for making the 
effort...

> also, and since we're at it; here's an alternate idea, instead of
> shelling out the string, you may let the system do it for you, the idea
> is the following:
>
> Add a form to your app
>
> Add a "web browser" control to the form and a button to close it
>
> Populate the webbrowser HTML with some text and a "mailto" URL and
> ensure to properly "HTMLencode" the URL
>
> now, when clicking the URL, the mail client will open and populate with
> the given fields (mailto, body...)

The procedure is already fired by a form button so I might be willing to 
explore this at some time in the future if I really need to have the user 
intervene in the product registration process. Since that's not necessary I 
decided to go with CDO for this task. I've also revised my registration manager 
to do same for sending activation keys to users.

Since the issue lies with a VBA problem, I can use Excel's built-in 'Send to > 
Mail Recipient' functionality for all other stuff that doesn't require being in 
Base64 format.

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [next] | [standalone]


#2354 — Re: ShellExecute broken in Win10 - Mystery solved!

FromGS <gs@v.invalid>
Date2017-05-10 12:50 -0400
SubjectRe: ShellExecute broken in Win10 - Mystery solved!
Message-ID<oevg6c$q1c$1@dont-email.me>
In reply to#2340
FWIW...

Turns out that VBA6 has this issue in Win10. Running the same code in VBA7 
behaves as expected!

-- 
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
  comp.lang.basic.visual.misc
  microsoft.public.vb.general.discussion

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.basic.visual.misc


csiph-web