Invoke app from doc

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hugh webster

    Invoke app from doc

    In a VB6 messaging application, I am adding attached documents.
    How do I let a user open a selected doc in its correct parent app?

    1) Use ShellExecute API?
    2) find the app from HKEY_CLASSES_RO OT, then call Shell()?

    I think I have done it easily before, but I can't remember how!

    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
  • J French

    #2
    Re: Invoke app from doc

    On Fri, 28 Jul 2006 09:41:23 +0200, "hugh webster"
    <hwebster@bluew in.chwrote:
    >In a VB6 messaging application, I am adding attached documents.
    >How do I let a user open a selected doc in its correct parent app?
    >
    >1) Use ShellExecute API?
    >2) find the app from HKEY_CLASSES_RO OT, then call Shell()?
    >I think I have done it easily before, but I can't remember how!
    ShellExecute is the MS recommended method

    However the smart money is on using FindExecutable to get the full
    name and path of the associated App, after one has got that Shell or
    an API method will do.


    Comment

    Working...