Click here to Skip to main content
15,897,704 members
Home / Discussions / COM
   

COM

 
Generalhelp ambiguous call to overloaded function Pin
jackalwisdom9-Feb-04 4:51
jackalwisdom9-Feb-04 4:51 
GeneralRe: help ambiguous call to overloaded function Pin
Jörgen Sigvardsson9-Feb-04 9:55
Jörgen Sigvardsson9-Feb-04 9:55 
GeneralHelp!! - "both" components Pin
LasVegasGuy8-Feb-04 9:10
LasVegasGuy8-Feb-04 9:10 
GeneralRe: Help!! - "both" components Pin
Nick Parker8-Feb-04 10:30
protectorNick Parker8-Feb-04 10:30 
GeneralRe: Help!! - "both" components Pin
LasVegasGuy8-Feb-04 10:34
LasVegasGuy8-Feb-04 10:34 
GeneralRe: Help!! - "both" components Pin
Anonymous8-Feb-04 12:09
Anonymous8-Feb-04 12:09 
GeneralRe: Help!! - "both" components Pin
LasVegasGuy8-Feb-04 12:14
LasVegasGuy8-Feb-04 12:14 
GeneralRe: Help!! - "both" components Pin
Anonymous8-Feb-04 18:56
Anonymous8-Feb-04 18:56 
I wouldn't bother with checking threadid, you rcomponent might be called from MTA.
If your object pointer is not being passed directly to another thread (for instance one of object's methods created thread and from this thread you invoke one of the objects methods) you do not have to worry about this at all.
And you are right, if you do not use other objects (callbacks or internally created com objects) in your component you don't have to worry about all this (of course synchronization must be taken care of).
As for marshalling, in case it's necessary, I usually prefer using GIT (global interface table, works on NT sp3, Win95 with dcom): for instance when object gets created I'd register it in the GIT (IGlobalInterfaceTable::RegisterInterfaceInGlobal) and then all other threads that need to use the object would get the interface pointer from GIT (GetInterfaceFromGlobal) instead of using it directly, this way none the object itself can use any internal com objects (callbacks) safely.

HTH,
Edward










GeneralRe: Help!! - "both" components Pin
Anonymous9-Feb-04 8:33
Anonymous9-Feb-04 8:33 
GeneralIEnumIDList Pin
Tristan Rhodes6-Feb-04 5:27
Tristan Rhodes6-Feb-04 5:27 
GeneralRe: IEnumIDList Pin
Jörgen Sigvardsson7-Feb-04 3:42
Jörgen Sigvardsson7-Feb-04 3:42 
Generalcomplier error:...undefined class 'ATL_NO_VTABLE Pin
Abhi Lahare6-Feb-04 2:02
Abhi Lahare6-Feb-04 2:02 
GeneralRe: complier error:...undefined class 'ATL_NO_VTABLE Pin
Mike Dimmick6-Feb-04 2:50
Mike Dimmick6-Feb-04 2:50 
GeneralRe: complier error:...undefined class 'ATL_NO_VTABLE Pin
Abhi Lahare6-Feb-04 3:28
Abhi Lahare6-Feb-04 3:28 
QuestionHow can i get properties of com object dynamically Pin
Inam5-Feb-04 19:47
Inam5-Feb-04 19:47 
AnswerRe: How can i get properties of com object dynamically Pin
Mike Dimmick6-Feb-04 3:23
Mike Dimmick6-Feb-04 3:23 
GeneralRe: How can i get properties of com object dynamically Pin
Inam7-Feb-04 7:20
Inam7-Feb-04 7:20 
GeneralCommercial ActiveX Control - ClistCtrl/CListView Pin
Charles Roderick4-Feb-04 5:10
Charles Roderick4-Feb-04 5:10 
GeneralRe: Commercial ActiveX Control - ClistCtrl/CListView Pin
Jörgen Sigvardsson9-Feb-04 9:59
Jörgen Sigvardsson9-Feb-04 9:59 
GeneralRe: Commercial ActiveX Control - ClistCtrl/CListView Pin
Charles Roderick9-Feb-04 12:08
Charles Roderick9-Feb-04 12:08 
GeneralSHGetPathFromIDList - Problem Pin
Tristan Rhodes4-Feb-04 3:53
Tristan Rhodes4-Feb-04 3:53 
GeneralSolved Pin
Tristan Rhodes4-Feb-04 10:55
Tristan Rhodes4-Feb-04 10:55 
GeneralRe: SHGetPathFromIDList - Problem Pin
Mike Dimmick5-Feb-04 0:58
Mike Dimmick5-Feb-04 0:58 
GeneralSHBrowseForFolder problem Pin
Tristan Rhodes4-Feb-04 1:19
Tristan Rhodes4-Feb-04 1:19 
GeneralRe: SHBrowseForFolder problem Pin
Tristan Rhodes4-Feb-04 2:01
Tristan Rhodes4-Feb-04 2:01 

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.