Click here to Skip to main content
15,922,407 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: ostream_iterator and pair Pin
Joaquín M López Muñoz14-Oct-04 2:52
Joaquín M López Muñoz14-Oct-04 2:52 
GeneralRe: ostream_iterator and pair Pin
Kevin McFarlane14-Oct-04 6:29
Kevin McFarlane14-Oct-04 6:29 
QuestionUsing WTL with MSLU, crash on Windows 98? Pin
billholt11-Oct-04 19:41
billholt11-Oct-04 19:41 
AnswerRe: Using WTL with MSLU, crash on Windows 98? Pin
billholt12-Oct-04 21:26
billholt12-Oct-04 21:26 
Generalcopy file to netwk Pin
Anonymous8-Oct-04 13:58
Anonymous8-Oct-04 13:58 
GeneralRe: copy file to netwk Pin
ThatsAlok29-Oct-04 20:46
ThatsAlok29-Oct-04 20:46 
GeneralPassing structure btw Client and DCOM server Pin
sergeyv20027-Oct-04 7:53
sergeyv20027-Oct-04 7:53 
GeneralATL free threaded question Pin
Martin Hinchy6-Oct-04 13:31
Martin Hinchy6-Oct-04 13:31 
VC++ 6.0 SP5

I have an MFC dialog application and I wanted to expose a COM interface for it so that other apps may call the interface while the dialog is up and running. I wanted to make the application free threaded so that calls to the interface from multiple clients would not be serialised.

I have done this by clicking on the Insert menu in VC6 and selecting 'New ATL Object...'. Once the object was inserted into the project I then edited stdafx.h and replaced _ATL_APARTMENT_THREADED with _ATL_FREE_THREADED. I then changed the ATL class so that it derives from CComObjectRootEx<CComMultiThreadModel>.

Testing has shown that when multiple clients call the interface the calls are all serialised because the ATL object in the dialog application is running on the UI thread. Is there any way in an MFC app to force COM to pick an RPC-managed pool thread rather than do all the work on the UI thread?


Regards
Martin
GeneralRe: ATL free threaded question Pin
Michael Dunn9-Oct-04 6:29
sitebuilderMichael Dunn9-Oct-04 6:29 
GeneralRe: ATL free threaded question Pin
Jörgen Sigvardsson9-Oct-04 8:12
Jörgen Sigvardsson9-Oct-04 8:12 
GeneralRe: ATL free threaded question Pin
Martin Hinchy10-Oct-04 12:39
Martin Hinchy10-Oct-04 12:39 
GeneralMFCan you Introduce... Pin
Polite Programmer6-Oct-04 12:35
Polite Programmer6-Oct-04 12:35 
GeneralRe: MFCan you Introduce... Pin
Joaquín M López Muñoz6-Oct-04 12:56
Joaquín M López Muñoz6-Oct-04 12:56 
GeneralRe: MFCan you Introduce... Pin
Polite Programmer6-Oct-04 13:05
Polite Programmer6-Oct-04 13:05 
GeneralRe: MFCan you Introduce... Pin
Joaquín M López Muñoz6-Oct-04 13:20
Joaquín M López Muñoz6-Oct-04 13:20 
GeneralRe: MFCan you Introduce... Pin
toxcct6-Oct-04 22:50
toxcct6-Oct-04 22:50 
GeneralATL 2-byte leak, i'm embarassed Pin
Eugene Homyakov6-Oct-04 5:28
Eugene Homyakov6-Oct-04 5:28 
GeneralRe: ATL 2-byte leak, i'm embarassed Pin
unimatrics10-Oct-04 7:03
unimatrics10-Oct-04 7:03 
GeneralMessage Map problem Pin
qur6-Oct-04 1:11
qur6-Oct-04 1:11 
QuestionIs possible to use ATL 7.0 in VC.6 ? Pin
Rodrigo Pinto Pereira de Souza5-Oct-04 9:50
Rodrigo Pinto Pereira de Souza5-Oct-04 9:50 
AnswerRe: Is possible to use ATL 7.0 in VC.6 ? Pin
toxcct5-Oct-04 21:26
toxcct5-Oct-04 21:26 
AnswerRe: Is possible to use ATL 7.0 in VC.6 ? Pin
Kevin McFarlane9-Oct-04 4:13
Kevin McFarlane9-Oct-04 4:13 
GeneralRe: Is possible to use ATL 7.0 in VC.6 ? Pin
Jörgen Sigvardsson9-Oct-04 13:15
Jörgen Sigvardsson9-Oct-04 13:15 
GeneralRe: Is possible to use ATL 7.0 in VC.6 ? Pin
Kevin McFarlane10-Oct-04 0:38
Kevin McFarlane10-Oct-04 0:38 
GeneralRe: Is possible to use ATL 7.0 in VC.6 ? Pin
Jörgen Sigvardsson10-Oct-04 6:30
Jörgen Sigvardsson10-Oct-04 6:30 

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.