Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CComVariant Pin
George_George4-Apr-08 2:17
George_George4-Apr-08 2:17 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 2:32
Matthew Faithfull4-Apr-08 2:32 
GeneralRe: CComVariant Pin
George_George4-Apr-08 2:54
George_George4-Apr-08 2:54 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:09
Matthew Faithfull4-Apr-08 3:09 
GeneralRe: CComVariant Pin
George_George4-Apr-08 3:16
George_George4-Apr-08 3:16 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:23
Matthew Faithfull4-Apr-08 3:23 
GeneralRe: CComVariant Pin
George_George4-Apr-08 3:37
George_George4-Apr-08 3:37 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 3:55
Matthew Faithfull4-Apr-08 3:55 
If I remember my COM lore rightly then that is the case, it only requires that if you do return the same value it represents the same object but the only time it would be useful is if you're aggregating an existing object which is single threaded and you can't change it. Performance is likely to be mediocre at best with all the calls going from the MTA into separate STAs.
On the other hand a single front object for multiple internal objects, all of which can live in the MTA is a very reasonable and potentially useful design. The single coolest component I've ever designed was a little piece of middleware, an ATL Singleton which operated an internal thread pool for handling requests from multiple ASP Web Servers, each request was simply forwarded to the correct back end application instance according to the session ID of the Web user. This solved the persistent user state issue that prevented IIS being properly scalable for years. All old hat these days of course. Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: CComVariant Pin
George_George4-Apr-08 4:12
George_George4-Apr-08 4:12 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:28
Matthew Faithfull4-Apr-08 4:28 
GeneralRe: CComVariant Pin
George_George4-Apr-08 4:39
George_George4-Apr-08 4:39 
GeneralRe: CComVariant Pin
Matthew Faithfull4-Apr-08 4:53
Matthew Faithfull4-Apr-08 4:53 
GeneralRe: CComVariant Pin
George_George6-Apr-08 15:50
George_George6-Apr-08 15:50 
GeneralImageList of TreeView. Pin
Le@rner4-Apr-08 0:24
Le@rner4-Apr-08 0:24 
GeneralRe: ImageList of TreeView. Pin
Iain Clarke, Warrior Programmer4-Apr-08 1:10
Iain Clarke, Warrior Programmer4-Apr-08 1:10 
GeneralRe: ImageList of TreeView. Pin
Le@rner4-Apr-08 1:55
Le@rner4-Apr-08 1:55 
GeneralRe: ImageList of TreeView. Pin
Iain Clarke, Warrior Programmer4-Apr-08 2:56
Iain Clarke, Warrior Programmer4-Apr-08 2:56 
QuestionSystem imagelist: how can I retrieve icons 48х48? Pin
stas133-Apr-08 23:46
stas133-Apr-08 23:46 
AnswerRe: System imagelist: how can I retrieve icons 48х48? Pin
Michael Dunn4-Apr-08 10:15
sitebuilderMichael Dunn4-Apr-08 10:15 
GeneralTo display a messagebox after the application is closed Pin
guru moorthy.k3-Apr-08 20:47
guru moorthy.k3-Apr-08 20:47 
GeneralRe: To display a messagebox after the application is closed Pin
Cedric Moonen3-Apr-08 20:53
Cedric Moonen3-Apr-08 20:53 
JokeRe: To display a messagebox after the application is closed Pin
Rajesh R Subramanian3-Apr-08 23:13
professionalRajesh R Subramanian3-Apr-08 23:13 
GeneralRe: To display a messagebox after the application is closed Pin
CPallini3-Apr-08 23:23
mveCPallini3-Apr-08 23:23 
GeneralRe: To display a messagebox after the application is closed Pin
Mukesh Kumar4-Apr-08 0:41
Mukesh Kumar4-Apr-08 0:41 
GeneralRe: To display a messagebox after the application is closed Pin
Nitheesh George4-Apr-08 1:45
Nitheesh George4-Apr-08 1:45 

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.