|
|||
|
I'm triing to give my users several different ways to send mail from my app.
One of it is the mailto: command that is send by ShellExecute() When sending the mail it works well for small mailbody's When the mailbody is bigger there is a VO error. Are there some known limits on this ? John ERROR on this line: IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR ERROR code Error Code: 50 [ ] Subsystem: VO-CODE Error Subcode: 5333 Argument Number: 2 |
|
|
||||
|
||||
|
|
|
|||
|
On Thu, 8 Jul 2004 17:39:11 +0200, "John Martens"
<CAVO@TennisHulp.info> wrote: >One of it is the mailto: command that is send by ShellExecute() Hello John, > >ERROR on this line: >IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ, >SW_SHOWNORMAL) == NULL_PTR I use ShellExecute(NULL,String2Psz("open"),String2Psz("m ailto:x@y.com"),NULL, NULL,SW_ShowNormal) so the 2nd argument differs, and there's your error. Dick van Kooten |
|
|||
|
Dick,
IF ShellExecute(NULL_PTR, String2Psz("open"), PSZ(cShell), NULL_PSZ, NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR Gives the same error on the same line with the same VO-error Error Code: 50 [ ] Subsystem: VO-CODE Error Subcode: 5333 Argument Number: 2 John "D.J.W. van Kooten" <kooten@ic2remove.this.com> schreef in bericht news:40ed6d96.40486093@news.zonnet.nl... > On Thu, 8 Jul 2004 17:39:11 +0200, "John Martens" > <CAVO@TennisHulp.info> wrote: > > >One of it is the mailto: command that is send by ShellExecute() > Hello John, > > > >ERROR on this line: > >IF ShellExecute(NULL_PTR, NULL_PSZ, PSZ(cShell), NULL_PSZ, NULL_PSZ, > >SW_SHOWNORMAL) == NULL_PTR > > > I use > > ShellExecute(NULL,String2Psz("open"),String2Psz("m ailto:x@y.com"),NULL, > NULL,SW_ShowNormal) > > so the 2nd argument differs, and there's your error. > > Dick van Kooten |
|
|||
|
John,
> > IF ShellExecute(NULL_PTR, String2Psz("open"), PSZ(cShell), NULL_PSZ, > NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR > > Gives the same error on the same line with the same VO-error > Error Code: 50 [ ] > Subsystem: VO-CODE > Error Subcode: 5333 > Argument Number: 2 > > John > A problem with a big email and not a smaller one would lead me to look for something preceding this that is screwing up memory. Bigger email could cause GC, that a smaller one wouldn't. Some people have been using CreateProcess rather than ShellExecute. Finally, the first parameter is looking for a window, the code that Dick posted used a NULL rather than a NULL_PTR, any difference? (You can see my background is Clipper...and not C <g>.) Marshall |
|
|||
|
John Martens wrote:
> I'm triing to give my users several different ways to send mail from > my app. One of it is the mailto: command that is send by > ShellExecute() > > When sending the mail it works well for small mailbody's > > When the mailbody is bigger there is a VO error. > Are there some known limits on this ? others have previously reported limits on shellexecute with mailto: but I thought they reported it simply not working (basically it looked like either a mailer limit or a commandline limt) |
|
|||
|
Dick,
can you try the following: IF ShellExecute(NULL_PTR, String2Psz("open"), String2Psz(cShell), NULL_PSZ, NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR If cShell is a VO string, PSZ(cShell) could be the reason for the error. Try String2Psz(cShell) instead. Sven |
|
|||
|
Sven/Marshall,
IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ, NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR Still gives the same error. When I make the string cShell smaller it works. There seems to be no relation to the chars in it but on the size. CreateProcess(NULL_PTR, String2Psz(cShell), NULL_PTR, NULL_PTR, FALSE, 0, NULL_PTR, NULL_PTR, @startup, @pro_inf) Always returns false when using mailto: as the start of cShell John "Sven Ebert" <sven.ebert3@vodafone.de> schreef in bericht news:2l68ocF9cjmgU1@uni-berlin.de... > Dick, > > can you try the following: > > IF ShellExecute(NULL_PTR, String2Psz("open"), String2Psz(cShell), NULL_PSZ, > NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR > > > If cShell is a VO string, PSZ(cShell) could be the reason for the error. > Try String2Psz(cShell) instead. > > Sven > > |
|
|||
|
John / Sven
There is an issue like less 200 chars for Windows 98 I have found. Phil McGuinness - Sherlock Software ------- "John Martens" <CAVO@TennisHulp.info> wrote in message news:acd56$40ee371e$513b5192$18297@news2.zonnet.nl ... > Sven/Marshall, > > IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ, > NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR > |
|
|||
|
Phil,
So not in XP ? John "Phil McGuinness" <heyphil@sherlock.com.au> schreef in bericht news:2l6s7lF7vansU1@uni-berlin.de... > John / Sven > > There is an issue like less 200 chars for Windows 98 I have found. > > Phil McGuinness - Sherlock Software > ------- > > "John Martens" <CAVO@TennisHulp.info> wrote in message > news:acd56$40ee371e$513b5192$18297@news2.zonnet.nl ... > > Sven/Marshall, > > > > IF ShellExecute(NULL, String2Psz("open"), String2Psz(cShell), NULL_PSZ, > > NULL_PSZ, SW_SHOWNORMAL) == NULL_PTR > > > > |
|
|||
|
Phil,
I think I'm going to use SMTP as well. MAPI is my default solution but some users that have strict safety policies or less compatible mail clients do not get MAPI working. John "Phil McGuinness" <heyphil@sherlock.com.au> schreef in bericht news:2l7l6bF9nnm5U1@uni-berlin.de... > John, > > I gave up on Shellexecute() for attachments to the default mail handler. > If I have to send attachments I use SMTP or Outlook or MAPI. > > Phil McGuinness - Sherlock Software > ---------- > > |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: annoying error message in sas log | rao bingi | Newsgroup comp.soft-sys.sas | 0 | 04-10-2006 01:18 AM |
| Re: annoying error message in sas log | toby dunn | Newsgroup comp.soft-sys.sas | 0 | 04-09-2006 09:34 PM |
| Re: annoying error message in sas log | Paul M. Dorfman | Newsgroup comp.soft-sys.sas | 0 | 04-09-2006 08:59 PM |
| Re: Stderror, Error Stdev, Residual error ???/ Are they same | Swank, Paul R | Newsgroup comp.soft-sys.sas | 0 | 11-03-2005 07:47 PM |
| How to Score a New Data set Based Proc NLMIXED Results | dmka | Newsgroup comp.soft-sys.sas | 0 | 07-29-2005 10:24 AM |