Click here to Skip to main content
15,894,907 members
Home / Discussions / COM
   

COM

 
AnswerRe: working with DLL without it's headers Pin
Michael Dunn27-Jun-06 6:55
sitebuilderMichael Dunn27-Jun-06 6:55 
AnswerRe: working with DLL without it's headers Pin
User 21559727-Jun-06 9:10
User 21559727-Jun-06 9:10 
GeneralRe: working with DLL without it's headers Pin
adidas.levy27-Jun-06 23:03
adidas.levy27-Jun-06 23:03 
QuestionRunning COM interface method from another thread Pin
shadow0127-Jun-06 0:24
shadow0127-Jun-06 0:24 
AnswerRe: Running COM interface method from another thread Pin
Mike Dimmick27-Jun-06 1:37
Mike Dimmick27-Jun-06 1:37 
GeneralRe: Running COM interface method from another thread Pin
shadow0128-Jun-06 0:21
shadow0128-Jun-06 0:21 
QuestionIn Proc COM Server Pin
HakunaMatada26-Jun-06 1:15
HakunaMatada26-Jun-06 1:15 
AnswerRe: In Proc COM Server Pin
Mike Dimmick27-Jun-06 1:57
Mike Dimmick27-Jun-06 1:57 
OK, why can't your window run as a modeless window on the caller's thread? Why do you need your own message loop? Can you not use the caller's message loop, or is your caller a worker thread in the calling application?

If you really must run your window on a separate thread, I'd use window messages to send commands from the COM object to the window using SendMessage or PostMessage (depending on whether the COM object needs a reply before returning - generally I'd go with PostMessage). The other direction is more tricky - you really have to get COM to do the marshalling for you. What you'd need to do is get hold of the interface pointers registered with the connection point and marshal them across to the window's thread, then use the unmarshalled pointers to actually fire the events from the window. The simplest way is probably to use the Global Interface Table - see Creating the Global Interface Table[^] in MSDN. You'll need to modify the auto-generated FireXxx functions.

If for some reason you want to do the marshalling yourself, see the CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream APIs.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: In Proc COM Server Pin
HakunaMatada27-Jun-06 18:14
HakunaMatada27-Jun-06 18:14 
QuestionASP and COM Help? Pin
Dave_Roach25-Jun-06 14:42
Dave_Roach25-Jun-06 14:42 
QuestionBreakpoint inside DllMain Pin
Gilly Kumar23-Jun-06 18:18
Gilly Kumar23-Jun-06 18:18 
AnswerRe: Breakpoint inside DllMain Pin
Stephen Hewitt25-Jun-06 13:54
Stephen Hewitt25-Jun-06 13:54 
GeneralRe: Breakpoint inside DllMain Pin
Gilly Kumar26-Jun-06 9:13
Gilly Kumar26-Jun-06 9:13 
QuestionUnable to get IFrames in web page Pin
HarishDixit23-Jun-06 0:28
HarishDixit23-Jun-06 0:28 
AnswerRe: Unable to get IFrames in web page Pin
Michael Dunn23-Jun-06 13:50
sitebuilderMichael Dunn23-Jun-06 13:50 
GeneralRe: Unable to get IFrames in web page Pin
HarishDixit23-Jun-06 20:40
HarishDixit23-Jun-06 20:40 
GeneralRe: Unable to get IFrames in web page Pin
Michael Dunn23-Jun-06 22:13
sitebuilderMichael Dunn23-Jun-06 22:13 
GeneralRe: Unable to get IFrames in web page Pin
HarishDixit24-Jun-06 1:04
HarishDixit24-Jun-06 1:04 
QuestionHow to forbid the context menu in mshtml editor? Pin
dreamwinter21-Jun-06 22:22
dreamwinter21-Jun-06 22:22 
QuestionWindows Management Instry\umentation Pin
abhiramsss21-Jun-06 19:48
abhiramsss21-Jun-06 19:48 
QuestionWindows Management Instry\umentation] Pin
abhiramsss21-Jun-06 19:48
abhiramsss21-Jun-06 19:48 
QuestionDLL Technology Pin
Logan from Singapore20-Jun-06 21:24
Logan from Singapore20-Jun-06 21:24 
QuestionRe: DLL Technology Pin
Jun Du21-Jun-06 5:34
Jun Du21-Jun-06 5:34 
AnswerRe: DLL Technology [modified] Pin
Logan from Singapore21-Jun-06 15:28
Logan from Singapore21-Jun-06 15:28 
GeneralRe: DLL Technology Pin
Jun Du22-Jun-06 2:12
Jun Du22-Jun-06 2:12 

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.