Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 10 Jul 2008 06:31:14 -0700,    group: microsoft.public.platformsdk.shell        back       


Problem about the "shellexecute" difference between XP and Vista.   
Dear all,
I've got to write a program which should support windows unicode.
I use shellexecute to call the default "mailto" program, so that I can send 
mail with the default windows mail application.
The program runs well on XP.
But when we come to Vista, I can see various unrecognizable characters 
appear on my outlook.
When I debug into the program, the program runs write before the 
shellexecute call.
But after shellexecute is called, the characters I set as the title and 
content of my email come to a mess.
But when we use the same string on IE, the content in outlook seems right.
I wonder if anyone happens to know the cause of the problem.
If so, please help.
Thanks in advance for any further advice.
date: Thu, 10 Jul 2008 06:31:14 -0700   author:   Kun Niu

Re: Problem about the "shellexecute" difference between XP and Vista.   
>I've got to write a program which should support windows unicode.
>I use shellexecute to call the default "mailto" program, so that I can send 
>mail with the default windows mail application.
>The program runs well on XP.
>But when we come to Vista, I can see various unrecognizable characters 
>appear on my outlook.
>When I debug into the program, the program runs write before the 
>shellexecute call.
>But after shellexecute is called, the characters I set as the title and 
>content of my email come to a mess.
>But when we use the same string on IE, the content in outlook seems right.
>I wonder if anyone happens to know the cause of the problem.

You'll need to show a code example that illustrates the problem you're
seeing. 

Dave
date: Thu, 10 Jul 2008 15:26:44 +0100   author:   David Lowndes lid

Re: Problem about the "shellexecute" difference between XP and Vis   
Sorry for the inconvenience I caused.
In fact, my code is really simple.
ShellExecute(NULL, NULL, strMailTo, NULL, SW_SHOW);
I'm quite sure that on both XP and VISTA the strMailTo is of the right format.
But when outlook is activated if the strMailTo string is of the format 
"mailto:?subject=......", I alway get a mess in outlook on VISTA.
But it works fine on XP system.
Thanks for your attention.

"David Lowndes" wrote:

> >I've got to write a program which should support windows unicode.
> >I use shellexecute to call the default "mailto" program, so that I can send 
> >mail with the default windows mail application.
> >The program runs well on XP.
> >But when we come to Vista, I can see various unrecognizable characters 
> >appear on my outlook.
> >When I debug into the program, the program runs write before the 
> >shellexecute call.
> >But after shellexecute is called, the characters I set as the title and 
> >content of my email come to a mess.
> >But when we use the same string on IE, the content in outlook seems right.
> >I wonder if anyone happens to know the cause of the problem.
> 
> You'll need to show a code example that illustrates the problem you're
> seeing. 
> 
> Dave
>
date: Thu, 10 Jul 2008 08:04:01 -0700   author:   Kun Niu

Re: Problem about the "shellexecute" difference between XP and Vis   
Kun Niu wrote:
> Sorry for the inconvenience I caused.
> In fact, my code is really simple.
> ShellExecute(NULL, NULL, strMailTo, NULL, SW_SHOW);
> I'm quite sure that on both XP and VISTA the strMailTo is of the right format.
> But when outlook is activated if the strMailTo string is of the format 
> "mailto:?subject=......", I alway get a mess in outlook on VISTA.
> But it works fine on XP system.
> Thanks for your attention.

Seeing as your problem is with odd characters in the URL string, it 
would be useful if you showed us what characters are in the URL string 
and how you generate them.

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Thu, 10 Jul 2008 17:03:59 +0100   author:   Dean Earley

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us