Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API to open file in its application?

Status
Not open for further replies.

PeDa

Technical User
Joined
Oct 10, 2002
Messages
227
Location
NL
I should like to include a "print the manual" item in the menu of my (gcc) C programme. Is there an API call to which I can pass a file name (in this case a .rtf document), such that the file is openen in the appropriate application (in this case Word or the like)?

Many thanks in advance,
 

Check out ShellExecute or ShellExecuteEx API.

Good Luck

 
Thank you vb5prgrmr, from MSDN it seems that this is just what I need.

Best wishes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top