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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening word file

Status
Not open for further replies.

paul51

Programmer
May 19, 2000
38
US
Does anyone know how to open a particluar word file (.DOC)from a Visual C++ platform?
 

Here's one way:

ShellExecute(NULL,"open","c:\\temp\\MyDoc.doc",NULL,NULL, SW_SHOWNORMAL);

The above code will open a doc named MyDoc located in the temp directory in the c: drive. You can change the path to an executable, bitmap, etc.

Brother C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top