Click here to Skip to main content

COM

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Install ActiveX PinmemberKarstenK22:46 26 Apr '09  
GeneralRe: Install ActiveX Pinmemberp_19600:49 27 Apr '09  
QuestionHow to get event on custom menu added in Winword PinmemberSNI3:27 24 Apr '09  
QuestionProblem in implementing an interface PinmemberMKC00221:29 23 Apr '09  
QuestionClosing Winword document thru WordAddin creates problem. PinmemberSNI3:08 22 Apr '09  
AnswerRe: Closing Winword document thru WordAddin creates problem. PinmemberBaltoro5:35 22 Apr '09  
GeneralRe: Closing Winword document thru WordAddin creates problem. [modified] PinmemberSNI17:39 22 Apr '09  
I have checked with pointer and poiter is valid. But the thing is that when we close document using File-->Close (File Menu). there are two close calls are coming to winword. first that we are calling pDoc->close() and other is winword calls close when we use File-->Close (File Menu). If I open two documents and close the file then instead of closing a single document it closes both the documents and the container remain.
COnclusion is there are two close calls are going but since we are opening only one document, only one document gets closed and there is no other document to close and hence crashed. Pls let me know how to handle this?
 
Any idea if we can use IDispatch* use in DocumentBeforeClose....
or something else we can do.
 
Actually there are two close event which winword fires and one that we are explicitely calling (this is required for our logic to work) inside DocumentBeforeClose...
How can we tell winword that close has been already fired...
 
SNI
modified on Thursday, April 23, 2009 3:54 AM

QuestionExcel: change cell color of unprotect sheet using macro. Pinmemberhirenkshah19:14 21 Apr '09  
QuestionDisabling row in ListBox. PinmemberShaileshvb18:10 21 Apr '09  
AnswerRe: Disabling row in ListBox. Pinmember Sun Rays 20:43 3 May '09  
QuestionHow To Simulate OLE Drag & Drop? PinmemberShuang. Wu23:43 20 Apr '09  
AnswerRe: How To Simulate OLE Drag & Drop? PinmemberKarstenK22:49 26 Apr '09  
QuestioniTunes add track to playlist Pinmemberspeakers_8615:50 20 Apr '09  
AnswerRe: iTunes add track to playlist Pinmemberspeakers_8616:10 20 Apr '09  
Questionfailed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu1:39 20 Apr '09  
AnswerRe: failed accessing COM method after successful cocreateinstance. Pinmemberguestcat2:30 20 Apr '09  
QuestionRe: failed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu23:21 20 Apr '09  
QuestionRe: failed accessing COM method after successful cocreateinstance. PinmvpCPallini3:01 20 Apr '09  
AnswerRe: failed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu3:22 20 Apr '09  
GeneralRe: failed accessing COM method after successful cocreateinstance. Pinmemberguestcat11:00 21 Apr '09  
QuestionRe: failed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu15:45 21 Apr '09  
QuestionRe: failed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu20:47 21 Apr '09  
AnswerRe: failed accessing COM method after successful cocreateinstance. PinmemberKarstenK21:18 21 Apr '09  
AnswerRe: failed accessing COM method after successful cocreateinstance. Pinmemberrsandeepu2:14 24 Apr '09  
QuestionAccess to managed constructor with parameters from unmanaged code. Pinmemberfenrirjk223:32 19 Apr '09  

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

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


Advertise | Privacy | Mobile
Web02 | 2.5.120604.1 | Last Updated 21 Apr 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid