Click here to Skip to main content
15,914,452 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralWTL Menu in MFC container Pin
peterchen29-Sep-04 8:29
peterchen29-Sep-04 8:29 
GeneralToo much connections and ATL Server Pin
Federico Milano29-Sep-04 8:20
Federico Milano29-Sep-04 8:20 
QuestionFriend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem28-Sep-04 9:26
Tholkiem28-Sep-04 9:26 
AnswerRe: Friend Properties-Methods VB .Can I do it in ATL?? Pin
Tholkiem29-Sep-04 13:11
Tholkiem29-Sep-04 13:11 
GeneralPLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
SenPy28-Sep-04 7:19
SenPy28-Sep-04 7:19 
GeneralRe: PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed Pin
User 21559730-Sep-04 0:52
User 21559730-Sep-04 0:52 
Generalcatching events Pin
dudic28-Sep-04 5:49
dudic28-Sep-04 5:49 
GeneralRe: catching events Pin
Lim Bio Liong16-Oct-04 23:15
Lim Bio Liong16-Oct-04 23:15 
Hello Dudic,

My advise is to create a separate thread in your COM Object to perform the long operations. As and when a change in status occurs in your COM object, you fire an event to your client app.

There are several points you need to note about achieving the above mentioned design :

1. Your thread must be a COM thread. That is, it must call CoInitialize() on start up and call CoUninitialize() just before termination.

2. The event handler interface pointer of your client (which are passed to you when your client connects with your COM Object's connection points) must be marshalled to your COM Object. They -CANNOT- be passed to your thread by simple copying.

I'm going to write an article on COM threading soon and I'll keep you posted when I do.

Best Regards,
Bio.

GeneralRe: catching events Pin
ThatsAlok29-Oct-04 21:06
ThatsAlok29-Oct-04 21:06 
QuestionActiveX Controls MFC or ATL? Pin
Andy H28-Sep-04 3:51
Andy H28-Sep-04 3:51 
AnswerRe: ActiveX Controls MFC or ATL? Pin
Kevin McFarlane29-Sep-04 2:13
Kevin McFarlane29-Sep-04 2:13 
GeneralPLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy27-Sep-04 13:43
SenPy27-Sep-04 13:43 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
Michael Dunn27-Sep-04 19:28
sitebuilderMichael Dunn27-Sep-04 19:28 
GeneralRe: PLS HELP : CoCreateInstance on IE object failed on XP/SP2 Pin
SenPy28-Sep-04 7:21
SenPy28-Sep-04 7:21 
GeneralGet Object corresponding interface Pin
Tholkiem27-Sep-04 12:10
Tholkiem27-Sep-04 12:10 
Generalvalid CLSID Pin
Monty226-Sep-04 1:45
Monty226-Sep-04 1:45 
GeneralRe: valid CLSID Pin
Michael Dunn26-Sep-04 7:22
sitebuilderMichael Dunn26-Sep-04 7:22 
GeneralOportunidade de trabalho Pin
SolangeGomes25-Sep-04 9:39
sussSolangeGomes25-Sep-04 9:39 
GeneralRe: Oportunidade de trabalho Pin
Jörgen Sigvardsson25-Sep-04 11:50
Jörgen Sigvardsson25-Sep-04 11:50 
Generalusing MFC from c++/cli Pin
aaa_avraham25-Sep-04 9:16
aaa_avraham25-Sep-04 9:16 
GeneralLogon screen for Internet caf billing app Pin
prof.hell25-Sep-04 6:16
prof.hell25-Sep-04 6:16 
GeneralRe: Logon screen for Internet caf billing app Pin
Tomos28-Sep-04 15:53
Tomos28-Sep-04 15:53 
GeneralLearning ATL. Pin
Zero_One_ADO24-Sep-04 21:15
Zero_One_ADO24-Sep-04 21:15 
GeneralRe: Learning ATL. Pin
User 21559728-Sep-04 4:46
User 21559728-Sep-04 4:46 
GeneralOportunidade de trabalho Pin
luciramos24-Sep-04 10:33
luciramos24-Sep-04 10:33 

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.