Click here to Skip to main content
15,915,800 members
Home / Discussions / COM
   

COM

 
QuestionAny Idea? Pin
Al_Pennyworth20-Jun-02 4:27
Al_Pennyworth20-Jun-02 4:27 
AnswerRe: Any Idea? Pin
Rama Krishna Vavilala20-Jun-02 8:02
Rama Krishna Vavilala20-Jun-02 8:02 
GeneralRe: Any Idea? Pin
Al_Pennyworth24-Jun-02 7:05
Al_Pennyworth24-Jun-02 7:05 
AnswerRe: Any Idea? Pin
Amit Dey1-Jul-02 3:35
Amit Dey1-Jul-02 3:35 
GeneralRe: Any Idea? Pin
1-Jul-02 7:31
suss1-Jul-02 7:31 
AnswerRe: Any Idea? Pin
Amit Dey27-Aug-02 13:49
Amit Dey27-Aug-02 13:49 
GeneralRe: Any Idea? Pin
Anonymous28-Aug-02 3:04
Anonymous28-Aug-02 3:04 
GeneralExcel events inside a DLL Pin
Zizilamoroso19-Jun-02 23:48
Zizilamoroso19-Jun-02 23:48 
I've a question about this example: It opens excel and inserts an eventsink to catch the events inside excel.

HOWTO: Catch Microsoft Excel Application Events Using VC++ Q186427
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q186427

I've tried this example using an MFC-EXE, and all works fine. When you press start, the excel application shows up. Clicking with the mouse results in a event messagebox.


But, if you want to include this functionality inside an MFC-DLL, it will not work. Excel shows up alright, but when you click something or press a button, the excel application will block. After a while a messagebox shows up saying: "Microsoft Excel is waiting for another application to complete an OLE action."


Short: using a .exe works fine, but the .dll blocks.

Why?
What's the difference here? (I've used MFC in both cases)




[VISUAL STUDIO 6.0] [MFC] [WIN98/2]

Dead | X| Bluute tette! Dead | X|
GeneralRe: Excel events inside a DLL Pin
soptest20-Jun-02 7:54
soptest20-Jun-02 7:54 
GeneralInterlocked increment failed Pin
sefip19-Jun-02 20:56
sefip19-Jun-02 20:56 
GeneralRe: Interlocked increment failed Pin
Dudi Avramov20-Jun-02 2:05
Dudi Avramov20-Jun-02 2:05 
Generallock-up catching excel events Pin
Zizilamoroso18-Jun-02 23:54
Zizilamoroso18-Jun-02 23:54 
GeneralRe: lock-up catching excel events Pin
Zizilamoroso19-Jun-02 1:20
Zizilamoroso19-Jun-02 1:20 
GeneralRe: lock-up catching excel events Pin
soptest20-Jun-02 7:52
soptest20-Jun-02 7:52 
GeneralLegacy COM calling .NET DLL: LPArray problem Pin
bad_english18-Jun-02 21:01
bad_english18-Jun-02 21:01 
GeneralCatching Events Pin
18-Jun-02 4:48
suss18-Jun-02 4:48 
GeneralRe: Catching Events Pin
Amit Dey18-Jun-02 11:14
Amit Dey18-Jun-02 11:14 
GeneralRe: Catching Events Pin
19-Jun-02 4:37
suss19-Jun-02 4:37 
GeneralRe: Catching Events Pin
20-Jun-02 6:32
suss20-Jun-02 6:32 
GeneralRe: Catching Events Pin
Anonymous27-Aug-02 9:15
Anonymous27-Aug-02 9:15 
GeneralRe: Catching Events Pin
Amit Dey27-Aug-02 13:52
Amit Dey27-Aug-02 13:52 
GeneralException Handling Error Pin
soup15-Jun-02 6:00
soup15-Jun-02 6:00 
GeneralRe: Exception Handling Error Pin
Tim Smith15-Jun-02 6:20
Tim Smith15-Jun-02 6:20 
GeneralRe: Exception Handling Error Pin
soup15-Jun-02 14:25
soup15-Jun-02 14:25 
GeneralRe: Exception Handling Error Pin
Tim Smith15-Jun-02 14:58
Tim Smith15-Jun-02 14:58 

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.