   C++,  C++Builder, API Windows_______________883



1.         file.doc, .. 
Word (      .doc),    
.     :

ShellExecute(Handle,NULL,"file.doc",NULL,NULL,SW_RESTORE) ;

2.      , 
     IpOperation:

ShellExecute(Handle,"print","file.doc",NULL,NULL,SW_RESTORE) ;

      . 
Word,    .doc,     file.doc,  
Word      ,   
file.doc   Word.

3.      :

ShellExecute(Handle,"open","Calc",NULL,NULL,SW_RESTORE) ;

4.     c:\Program Files\Borland:

ShellExecute(Handle,"open","c:\\Program Files\\Bor-
land", NULL,NULL,SW_RESTORE);

 

ShellExecute(Handle,"explore","c:\\Program Files\\Borland" ,
NULL,NULL,SW_RESTORE);

      c:\Program Files\Bor-
land.

14.14.3.3 FindExecutable  

    ,    

 ShellAPI


HINSTANCE FindExecutable(

LPCTSTR IpFile,        //     
LPCTSTR IpDirectory,   //    
LPTSTR IpResult        //     

) ;



 FindExecutable      .,
  ,   IpFile.  IpDirectory -
   .        -
   .  IpResult      
     ,        -
,    IpFile.

    FindExecutable  , -
 32.    ,    .
      14.14.3.1.





char APchar[254] ;

FindExecutable("Doc.doc".NULL,APchar) ;

Labell->Caption=APchar;