Click here to Skip to main content
15,890,845 members
Home / Discussions / COM
   

COM

 
GeneralRe: Install ActiveX Pin
p_196026-Apr-09 22:16
p_196026-Apr-09 22:16 
GeneralRe: Install ActiveX Pin
KarstenK26-Apr-09 22:46
mveKarstenK26-Apr-09 22:46 
GeneralRe: Install ActiveX Pin
p_196027-Apr-09 0:49
p_196027-Apr-09 0:49 
QuestionHow to get event on custom menu added in Winword Pin
SNI24-Apr-09 3:27
SNI24-Apr-09 3:27 
QuestionProblem in implementing an interface Pin
MKC00223-Apr-09 21:29
MKC00223-Apr-09 21:29 
QuestionClosing Winword document thru WordAddin creates problem. Pin
SNI22-Apr-09 3:08
SNI22-Apr-09 3:08 
AnswerRe: Closing Winword document thru WordAddin creates problem. Pin
Baltoro22-Apr-09 5:35
Baltoro22-Apr-09 5:35 
GeneralRe: Closing Winword document thru WordAddin creates problem. [modified] Pin
SNI22-Apr-09 17:39
SNI22-Apr-09 17:39 
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. Pin
hirenkshah21-Apr-09 19:14
hirenkshah21-Apr-09 19:14 
QuestionDisabling row in ListBox. Pin
Shaileshvb21-Apr-09 18:10
Shaileshvb21-Apr-09 18:10 
AnswerRe: Disabling row in ListBox. Pin
Sun Rays3-May-09 20:43
Sun Rays3-May-09 20:43 
QuestionHow To Simulate OLE Drag & Drop? Pin
Shuang. Wu20-Apr-09 23:43
Shuang. Wu20-Apr-09 23:43 
AnswerRe: How To Simulate OLE Drag & Drop? Pin
KarstenK26-Apr-09 22:49
mveKarstenK26-Apr-09 22:49 
QuestioniTunes add track to playlist Pin
speakers_8620-Apr-09 15:50
speakers_8620-Apr-09 15:50 
AnswerRe: iTunes add track to playlist Pin
speakers_8620-Apr-09 16:10
speakers_8620-Apr-09 16:10 
Questionfailed accessing COM method after successful cocreateinstance. Pin
rsandeepu20-Apr-09 1:39
rsandeepu20-Apr-09 1:39 
AnswerRe: failed accessing COM method after successful cocreateinstance. Pin
guestcat20-Apr-09 2:30
guestcat20-Apr-09 2:30 
QuestionRe: failed accessing COM method after successful cocreateinstance. Pin
rsandeepu20-Apr-09 23:21
rsandeepu20-Apr-09 23:21 
QuestionRe: failed accessing COM method after successful cocreateinstance. Pin
CPallini20-Apr-09 3:01
mveCPallini20-Apr-09 3:01 
AnswerRe: failed accessing COM method after successful cocreateinstance. Pin
rsandeepu20-Apr-09 3:22
rsandeepu20-Apr-09 3:22 
GeneralRe: failed accessing COM method after successful cocreateinstance. Pin
guestcat21-Apr-09 11:00
guestcat21-Apr-09 11:00 
QuestionRe: failed accessing COM method after successful cocreateinstance. Pin
rsandeepu21-Apr-09 15:45
rsandeepu21-Apr-09 15:45 
QuestionRe: failed accessing COM method after successful cocreateinstance. Pin
rsandeepu21-Apr-09 20:47
rsandeepu21-Apr-09 20:47 
AnswerRe: failed accessing COM method after successful cocreateinstance. Pin
KarstenK21-Apr-09 21:18
mveKarstenK21-Apr-09 21:18 
AnswerRe: failed accessing COM method after successful cocreateinstance. Pin
rsandeepu24-Apr-09 2:14
rsandeepu24-Apr-09 2:14 

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.