Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: too many items in treeview Pin
Peter Molnar23-Nov-02 12:47
Peter Molnar23-Nov-02 12:47 
QuestionHow/Can I create an array of controls? Pin
VanHlebar23-Nov-02 3:45
VanHlebar23-Nov-02 3:45 
AnswerRe: How/Can I create an array of controls? Pin
Peter Molnar23-Nov-02 4:42
Peter Molnar23-Nov-02 4:42 
GeneralRe: How/Can I create an array of controls? Pin
VanHlebar23-Nov-02 6:11
VanHlebar23-Nov-02 6:11 
GeneralRe: How/Can I create an array of controls? Pin
Paul M Watt23-Nov-02 6:44
mentorPaul M Watt23-Nov-02 6:44 
GeneralRe: How/Can I create an array of controls? Pin
georgiek5023-Nov-02 6:44
georgiek5023-Nov-02 6:44 
GeneralRe: How/Can I create an array of controls? Pin
Peter Molnar23-Nov-02 7:02
Peter Molnar23-Nov-02 7:02 
Generalms word automation Pin
pnpfriend23-Nov-02 3:28
pnpfriend23-Nov-02 3:28 
Hi I have word automated application...
It takes input document (.doc) file name from the command line, then open it, format it, print it, and close the MS Word application with MSWord9...

Another dialog-based application calling wordAutomation application passing with filename as an argument. Once wordAutomation gets the document file name, it open, format, and print the file.

Here the problem comes, wordAutomation takes so long to close the MSWord application... it takes 3 mins to close up MSWord application..

There isn't such kind of problem using wordAutomation itself ( not calling from another application). It does all its jobs (open,format,print, and close) very fast ... but why it takes so long to close the MSWord program if it got called from another application?

here the code how I close MS Word in wordAutomation program.
<br />
//printing the document file<br />
 document.PrintOut(COleVariant((short)false), vOpt, vOpt, vOpt, vOpt, vOpt ,vOpt, vOpt, vOpt, vOpt, vOpt, vOpt, vOpt, vOpt, vOpt, vOpt, COleVariant((short)12240), COleVariant((short)15840));<br />
    <br />
      //Close the document without saving changes<br />
      document.Close(COleVariant((short)false), vOpt, vOpt);<br />
      documents.ReleaseDispatch();<br />
<font color = red> here I think is a problem at closing the MSWord when wordAutomation program is called from another application. I used "I think " coz I don't know how to debug at run time. </font><br />
app.Quit(covFalse,covFalse,covFalse);// quiting the MSWord application.<br />
			app.ReleaseDispatch();<br />
	<br />

QuestionHow to control a threads CPU utilization? Pin
mediamaster4023-Nov-02 3:16
mediamaster4023-Nov-02 3:16 
AnswerRe: How to control a threads CPU utilization? Pin
mediamaster4025-Nov-02 3:11
mediamaster4025-Nov-02 3:11 
GeneralCListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 0:54
professional#realJSOP23-Nov-02 0:54 
GeneralRe: CListCtrl - Selection Problem Pin
Gary R. Wheeler23-Nov-02 1:50
Gary R. Wheeler23-Nov-02 1:50 
GeneralRe: CListCtrl - Selection Problem Pin
#realJSOP23-Nov-02 3:22
professional#realJSOP23-Nov-02 3:22 
GeneralRe: CListCtrl - Selection Problem Pin
Jean-Marc Molina3-Oct-03 1:12
Jean-Marc Molina3-Oct-03 1:12 
GeneralDialogues en MFC Pin
bumper23-Nov-02 0:54
bumper23-Nov-02 0:54 
GeneralRe: Dialogues en MFC Pin
Gary R. Wheeler23-Nov-02 2:00
Gary R. Wheeler23-Nov-02 2:00 
GeneralRe: Dialogues en MFC Pin
bumper23-Nov-02 2:40
bumper23-Nov-02 2:40 
GeneralRe: Dialogues en MFC Pin
Maximilien24-Nov-02 16:19
Maximilien24-Nov-02 16:19 
GeneralRe: Dialogues en MFC Pin
bumper25-Nov-02 11:08
bumper25-Nov-02 11:08 
GeneralPreserving clipboard content Pin
mariuszpopiolek22-Nov-02 23:49
mariuszpopiolek22-Nov-02 23:49 
GeneralRe: Preserving clipboard content Pin
Gary R. Wheeler23-Nov-02 2:11
Gary R. Wheeler23-Nov-02 2:11 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 2:22
mariuszpopiolek23-Nov-02 2:22 
GeneralRe: Preserving clipboard content Pin
Paul M Watt23-Nov-02 6:57
mentorPaul M Watt23-Nov-02 6:57 
GeneralRe: Preserving clipboard content Pin
mariuszpopiolek23-Nov-02 13:22
mariuszpopiolek23-Nov-02 13:22 
GeneralConstants in cmath Pin
Anonymous22-Nov-02 23:22
Anonymous22-Nov-02 23:22 

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.