home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,150 of 10,840   
   J French to hwebster@bluewin.ch   
   Re: Invoke app from doc   
   28 Jul 06 08:57:55   
   
   From: erewhon@nowhere.uk   
      
   On Fri, 28 Jul 2006 09:41:23 +0200, "hugh webster"   
    wrote:   
      
   >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_ROOT, 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.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca