Click here to Skip to main content
16,004,887 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to extract data from VARIANT? Pin
Jörgen Sigvardsson3-Sep-04 9:09
Jörgen Sigvardsson3-Sep-04 9:09 
GeneralRe: How to extract data from VARIANT? Pin
Nirav Doshi3-Sep-04 9:16
Nirav Doshi3-Sep-04 9:16 
QuestionActiveX TypeLib Practices: property or method? Pin
KFournier3-Sep-04 6:29
KFournier3-Sep-04 6:29 
AnswerRe: ActiveX TypeLib Practices: property or method? Pin
Jörgen Sigvardsson3-Sep-04 8:40
Jörgen Sigvardsson3-Sep-04 8:40 
AnswerRe: ActiveX TypeLib Practices: property or method? Pin
Jörgen Sigvardsson3-Sep-04 8:41
Jörgen Sigvardsson3-Sep-04 8:41 
GeneralRe: ActiveX TypeLib Practices: property or method? Pin
KFournier3-Sep-04 9:15
KFournier3-Sep-04 9:15 
QuestionIs my client still there? Pin
FearlessBurner2-Sep-04 6:29
FearlessBurner2-Sep-04 6:29 
AnswerRe: Sorted :) Pin
FearlessBurner6-Sep-04 1:50
FearlessBurner6-Sep-04 1:50 
Fixed by these changes:
A) Added a Test method to the event sink which is empty at the client method
B) When the server tries to close itself, it calls the above Test method. If an RPC error results, it is assumed that the client has broken.
C) Server shutdown is firstly achieved by calling CFrameWnd::OnClose() (as an MFC frame window). If the client has been broken, then AfxPostQuitMessage(0) is called immediately afterwards to terminate the process.

Effectively the call to AfxPostQuitMessage does an AfxOleUnlockApp() so that the server can quit gracefully. I discovered this by debugging the MFC code.

The only bad thing about this approach was the need to add another event method to the sink, and to hardwire a call to this in the server. Does anyone have a better approach to this?
GeneralOut-Process Vs In-Process COM Performnace Issue Pin
DeepakSharma2-Sep-04 1:23
DeepakSharma2-Sep-04 1:23 
GeneralRe: Out-Process Vs In-Process COM Performnace Issue Pin
geo_m14-Oct-04 1:55
geo_m14-Oct-04 1:55 
Generalexplorer bar Pin
rolati1-Sep-04 23:45
rolati1-Sep-04 23:45 
GeneralRe: explorer bar Pin
Anonymous2-Sep-04 8:50
Anonymous2-Sep-04 8:50 
QuestionHow to get the application Root Directory runtime? Pin
Member 7436551-Sep-04 16:46
Member 7436551-Sep-04 16:46 
GeneralCOM release build problem Pin
alex.barylski31-Aug-04 20:36
alex.barylski31-Aug-04 20:36 
GeneralRe: COM release build problem Pin
Rory Solley31-Aug-04 21:30
Rory Solley31-Aug-04 21:30 
GeneralRe: COM release build problem Pin
alex.barylski1-Sep-04 9:10
alex.barylski1-Sep-04 9:10 
GeneralRe: COM release build problem Pin
ShaunOldale1-Sep-04 12:24
ShaunOldale1-Sep-04 12:24 
GeneralRe: COM release build problem Pin
alex.barylski2-Sep-04 18:33
alex.barylski2-Sep-04 18:33 
QuestionHow to implement ScrollBars in a atl control Pin
cosmicYang31-Aug-04 20:03
cosmicYang31-Aug-04 20:03 
AnswerRe: How to implement ScrollBars in a atl control Pin
Anonymous1-Sep-04 6:24
Anonymous1-Sep-04 6:24 
GeneralRe: How to implement ScrollBars in a atl control Pin
cosmicYang1-Sep-04 14:42
cosmicYang1-Sep-04 14:42 
GeneralCommunicating with Excel (VC++ 6.0 MFC) Pin
shibble31-Aug-04 7:30
shibble31-Aug-04 7:30 
GeneralRe: Communicating with Excel (VC++ 6.0 MFC) Pin
darkbyte1-Sep-04 8:16
darkbyte1-Sep-04 8:16 
GeneralRe: Communicating with Excel (VC++ 6.0 MFC) Pin
shibble1-Sep-04 8:24
shibble1-Sep-04 8:24 
GeneralRe: Communicating with Excel (VC++ 6.0 MFC) Pin
darkbyte1-Sep-04 9:00
darkbyte1-Sep-04 9:00 

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.