Sorry I can't help you much as I havn't tried exactly what you are doing.
But the first thing I would try is to avoid the registry rigamoral and
directly launch desktop.  I'd give this line, "C:\Program Files\Sony
Handheld\Palm.exe" /vcal "%1, to shell and instead of %1 give the path and
name to the vcal file.    I think Palm does host a desktop developers forum
so you might try there for more info.
Good luck,
Mike

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf 
> Of Forman
> Friedman
> Sent: Thursday, December 19, 2002 8:57 PM
> To: Palm Developer Forum
> Subject: Using ShellExecute from Visual Basic
> 
> 
> I hope I have joined the correct forum.
> 
> I am trying to do a simple thing within the vba component of Microsoft
> Access, that is use the Visual Basic ShellEcecute command to 
> add a vCal
> event to a Palm Desktop Calendar.
> 
> I can import a .vcs file into Palm Desktop by using the file / import
> command.
> 
> But, when I double click on the .vcs icon in windows explorer 
> I got some
> error messages unitl I made the following changes.
> 
> 
> I went into the registry and found the following information.
> 
> HKEY_CLASSES_ROOT\vcsfile
> Edit Flags:  0000  00 00 01 00    ......
> HKEY_CLASSES_ROOT\vcsfile\DefaultIcon =
> C:\PROGRA~1\MICROS~1\OFFICE\1033\OUTLLIBR.DLL,44
> HKEY_CLASSES_ROOT\vcsfile\shell
>       HKEY_CLASSES_ROOT\vcsfile\shell\open
> 
>               The open command has some path to MS outlook, 
> so I changed it to the
> following, but it made no diffeence
>               HKEY_CLASSES_ROOT\vcsfile\shell\open\command  
> "C:\Program Files\Sony
> Handheld\Palm.exe" /vcal "%1"
> 
> 
> Then under MyComputer / properties
> 
>       Under Folder Options, Registered File types "vCalDocument"
>       Content Type {MIME}: text/plain
>       default Exctention for Content Type:  .txt
>       Actions:  Open
> 
> The action open  Application used to perform action,  Had 
> something very
> similar to the following string.  It may have been without the qoutes.
> 
>       "C:\Program Files\Sony Handheld\palm.exe" "%1"
> 
> Never the less, I browsed for it and added the %1.
> 
>       In addition "Use DDE" is checked
>       DDE Message is     [Open{"%1"}]
> 
> After doing this double clicking on open from windows 
> explorer would open
> Sony Desktop and add the vCal event after asking for 
> comfirmation that I
> wish to add the event.
> 
> 
> Using Visual Basic, I executed the following command:
> 
>       ShellExecute(vbNull, "Open,  Path & vcs file , "", "", 
> SW_SHOWNORMAL)
> 
>       shell error #8:  There was not enough memory to 
> complete this operation.
> 
> as a check, I re-named the .vcs file .txt and ran the 
> ShellExecute command
> again.  It opened in Notepad
> 
> 
> Clearly, I am almost there, can you supply me with the 
> missing pieces of the
> puzzle to enable ShellEcecute to preform the same function as 
> when I double
> click on the Icon?
> 
> Many thanks
> 
> Richard Friedman
> 
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
> 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to