Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Obtaining screen dimensions Pin
gokings9-Aug-04 1:56
gokings9-Aug-04 1:56 
GeneralOne more... Pin
Ravi Bhavnani9-Aug-04 2:50
professionalRavi Bhavnani9-Aug-04 2:50 
GeneralCedit control, paste problem Pin
Safika9-Aug-04 0:11
Safika9-Aug-04 0:11 
GeneralRe: Cedit control, paste problem Pin
Jaime Stuardo9-Aug-04 3:55
Jaime Stuardo9-Aug-04 3:55 
GeneralRe: Cedit control, paste problem Pin
Safika9-Aug-04 5:30
Safika9-Aug-04 5:30 
GeneralMS word automation examples Pin
tiziacaia9-Aug-04 0:10
tiziacaia9-Aug-04 0:10 
GeneralRe: MS word automation examples Pin
V.9-Aug-04 1:15
professionalV.9-Aug-04 1:15 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 2:42
David Crow9-Aug-04 2:42 
MSDN article Q178749 has an Excel example. Step 9 is the important one as you'll use Word's type library instead of Excel's. Creating an instance of the (Word) _Application object and using its methods will be the same, though.

_Application app;
app.CreateDispatch(_T("Word.Application"));
Documents docs = app.GetDocuments();
CString strFilename(_T("A letter to home.doc"));
_Document doc = docs.Open(COleVariant(strFileName), ...);
...



"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:00
tiziacaia9-Aug-04 5:00 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 5:12
David Crow9-Aug-04 5:12 
GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:22
tiziacaia9-Aug-04 5:22 
GeneralRe: MS word automation examples Pin
David Crow9-Aug-04 5:31
David Crow9-Aug-04 5:31 
GeneralRe: MS word automation examples Pin
tiziacaia9-Aug-04 5:36
tiziacaia9-Aug-04 5:36 
Questionwhy world so cruel for sleep( ) ing..?? Pin
TssPrasad8-Aug-04 23:21
sussTssPrasad8-Aug-04 23:21 
AnswerRe: why world so cruel for sleep( ) ing..?? Pin
Antti Keskinen8-Aug-04 23:29
Antti Keskinen8-Aug-04 23:29 
GeneralRe: why world so cruel for sleep( ) ing..?? Pin
Anonymous9-Aug-04 5:55
Anonymous9-Aug-04 5:55 
Questionwhy world so cruel for sleep( ) ing..?? Pin
TssPrasad8-Aug-04 23:20
sussTssPrasad8-Aug-04 23:20 
Questionwhy world so cruel for sleep( ) ing..?? Pin
Shiva Prasad8-Aug-04 23:20
Shiva Prasad8-Aug-04 23:20 
GeneralDatabase Records Pin
Neelesh K J Jain8-Aug-04 23:10
Neelesh K J Jain8-Aug-04 23:10 
GeneralRe: Database Records Pin
Antti Keskinen8-Aug-04 23:24
Antti Keskinen8-Aug-04 23:24 
GeneralRe: Database Records Pin
David Crow9-Aug-04 2:52
David Crow9-Aug-04 2:52 
GeneralDatabase Records Pin
Neelesh K J Jain8-Aug-04 23:05
Neelesh K J Jain8-Aug-04 23:05 
QuestionHow to call different dialog box on a property sheet clicking on OK buttton?. Pin
Rajesh_K_Sharma8-Aug-04 22:39
Rajesh_K_Sharma8-Aug-04 22:39 
AnswerRe: How to call different dialog box on a property sheet clicking on OK buttton?. Pin
David Crow9-Aug-04 3:00
David Crow9-Aug-04 3:00 
GeneralOpenScManager() Pin
Anonymous8-Aug-04 22:11
Anonymous8-Aug-04 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.