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

COM

 
GeneralFile System Monitor Pin
Nicholas Cardi7-Mar-03 10:27
Nicholas Cardi7-Mar-03 10:27 
GeneralStepping into DLL code Pin
DeepakSharma6-Mar-03 22:45
DeepakSharma6-Mar-03 22:45 
GeneralRe: Stepping into DLL code Pin
Brian Shifrin7-Mar-03 6:22
Brian Shifrin7-Mar-03 6:22 
GeneralRe: Stepping into DLL code Pin
vikca20-Mar-03 4:16
vikca20-Mar-03 4:16 
GeneralCreating Com+ Object Pin
Brian Shifrin6-Mar-03 13:38
Brian Shifrin6-Mar-03 13:38 
GeneralGetting information from CreateInstance Pin
Fredrik Skog6-Mar-03 3:13
Fredrik Skog6-Mar-03 3:13 
GeneralCOM - multithreading Pin
Fred Axmear5-Mar-03 12:18
Fred Axmear5-Mar-03 12:18 
GeneralRe: COM - multithreading Pin
geo_m5-Mar-03 23:53
geo_m5-Mar-03 23:53 
Ya, you meet the monster called Marshalling Wink | ;)
It's for longer description, but in short words, VB (not only VB of course) expect that you will fire events in the same thread your component was created. This is because your component is probably marked as using Apartment Thread Model.
In case you need to fire events from the secondary thread, you need to marshall the pointer to the VB event callback interface.
As a starter the
CoMarshalInterThreadInterfaceInStream function might help. Or article in MSDN named In-Process Marshaling Helpers
In short - the CoMarshall... packages the interface to the stream in a first thread, you transfer the stream pointer to second thread and demarshall here - retrievnig the correct callback interface.

If you are sure that your component will not run in some old win95 you can look also for using the GIT (Global Interface Table).
For this I would start in help with IGlobalInterfaceTable documentation.

The difference between is that CoMarshal... is useful only when you need to marshall the interface once. Once you retrieve the interface back, the stream became useless.

GIT allows you marshall once, demarshall more times.

If you have more Q, don't hesitate to ask.
GeneralRe: COM - multithreading Pin
Fred Axmear6-Mar-03 1:12
Fred Axmear6-Mar-03 1:12 
GeneralWriting COM to wrap registry api. Pin
Vorrarit Luengwattanakij5-Mar-03 6:48
Vorrarit Luengwattanakij5-Mar-03 6:48 
GeneralRe: Writing COM to wrap registry api. Pin
AlexO6-Mar-03 3:19
AlexO6-Mar-03 3:19 
GeneralRe: Writing COM to wrap registry api. Pin
Vorrarit Luengwattanakij6-Mar-03 6:04
Vorrarit Luengwattanakij6-Mar-03 6:04 
GeneralRe: Writing COM to wrap registry api. Pin
AlexO6-Mar-03 7:33
AlexO6-Mar-03 7:33 
QuestionHow to call function in COM+ Pin
foxbabby_xizheng4-Mar-03 16:08
sussfoxbabby_xizheng4-Mar-03 16:08 
QuestionConvert DCOM to SOAP ? Pin
JonnoB3-Mar-03 21:36
JonnoB3-Mar-03 21:36 
GeneralWhere to get the COM+ Current Object Count Pin
Gaul3-Mar-03 9:20
Gaul3-Mar-03 9:20 
GeneralReplace " ' " symbol in DLL Pin
BravoTwoZero28-Feb-03 0:20
BravoTwoZero28-Feb-03 0:20 
QuestionHow to app MS Paint in MFC application as active Document Pin
Hemant kulkarni27-Feb-03 20:15
Hemant kulkarni27-Feb-03 20:15 
AnswerRe: How to app MS Paint in MFC application as active Document Pin
Stephane Rodriguez.28-Feb-03 0:49
Stephane Rodriguez.28-Feb-03 0:49 
GeneralRe: How to app MS Paint in MFC application as active Document Pin
Hemant kulkarni28-Feb-03 1:21
Hemant kulkarni28-Feb-03 1:21 
GeneralRe: How to app MS Paint in MFC application as active Document Pin
Stephane Rodriguez.28-Feb-03 1:52
Stephane Rodriguez.28-Feb-03 1:52 
QuestionBug in IStream::Write()? Pin
Mainul27-Feb-03 5:58
Mainul27-Feb-03 5:58 
AnswerRe: Bug in IStream::Write()? Pin
AlexO27-Feb-03 6:01
AlexO27-Feb-03 6:01 
QuestionHow to attach C++ class to COM object? Pin
Pavel Krupets26-Feb-03 23:47
Pavel Krupets26-Feb-03 23:47 
AnswerRe: How to attach C++ class to COM object? Pin
AlexO27-Feb-03 2:04
AlexO27-Feb-03 2:04 

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.